Batches
Process millions of requests asynchronously. The Batches API provides guaranteed completion within 24 hours, dedicated throughput quotas, and a 50% discount compared to on-demand pricing.
POST/v1/batches
Create a new batch
Creates and queues a new batch job given an uploaded JSONL input file.
cURL Requestbash
curl https://api.plannix.web.id/v1/batches \
-H "Authorization: Bearer ${PLANNIX_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"input_file_id": "file_88a91c",
"endpoint": "/v1/chat/completions",
"completion_window": "24h"
}'GET/v1/batches
List batches
List all batches for the authenticated organization.
GET/v1/batches/{batch_id}
Get batch
Retrieve metadata and progress percentages for a specific batch.
GET/v1/batches/{batch_id}/requests
List batch requests in a batch
List individual request items and their processing states within a batch.
POST/v1/batches/{batch_id}/requests
Add batch requests to a batch
Dynamically append additional items to an open batch.
GET/v1/batches/{batch_id}/results
Get processing results of a batch
Retrieve completed JSONL output file IDs and summary statistics.
POST/v1/batches/{batch_id}/cancel
Cancel processing on a batch
Cancels an in-progress batch job. Completed items are preserved.