Seedream 5.5
Seedream 5.5,ByteDance 的图片生成模型。
概览
Seedream 5.5,ByteDance 的图片生成模型。
- 模型 ID:
bytedance/seedream-5.5 - 厂商: ByteDance
- 类型:
image - 超时上限: 600 s
- 统一格式: 支持
- 接口:
POST https://api.kerox.ai/v1/tasks
价格
| 档位 | 官方价 / 张 | Kerox / 张 | 节省 |
|---|---|---|---|
| 1K/1.5K | $0.0200 | $0.0160 | 20% |
| 2K | $0.0350 | $0.0280 | 20% |
- 档位:按每张输出图片的像素数(宽 × 高)定档:不超过 2,601,123 像素按
1K/1.5K,更大的按2K。 - 参考图:每张参考图加收 $0.0064(官方价 $0.0080)。
请求示例
用原厂参数提交任务。
curl -X POST https://api.kerox.ai/v1/tasks \
-H "Authorization: Bearer $KEROX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "bytedance/seedream-5.5",
"input": {
"prompt": "editorial portrait of a ceramicist in morning sunlight, 35mm film",
"size": "2K"
},
"wait_seconds": 30
}'参数
| 参数 | 类型 | 默认值 | 可选值 | 说明 |
|---|---|---|---|---|
| size | string | "2K" | — | 尺寸 |
| image | string | string[] | — | — | 参考图 |
| prompt | string | — | — | 提示词 |
| watermark | boolean | false | — | 水印 |
| background | string | "auto" | auto, transparent, opaque | 背景 |
| output_format | string | "png" | png, jpeg | 输出格式 |
| safety_identifier | string | — | — | 终端用户标识 |
| optimize_prompt_options | object | {"mode":"standard"} | — | 提示词优化 |
轮询与输出
轮询 GET /v1/tasks/{id},或用 Webhook 接收完成通知。结果文件在 expires_at 之后过期(完成后 7 天),想留的请下载。任务对象的其余字段见任务指南和 API 参考。
curl https://api.kerox.ai/v1/tasks/task_01JD8X9B4Q2M7T8N3K5P6R1S0V \
-H "Authorization: Bearer $KEROX_API_KEY"输入 schema(JSON)
完整的 JSON Schema,含嵌套参数
{
"type": "object",
"allOf": [
{
"if": {
"required": [
"background"
],
"properties": {
"background": {
"const": "transparent"
}
}
},
"then": {
"properties": {
"output_format": {
"const": "png"
}
}
}
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"prompt"
],
"properties": {
"size": {
"type": "string",
"x-tier": "common",
"default": "2K",
"pattern": "^(1K|1\\.5K|2K|[1-9][0-9]*x[1-9][0-9]*)$",
"x-label-en": "Size",
"x-label-zh": "尺寸",
"x-constraints": {
"max_aspect": 16,
"max_pixels": 4624220,
"min_aspect": 0.0625,
"min_pixels": 921600
}
},
"image": {
"oneOf": [
{
"type": "string",
"pattern": "^(https://|data:image/)"
},
{
"type": "array",
"items": {
"type": "string",
"pattern": "^(https://|data:image/)"
},
"maxItems": 10,
"minItems": 1
}
],
"x-tier": "common",
"x-label-en": "Reference images",
"x-label-zh": "参考图"
},
"prompt": {
"type": "string",
"x-tier": "common",
"pattern": "\\S",
"minLength": 1,
"x-label-en": "Prompt",
"x-label-zh": "提示词"
},
"watermark": {
"type": "boolean",
"x-tier": "advanced",
"default": false,
"x-label-en": "Watermark",
"x-label-zh": "水印"
},
"background": {
"enum": [
"auto",
"transparent",
"opaque"
],
"type": "string",
"x-tier": "common",
"default": "auto",
"x-label-en": "Background",
"x-label-zh": "背景"
},
"output_format": {
"enum": [
"png",
"jpeg"
],
"type": "string",
"x-tier": "advanced",
"default": "png",
"x-label-en": "Output format",
"x-label-zh": "输出格式"
},
"safety_identifier": {
"type": "string",
"x-tier": "advanced",
"pattern": "^[\\x20-\\x7e]+$",
"maxLength": 64,
"minLength": 1,
"x-label-en": "End-user ID",
"x-label-zh": "终端用户标识"
},
"optimize_prompt_options": {
"type": "object",
"x-tier": "advanced",
"default": {
"mode": "standard"
},
"properties": {
"mode": {
"enum": [
"standard"
],
"type": "string",
"x-tier": "advanced",
"default": "standard",
"x-label-en": "Mode",
"x-label-zh": "模式"
}
},
"x-label-en": "Prompt optimization",
"x-label-zh": "提示词优化",
"additionalProperties": false
}
},
"additionalProperties": false
}