View raw JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"oneOf": [
{
"type": "object",
"required": [
"model",
"prompt"
],
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 9,
"minimum": 1,
"description": "Number of images to generate (1-9). Drives the per-result charge."
},
"seed": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Random seed for reproducible images."
},
"model": {
"type": "string",
"const": "image-01",
"description": "Image model."
},
"width": {
"type": "integer",
"maximum": 2048,
"minimum": 512,
"description": "Width px (image-01 only; set with height, divisible by 8)."
},
"height": {
"type": "integer",
"maximum": 2048,
"minimum": 512,
"description": "Height px (image-01 only; set with width, divisible by 8)."
},
"prompt": {
"type": "string",
"maxLength": 1500,
"minLength": 1,
"description": "Text description of the image (max 1500). Required."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"4:3",
"3:2",
"2:3",
"3:4",
"9:16",
"21:9"
],
"type": "string",
"default": "1:1",
"description": "Aspect ratio. Takes priority over width/height if both given."
},
"response_format": {
"enum": [
"url",
"base64"
],
"type": "string",
"default": "url",
"description": "'url' links expire in 24h; 'base64' is inline (no expiry)."
},
"prompt_optimizer": {
"type": "boolean",
"default": false,
"description": "Enable automatic prompt optimization."
},
"subject_reference": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"image_file"
],
"properties": {
"type": {
"type": "string",
"const": "character",
"description": "Subject type. Only `character` (portrait) is supported."
},
"image_file": {
"type": "string",
"minLength": 1,
"description": "Reference image: public URL or base64 data URL (data:image/jpeg;base64,...). JPG/JPEG/PNG, <10MB. A single front-facing portrait works best."
}
},
"additionalProperties": false
},
"maxItems": 1,
"minItems": 1,
"description": "Optional subject reference — supply for image-to-image."
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"model",
"prompt",
"subject_reference"
],
"properties": {
"n": {
"type": "integer",
"default": 1,
"maximum": 9,
"minimum": 1,
"description": "Number of images to generate (1-9). Drives the per-result charge."
},
"seed": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "Random seed for reproducible images."
},
"model": {
"type": "string",
"const": "image-01-live",
"description": "Image-to-image (portrait) model."
},
"prompt": {
"type": "string",
"maxLength": 1500,
"minLength": 1,
"description": "Text description of the image (max 1500). Required."
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"4:3",
"3:2",
"2:3",
"3:4",
"9:16",
"21:9"
],
"type": "string",
"default": "1:1",
"description": "Aspect ratio. Takes priority over width/height if both given."
},
"response_format": {
"enum": [
"url",
"base64"
],
"type": "string",
"default": "url",
"description": "'url' links expire in 24h; 'base64' is inline (no expiry)."
},
"prompt_optimizer": {
"type": "boolean",
"default": false,
"description": "Enable automatic prompt optimization."
},
"subject_reference": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"image_file"
],
"properties": {
"type": {
"type": "string",
"const": "character",
"description": "Subject type. Only `character` (portrait) is supported."
},
"image_file": {
"type": "string",
"minLength": 1,
"description": "Reference image: public URL or base64 data URL (data:image/jpeg;base64,...). JPG/JPEG/PNG, <10MB. A single front-facing portrait works best."
}
},
"additionalProperties": false
},
"maxItems": 1,
"minItems": 1,
"description": "Subject reference for image-to-image generation."
}
},
"additionalProperties": false
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
}
}
},
"additionalProperties": false
}