POST /v1/images/generationshttps://moyunapi.comAuthorization: Bearer sk-xxx| 模型 | 可选值 | 默认值 |
|---|---|---|
| 5.0 pro | 1K, 1.5K, 2K | 2K |
| 5.0 lite | 2K, 3K, 4K | — |
| 4.5 | 2K, 4K | — |
| 4.0 | 1K, 2K, 4K | — |
2048x1024)| 模型 | 总像素范围 | 宽高比范围 |
|---|---|---|
| 5.0 pro | [921600, 4624220] | [1/16, 16] |
| 5.0 lite | [3686400, 16777216] | [1/16, 16] |
| 4.5 | [3686400, 16777216] | [1/16, 16] |
| 4.0 | [921600, 16777216] | [1/16, 16] |
| 分辨率 | 宽高比 | 像素值 |
|---|---|---|
| 2K | 1:1 | 2048×2048 |
| 2K | 16:9 | 2848×1600 |
| 2K | 9:16 | 1600×2848 |
| 2K | 4:3 | 2304×1728 |
| 2K | 3:4 | 1728×2304 |
| 4K | 1:1 | 4096×4096 |
| 4K | 16:9 | 5504×3040 |
prompt 建议不超过 300 个汉字或 600 个英文单词。response_format 为 url 时,URL 有效期 24 小时。output_format 仅 5.0 lite 支持(png/jpeg),4.5/4.0 默认 jpeg 不可改。watermark 默认 true(添加"AI生成"水印)。size、output_format、watermark 等参数需通过 extra_body 传递。curl --location 'https://moyunapi.com/v1/images/generations' \
--header 'Accept;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "Doubao-Seedream-5.0-lite",
"prompt": "充满活力的特写编辑肖像,模特眼神犀利,头戴雕塑感帽子,色彩拼接丰富,眼部焦点锐利,景深较浅,具有Vogue杂志封面的美学风格,采用中画幅拍摄,工作室灯光效果强烈。",
"size": "2K",
"response_format": "url",
"output_format": "png",
"watermark": false
}'{
"model": "Doubao-Seedream-5.0-lite",
"created": 1757321139,
"data": [
{
"url": "https://files.moyunapi.com/seedream/img001.png",
"size": "2048x2048"
}
],
"usage": {
"generated_images": 1,
"output_tokens": 16384,
"total_tokens": 16384
}
}