input fields.
Use Batch Status to retrieve the whole batch, or Batch Webhooks to receive terminal notifications for every accepted item.
Before you start
- Create an API key and verify that the target model works with the single-task API.
- Create one stable
Idempotency-Keyfor the business operation represented by the whole batch. - Create a stable, unique
client_item_idandidempotency_keyfor every item. - If you plan to receive callbacks, first set up Batch Webhooks.
Endpoint
{model} with a public model ID, such as seedream-4-5.
Headers
string
required
API authentication. Format:
Bearer YOUR_API_KEY.string
required
Unique idempotency key for the entire batch operation. Reuse the same value when retrying after a timeout or network error.
string
required
Must be
application/json.Request body
array
required
The task list. It must contain 1 to 50 items.
string
Optional public HTTPS endpoint for terminal item notifications. When configured, every accepted item receives one webhook after it succeeds or fails.
Successful submission
Successful submission response fields
Save
batchId for batch-level lookup, taskId for individual task lookup, and clientItemId for your business association.
Item rejection in an otherwise valid batch
The request itself can return successfully while an individual item is not accepted. For example, an item with invalid model input is markedrejected:
Continue only with
accepted: true items. Correct rejected input, then submit the corrected work as a new business operation with new batch and item idempotency keys.
Whole-request failure
The entire request fails and no executable batch is created when, for example:Idempotency-Keyis missing.itemsis empty or contains more than 50 items.client_item_idoridempotency_keyis duplicated within one batch.- The JSON body exceeds 5 MiB.
webhook_urlis not a public HTTPS address.
Idempotent retry
If a timeout or network interruption prevents you from knowing whether the response arrived:- Retry the whole request with the same
Idempotency-Key. - Keep the same
idempotency_keyfor every original item. - APIXO replays the existing batch.
replayed: trueindicates a safe batch replay.
Next steps
- Read Batch Status to query the whole batch. Use the Single Tasks > Status Task page to query one
taskId. - Read Batch Webhooks to receive a terminal notification for each item.