View raw JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"prompt"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"n": {
"type": "integer",
"maximum": 12,
"minimum": 1,
"description": "Optional integer. Ordinary mode supports 1–4, default 1. With set mode enabled, it is a maximum from 1 to 12, default 12; the model chooses the actual number, never more than this cap."
},
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "Optional integer from 0 to 2147483647. A fixed seed can help reproducibility, but it does not guarantee identical images."
},
"size": {
"anyOf": [
{
"enum": [
"1K",
"2K",
"4K"
],
"type": "string"
},
{
"type": "string",
"pattern": "^\\d+\\*\\d+$"
}
],
"default": "2K",
"description": "Optional 1K, 2K (default), 4K or width*height. 4K requires text only and set mode off. Custom pixel area must be between 768×768 and 4096×4096 for text-only ordinary generation, or between 768×768 and 2048×2048 for editing or sets; aspect ratio 1:8–8:1. These are total-pixel bounds, not per-side bounds. Presets are square without inputs and follow the last input image's ratio otherwise; actual dimensions can vary slightly."
},
"images": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"description": "Each supplied item is a nonempty public HTTPS file URL. Use JPG, JPEG, PNG (without an alpha channel), BMP or WEBP, up to 20 MB per image, with width and height each 240–8000 pixels and aspect ratio 1:8–8:1. Local paths, HTTP, Base64 and asset IDs are not accepted by this Tool."
},
"maxItems": 9,
"description": "Optional array of up to nine public HTTPS image links. Omit for text-only generation; inputs guide editing or composition. Reference inputs limit output to 2K and make preset output proportions follow the last image."
},
"prompt": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "Required nonempty text, 1–5000 characters: describe a new image, an edit or a storyline for a set. There is no separate negative_prompt; put desired exclusions in this text, without assuming they will always be followed."
},
"bbox_list": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"maxItems": 4,
"minItems": 4
}
},
"description": "Optional list with one entry per input image, in the same order. Each entry holds 0–2 boxes [x1,y1,x2,y2] in absolute pixels of that original image, with origin (0,0) at top-left; use [] when no box is wanted. Choose coordinates within the original image bounds."
},
"watermark": {
"type": "boolean",
"default": false,
"description": "Optional boolean; default false. true requests an AI Generated watermark on the generated images."
},
"color_palette": {
"type": "array",
"items": {
"type": "object",
"required": [
"hex",
"ratio"
],
"properties": {
"hex": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"description": "Required for each palette entry: # followed by six hexadecimal digits, such as #C2D1E6."
},
"ratio": {
"type": "string",
"pattern": "^\\d+(\\.\\d{1,2})?%$",
"description": "Required percentage string for each palette entry. Two decimal places are recommended, for example 33.33%; all entries together must total 100.00%."
}
},
"additionalProperties": false
},
"maxItems": 10,
"minItems": 3,
"description": "Optional array of 3–10 colors, each with a hex color and percentage share. All shares must total 100.00%. Not available in set mode; proportions guide the generation rather than guarantee exact pixel coverage."
},
"thinking_mode": {
"type": "boolean",
"description": "Optional boolean; default true. Effective only for text-only ordinary generation, not editing or sets. It can increase processing time and does not guarantee better quality."
},
"enable_sequential": {
"type": "boolean",
"default": false,
"description": "Optional boolean; default false. true requests a related image set whose actual count is chosen by the model up to n. Sets are limited to 2K, and reasoning mode and custom palettes are not available; exact identity or continuity is not guaranteed."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}