Batch API
Upload a JSONL of up to 5,000 /v1/chat/completions or /v1/embeddings requests, create a batch, and collect the output file within 24 hours — outside your per-minute rate limits, never above the regular price. Cancelled or expired batches still return the lines that finished. A batch.completed / batch.failed webhook fires at the end.
curl https://api.ultragpt.pro/v1/files -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-F purpose="batch" -F file="@requests.jsonl"
curl https://api.ultragpt.pro/v1/batches -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "input_file_id": "file-...", "endpoint": "/v1/chat/completions", "completion_window": "24h" }'