{
"contentType": "application/json",
"properties": {
"guidance_scale": {
"description": "与 prompt 的一致程度,范围 [1, 10]",
"examples": [
2.5
],
"maximum": 10,
"minimum": 1,
"type": "number",
"x-i18n": {
"en-US": {
"description": "How closely to follow the prompt; range [1, 10]"
}
}
},
"image": {
"description": "参考图(官方字段)。单张 URL 字符串,或多张 URL 数组(交互编辑/图生图,最多约 10 张)",
"oneOf": [
{
"examples": [
"https://example.com/ref.png"
],
"format": "uri",
"type": "string"
},
{
"examples": [
[
"https://example.com/ref1.png",
"https://example.com/ref2.png"
]
],
"items": {
"format": "uri",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
],
"x-i18n": {
"en-US": {
"description": "Reference (official). Single URL string or URL array (interactive edit / I2I, up to ~10)"
}
}
},
"images": {
"description": "兼容字段;网关会归一到 image。与 image 二选一即可",
"oneOf": [
{
"format": "uri",
"type": "string"
},
{
"items": {
"format": "uri",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
],
"x-i18n": {
"en-US": {
"description": "compat field; gateway normalizes to image. Use either this or image"
}
}
},
"model": {
"description": "模型名称",
"enum": [
"doubao-seedream-5-0-pro-260628"
],
"examples": [
"doubao-seedream-5-0-pro-260628"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "Model name"
}
}
},
"n": {
"default": 1,
"description": "生成张数,Pro 通常为 1",
"examples": [
1
],
"maximum": 1,
"minimum": 1,
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Number of images; Pro usually 1"
}
}
},
"optimize_prompt_options": {
"description": "提示词优化配置",
"properties": {
"mode": {
"description": "优化模式",
"enum": [
"standard",
"fast"
],
"examples": [
"standard"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "optimized mode"
}
}
}
},
"required": [
"mode"
],
"type": "object",
"x-i18n": {
"en-US": {
"description": "prompt optimization settings"
}
}
},
"output_format": {
"description": "图片文件格式",
"enum": [
"jpeg",
"png"
],
"examples": [
"png"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "image file format"
}
}
},
"prompt": {
"description": "生成/编辑提示词",
"examples": [
"一只猫坐在窗边,阳光透过玻璃,写实摄影"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "generation / edit prompt"
}
}
},
"response_format": {
"description": "返回形态",
"enum": [
"url",
"b64_json"
],
"examples": [
"url"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "response shape"
}
}
},
"seed": {
"default": -1,
"description": "随机种子,范围 [-1, 2147483647],默认 -1",
"examples": [
-1
],
"maximum": 2147483647,
"minimum": -1,
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Random seed, range [-1, 2147483647], default -1"
}
}
},
"size": {
"description": "分辨率档或像素尺寸。常用 1K/2K;也支持如 1024x1024、2048x2048、2816x1584 等。空值按高档计费",
"enum": [
"1K",
"2K",
"1024x1024",
"1152x864",
"864x1152",
"1424x800",
"800x1424",
"1248x832",
"832x1248",
"1568x672",
"2048x2048",
"2368x1776",
"1776x2368",
"2816x1584",
"1584x2816",
"2496x1664",
"1664x2496",
"3136x1344"
],
"examples": [
"2K"
],
"type": "string",
"x-i18n": {
"en-US": {
"description": "Resolution tier or pixels. Commonly 1K/2K; also e.g. 1024x1024, 2048x2048, 2816x1584. Empty billed at higher tier"
}
}
},
"watermark": {
"description": "是否添加水印",
"examples": [
false
],
"type": "boolean",
"x-i18n": {
"en-US": {
"description": "Whether to add a watermark"
}
}
}
},
"required": [
"model",
"prompt"
]
}