Create Batch
API for Batch Processing. Available only for Growth
and Scale
plans.
Headers
x-api-key
Request
This endpoint expects a multipart form containing a file.
input
JSON lines file containing batch requests. Maximum file size: 5MB. Maximum requests per batch: 1000.
webhook_url
Optional webhook URL to receive batch completion notifications. A POST request will be sent when the batch completes or fails.
dry_run
When true, validates the input file without processing. Returns validation status without creating generations.
Response
This endpoint returns an object.
Batch Response
OR
Validation Response