Seedream 5.5 API
curl --request POST \
--url https://apistable.ai/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedream-5-5',
input: {
prompt: 'Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.',
resolution: '2K',
aspect_ratio: '16:9'
}
})
};
fetch('https://apistable.ai/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/tasks/create_task"
payload = {
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "00000000-0000-4000-8000-000000000001"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}ByteDance
Seedream 5.5 API
支持 1K、1.5K、2K 文生图、参考图编辑与透明 PNG 输出。
POST
/
api
/
v1
/
tasks
/
create_task
Seedream 5.5 API
curl --request POST \
--url https://apistable.ai/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'seedream-5-5',
input: {
prompt: 'Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.',
resolution: '2K',
aspect_ratio: '16:9'
}
})
};
fetch('https://apistable.ai/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/tasks/create_task"
payload = {
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "00000000-0000-4000-8000-000000000001"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}参数与输入模式
model 和 input 始终必填。任务结束前,参考图须保持可访问且内容不变。
使用预设尺寸时,传 resolution 和 aspect_ratio。用 宽x高 格式传入 size 时,以指定像素宽高为准,两个预设均不参与生成。
| 请求场景 | input 必填字段 |
|---|---|
| 文生图 | prompt |
| 图片编辑 | prompt 和非空的 image_urls 数组。 |
| 精确像素 | prompt 和 size。 |
| 拆分图层 | layer_decomposition: true 和恰好一张 JPEG 或 PNG 参考图。prompt 选填。 |
使用场景
{
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}
{
"model": "seedream-5-5",
"input": {
"prompt": "Replace the background with an ivory studio backdrop. Keep the teapot unchanged.",
"image_urls": [
"https://apistable.ai/models/seedream/seedream-5-5-teapot.png"
],
"aspect_ratio": "auto"
}
}
{
"model": "seedream-5-5",
"input": {
"prompt": "Studio photograph of a cobalt blue ceramic teapot, soft daylight, neutral background.",
"size": "2560x1440"
}
}
{
"model": "seedream-5-5",
"input": {
"layer_decomposition": true,
"image_urls": [
"https://apistable.ai/models/seedream/seedream-5-5-teapot.png"
],
"resolution": "2K",
"layer_decomposition_options": {
"max_images": 8
}
}
}
授权
登录 APIstable 后,在 API Key 管理 创建并复制密钥。
每次调用都要在 HTTP 请求头传入:
Authorization: Bearer YOUR_API_KEY
将 YOUR_API_KEY 替换为你创建的 API Key。
请求体
application/json
回调
POST{$request.body#/callback_url}Webhook
请求体
application/json
任务成功或失败后,APIstable 向创建任务时传入的 callback_url 发送 JSON POST。验签后返回 HTTP 2xx 确认接收。
用 data.status 判断生成结果。部分成功也返回 succeeded。data.result.urls 列出成功图片,图片保留 14 天。全部失败时为 failed,data.result 为 null,data.message 提供失败原因。
签名和去重使用 X-APIstable-Signature、X-APIstable-Timestamp 和 X-APIstable-Event-Id。详见 Webhook 安全与验签。
Webhook 请求体示例
{
"code": 200,
"msg": "success",
"data": {
"task_id": "00000000-0000-4000-8000-000000000001",
"model": "seedream-5-5",
"status": "succeeded",
"created_at": "2026-11-13T08:30:00.000Z",
"completed_at": "2026-11-13T08:30:08.000Z",
"duration": 8000,
"charged_credits": 5.25,
"message": "",
"input": "{\"prompt\":\"Studio photograph of a cobalt blue teapot.\",\"resolution\":\"2K\"}",
"result": {
"urls": [
"https://cdn.example.com/generated/image.png"
],
"items": [
{
"id": "00000000-0000-4000-8000-000000000002",
"status": "succeeded",
"charged_credits": 5.25,
"urls": [
"https://cdn.example.com/generated/image.png"
]
}
]
}
}
}
响应
2XX
已接收 Webhook。
响应
已受理。使用 task_id 查询任务,或通过 callback_url 接收结果。