Together AI
Check a Together AI batch job’s status
Fetch an existing batch by ID through Together’s REST API or run tg batches get. Check whether it has finished before requesting the output file.
Documentation reviewed · 2 methods with sources
Ways to do it
API
GET /v1/batches/{id}
Return one batch job with status, progress, and output or error file IDs when available.
Read source: Together AI get a batch job API- Requirements
- A Together API key and the ID of a batch job it can access.
- Limitations
- The API returns job metadata. Download the output file separately after the job completes.
Example shell
curl --fail "https://api.together.ai/v1/batches/$BATCH_ID" \
-H "Authorization: Bearer $TOGETHER_API_KEY"CLI
tg batches get <batch-id>
Print the batch status and progress for the selected job.
Read source: Together AI batch tutorial- Requirements
- The Together CLI authenticated for the batch and its ID.
- Limitations
- Each invocation checks the status once. Together recommends waiting 30 to 60 seconds between checks to reduce rate-limit errors.
Example shell
tg batches get "$BATCH_ID"