All models
ByteDance
Image
Available
Seedream 5.5 文生图
High-quality photorealistic image generation powered by Seedream's advanced AI model
Text to Image
From 60 credits (≈ ₹60.00) per request.
Parameters
| Parameter | Type | Description |
|---|---|---|
promptRequired |
string | 必填。文本提示词,5–5000 字符。 max length 5000 |
aspect_ratioRequired |
string | 必填。输出图像的宽高比。 one of: "1:1", "4:3", "3:4", "16:9", "9:16", "2:3", "3:2", "21:9" |
size |
string | 输出图像的清晰度档位,影响积分消耗。默认 `2K`。 `3K` 约 800 万像素,各比例输出尺寸固定:1:1 = 2880×2880、16:9 = 3840×2160、9:16 = 2160×3840、4:3 = 3264×2448、3:4 = 2448×3264、3:2 = 3504×2336、2:3 = 2336×3504、21:9 = 4368×1872。`3K` 即模型官方最高输出规格,16:9 下为 3840×2160,符合 4K UHD(UHD-1)标准。 one of: "1K", "1.5K", "2K", "3K" · default "2K" |
output_format |
string | 输出图像格式。默认 `png`。 one of: "png", "jpeg" · default "png" |
background |
string | 输出图像的背景。默认 `auto`。 - `auto`:由模型决定 - `transparent`:透明背景 - `opaque`:不透明背景 `transparent` 仅在 `output_format` 为 `png` 时可用。 one of: "auto", "transparent", "opaque" · default "auto" |
nsfw_checker |
boolean | 默认 false。为 false 时不额外进行内容过滤,结果由模型直接返回。 |
What you get back
Files arrive in output.files[] as private links that expire, with their type and size.
Use it from your code
# 1. Create the task
curl https://nexus.promptscenes.in/api/v1/tasks \
-H "Authorization: Bearer $NEXUS_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "seedream-5.5-text-to-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"size": "2K",
"output_format": "png",
"background": "auto"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}'
# 2. Poll for the result
curl https://nexus.promptscenes.in/api/v1/tasks/TASK_ID \
-H "Authorization: Bearer $NEXUS_API_KEY"
import os, time, uuid, requests
API = "https://nexus.promptscenes.in/api/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['NEXUS_API_KEY']}"}
task = requests.post(
f"{API}/tasks",
headers={**HEADERS, "Idempotency-Key": str(uuid.uuid4())},
json={
"model": "seedream-5.5-text-to-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"size": "2K",
"output_format": "png",
"background": "auto",
},
"callback_url": "https://your-app.com/webhooks/nexus",
},
).json()
while task["status"] not in ("succeeded", "failed", "cancelled"):
time.sleep(3)
task = requests.get(f"{API}/tasks/{task['id']}", headers=HEADERS).json()
print(task["status"], task.get("output"))
const API = "https://nexus.promptscenes.in/api/v1";
const headers = {
Authorization: `Bearer ${process.env.NEXUS_API_KEY}`,
"Content-Type": "application/json",
};
let task = await fetch(`${API}/tasks`, {
method: "POST",
headers: { ...headers, "Idempotency-Key": crypto.randomUUID() },
body: JSON.stringify({
"model": "seedream-5.5-text-to-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"size": "2K",
"output_format": "png",
"background": "auto"
},
"callback_url": "https://your-app.com/webhooks/nexus"
}),
}).then((r) => r.json());
while (!["succeeded", "failed", "cancelled"].includes(task.status)) {
await new Promise((r) => setTimeout(r, 3000));
task = await fetch(`${API}/tasks/${task.id}`, { headers }).then((r) => r.json());
}
console.log(task.status, task.output);
Request
{
"model": "seedream-5.5-text-to-image",
"input": {
"prompt": "A cinematic shot of a lighthouse at dawn",
"aspect_ratio": "1:1",
"size": "2K",
"output_format": "png",
"background": "auto"
}
}
Response
{
"id": "6f1c…",
"object": "task",
"model": "seedream-5.5-text-to-image",
"status": "succeeded",
"output": {
"files": [
{
"url": "https://…signed…",
"mime": "…",
"size": 0
}
]
},
"estimated_cost": "…",
"charged": "…"
}