image_url content part whose url points to an object in S3 (s3://…) — instead of embedding a base64-encoded image inline in your JSONL.
This works with the /v1/chat/completions endpoint and follows the OpenAI-compatible multimodal message format. If you haven’t run a batch yet, start with Upload and run your first batch.
Why image_url instead of base64
Base64 encoding inflates each image by ~33% and embeds the entire payload directly in your input file. For image-heavy workloads (computer vision, data labeling, document processing), that adds up fast. Referencing images by S3 URL instead means:- Smaller JSONL — each request carries a short URL, not a multi-megabyte string. Easier to stay under the input file limits (up to 50,000 requests and 200 MB per file).
- No encode/decode step — point at images already in your bucket; no preprocessing pipeline to base64-encode them.
- Cross-region — the source image can live in an S3 bucket in a different region than where the batch runs. See Cross-Region Image URI (May 3, 2026).
Message format
Set the messagecontent to an array of parts. Use an image_url part for the image and a text part for the prompt:
url field accepts an s3://<bucket>/<key> URI. The bucket must be reachable by your Impala data plane (see S3 access below).
Full JSONL example
Each line of your input file is one request. Hereinput.jsonl contains two image requests for /v1/chat/completions:
content array can hold any number of image_url and text parts.
Run it
The rest of the flow is identical to a text-only batch — upload the file, create the batch against/v1/chat/completions, poll for status, then download the results:
S3 access
The bucket referenced in eachimage_url must be reachable by your Impala data plane:
- The objects must exist and be readable by the role Impala uses to run your batch.
- The source bucket may be in a different region than the batch — cross-region image URIs are supported, so your JSONL and the data plane no longer need to be co-located.
error_file_id (other requests are unaffected).

