Fireworks AI
How to monitor a Fireworks AI batch inference job
Read the state of an existing Fireworks AI batch inference job by ID with the REST API or firectl. List the account's jobs when you need the ID.
Documentation reviewed · 3 methods with sources
Ways to do it
- API: GET /v1/accounts/{account_id}/batchInferenceJobs/{batch_inference_job_id}
- CLI: firectl batch-inference-job get
- API: List batch inference jobs
API
GET /v1/accounts/{account_id}/batchInferenceJobs/{batch_inference_job_id}
Retrieve one job's status and metadata.
Read source: Get batch inference job- Requirements
- Fireworks API key with account access.
- Limitations
- JOB_STATE_RUNNING can include time spent waiting on capacity. The waitingOnCapacity field distinguishes that condition.
Example shell
curl --fail https://api.fireworks.ai/v1/accounts/$FIREWORKS_ACCOUNT_ID/batchInferenceJobs/$FIREWORKS_JOB_ID -H "Authorization: Bearer $FIREWORKS_API_KEY"CLI
firectl batch-inference-job get
Inspect one job from a terminal.
Read source: firectl batch inference job get- Requirements
- Authenticated firectl.
- Limitations
- If --account-id is omitted, firectl uses the account from its local credentials configuration.
Example shell
firectl batch-inference-job get "$FIREWORKS_JOB_ID" --account-id "$FIREWORKS_ACCOUNT_ID" -o json- Requirements
- Fireworks API key with read access.
- Limitations
- Pass nextPageToken from the response as pageToken when another page is available.
Example shell
curl --fail https://api.fireworks.ai/v1/accounts/$FIREWORKS_ACCOUNT_ID/batchInferenceJobs -H "Authorization: Bearer $FIREWORKS_API_KEY"