Seedream 5 Lite
Seedream 5 Lite
Fast, affordable image generation and editing with up to 10 reference images and 2K or 4K output
- Endpoint
- POST /api/v1/images/generate
- model
- seedream-5-lite
- Output
- Image
- Credits
- from 10
タスクを送信
/api/v1/images/generateパラメータ
modelstring必須Must be "seedream-5-lite"
typestringオプションデフォルトtext-to-image"text-to-image" or "image-to-image" (default: text-to-image)
text-to-imageimage-to-imagepromptstring必須Text prompt, 3 to 3,000 characters. Supports English and Chinese.
resolutionstringオプションデフォルト2K"2K" or "4K" (default: 2K)
2K4Kaspect_ratiostringオプションデフォルト1:1"1:1", "4:3", "3:4", "16:9", "9:16", "2:3", "3:2" or "21:9" (default: 1:1)
1:14:33:416:99:162:33:221:9image_urlsstring[]オプションPublic https URLs of the reference images for image-to-image. Up to 10 images.
generation_modestringオプションデフォルトstandard"standard" or "wild". Wild is an experimental mode with relaxed filtering and short result retention; it costs more.
standardwildoutput_formatstringオプション"jpeg" or "png"
jpegpngnum_imagesnumberオプションMust be 1
リクエスト
curl -X POST https://www.bananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-lite",
"prompt": "A cozy reading nook by a rainy window, warm lamp light, film grain",
"resolution": "2K",
"aspect_ratio": "3:2"
}'返信200
{
"success": true,
"data": {
"task_id": "task_abc123",
"request_id": "req_abc123",
"credits_used": 7,
"remaining_credits": 480,
"model": "seedream-5-lite",
"generation_mode": "standard",
"resolution": "2K"
}
}例の credits_used の値は説明用です。実際の消費量は送信時に計算され、API が返します。
タスクを照会
/api/v1/images/{task_id}status
pending- Accepted and waiting to start. Keep polling.
processing- Running. Keep polling.
completed- Finished. Read image_url; output holds the full result.
failed- Ended without a result. error_message says why and credits_refunded shows what was returned.
Poll every 5 to 10 seconds and stop at completed or failed, or register a webhook to be notified instead. Failed tasks are refunded automatically.
リクエスト
curl https://www.bananapro.site/api/v1/images/task_abc123 \
-H "Authorization: Bearer sk-your-api-key"返信200
{
"success": true,
"data": {
"task_id": "task_abc123",
"model": "seedream-5-lite",
"status": "completed",
"output": { "images": [{ "url": "https://..." }] },
"primary_url": "https://...",
"image_url": "https://...",
"error_message": null,
"credits_used": 7,
"credits_refunded": 0,
"created_at": "2026-10-04T10:00:00.000Z",
"updated_at": "2026-10-04T10:01:12.000Z",
"completed_at": "2026-10-04T10:01:12.000Z"
},
"request_id": "req_abc123"
}結果を待つ
TASK_ID=task_abc123
while true; do
TASK=$(curl -s https://www.bananapro.site/api/v1/images/$TASK_ID \
-H "Authorization: Bearer sk-your-api-key")
STATUS=$(echo "$TASK" | jq -r '.data.status')
if [ "$STATUS" = "completed" ] || [ "$STATUS" = "failed" ]; then
echo "$TASK" | jq
break
fi
sleep 10
done料金設定
| Mode | 2K | 4K |
|---|---|---|
| Standard | 7 | |
| Wild | 10 |
機能
- Text-to-image generation
- Image-to-image editing with up to 10 reference images
- 2K and 4K output
- Standard and Wild generation modes
- Single-image output per request