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