Skip to main content
Use Batch Status to see whether a whole batch has completed and which items succeeded, failed, or were rejected. Submit the batch first with Batch Generate.
Every accepted batch item has items[].taskId. You can also query that one task at any time through Single Tasks > Status Task: GET /api/v1/statusTask/{model}?taskId={taskId}. Batch Status is best for whole-batch progress; Status Task is best for diagnosing one task.

Endpoint

States

Completed batch with successful items

Batch Status response fields

For succeeded items, parse items[].result.resultJson to read result URLs or other public model output.

A completed batch with both success and failure

HTTP 200 means the lookup succeeded. Determine generation success from each item’s status and result.state.
Associate results with your business records through clientItemId. Save successful output, and record failCode and failMsg for failed items. To create new work after a failure, use a new business operation and a new idempotency_key.

Query one batch item by task ID

For example, after Batch Status returns taskId: "task_987", you can independently inspect that failed task:
See Single Tasks > Status Task for that response format and states. An individual lookup does not alter the batch, resubmit work, or trigger re-execution.

When a webhook is missing

Webhooks are terminal notifications, not the only record of task state. Use Batch Status when your receiver was unavailable, while a retry is pending, after retries are exhausted, or during reconciliation. Start with batchId to see the entire batch, then use an individual taskId with Single Tasks > Status Task when one item needs deeper investigation.

Common errors

Next step

Read Batch Webhooks to receive a terminal notification for every accepted batch item.