Agents
Image Agent 1
Run image-agent-1 with text instructions and optional reference images. Currently in early access preview.
POST
cURL
Request body
multipart/form-data (recommended when sending images)
model_id(validImageModelIds, optional): Defaults to"image-agent-1-preview"agent_id(string, optional)instructions(string, required): Between3and10,000charactersaspect_ratio("auto" | validAspectRatios, optional): Defaults to"1:1"resolution(validResolutions, optional): Defaults to"2K"images(file | file[], optional): Single image or up to10images, each max30MB; defaults to[]webhook_url(string, optional): Must be a valid URLmax_steps(number, optional): Minimum1, maximum30, defaults to10
Validation rules
instructionsminimum length:3instructionsmaximum length:10,000imagesaccepts either:- a single image
- an array of images (max
10)
imagesis normalized to an array internally
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
multipart/form-data
Required string length:
3 - 10000Available options:
image-agent-1-preview Available options:
auto, 9:16, 2:3, 3:4, 4:5, 1:1, 5:4, 4:3, 3:2, 16:9 Available options:
2K, 4K Must be a valid URL
Required range:
1 <= x <= 30cURL