View raw JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"prompt",
"size"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 6,
"minimum": 1,
"description": "Optional integer from 1 to 6; default 1. Requests that many output images in ordinary generation or editing, without guaranteeing every requested image will succeed."
},
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "Optional integer from 0 to 2147483647. A fixed seed can help reproducibility, but the same seed does not guarantee identical images."
},
"size": {
"type": "string",
"pattern": "^\\d+\\*\\d+$",
"description": "Required width*height string, such as 1080*1920; use an asterisk, not x or auto. Total pixel area must be between 512×512 and 2048×2048 for both generation and editing, with aspect ratio 1:8–8:1. These are total-pixel bounds, not per-side bounds; actual generated dimensions can vary slightly."
},
"images": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"description": "Each supplied entry must be a nonempty public HTTPS file URL. Use JPG, JPEG, PNG, BMP, TIFF, WEBP or GIF, up to 10 MB each. Width and height of 384–2048 pixels are recommended, not mandatory side bounds. This Tool does not accept HTTP, local paths, Base64 or asset IDs."
},
"maxItems": 3,
"description": "Optional array of up to three public HTTPS image links. Their order defines the reference order. Omit the whole field for text-only generation rather than relying on empty-array behavior."
},
"prompt": {
"type": "string",
"minLength": 1,
"description": "Required nonempty text describing content, style and composition, or the desired edit when input images are supplied. Chinese and English are supported. Recommended length is at most 4500 tokens, which are model text units rather than characters; this is a recommendation, not a fixed character cap."
},
"watermark": {
"type": "boolean",
"default": false,
"description": "Optional boolean; default false. true requests an AI Generated watermark on the result."
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "Optional boolean; default true. Enables model-assisted rewriting, useful for a short instruction, without guaranteeing a better image."
},
"enable_thinking": {
"type": "boolean",
"description": "Optional boolean; default true. Requires prompt rewriting to be enabled. It can increase processing time and does not guarantee quality or fidelity."
},
"negative_prompt": {
"type": "string",
"description": "Optional text describing content to exclude. It guides generation or editing but does not guarantee those elements will be absent."
},
"prompt_extend_mode": {
"enum": [
"direct",
"agent"
],
"type": "string",
"description": "Optional direct or agent; default direct. direct supports generation and editing. agent is only for text-only generation without input images; it rewrites more extensively, without a guaranteed quality improvement."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}