Seedream 5 Pro
Seedream 5 Pro
Professional image generation and editing with up to 10 reference images, 1K/2K output, and precise instruction following
- Endpoint
- POST /api/v1/images/generate
- model
- seedream-5-pro
- Output
- Image
- Credits
- from 20
Soumettre une tâche
/api/v1/images/generateParamètres
modelstringObligatoireMust be "seedream-5-pro"
typestringFacultatifPar défauttext-to-image"text-to-image" or "image-to-image" (default: text-to-image)
text-to-imageimage-to-imagepromptstringObligatoirePrompt textuel pour générer l'image. Prend en charge l'anglais et le chinois. Recommandation : pas plus de 600 mots anglais ; trop d'informations peut disperser les détails et entraîner des éléments manquants.
generation_modestringFacultatifPar défautstandard"economy" or "standard". Existing API clients that omit this field keep the Standard-mode default.
economystandardresolutionstringFacultatifPar défaut1K"1K" or "2K" (default: 1K)
1K2Kaspect_ratiostringFacultatifPar défaut1:1"1:1", "4:3", "3:4", "16:9", "9:16", "2:3", or "3:2". Standard mode also supports "21:9" (default: 1:1)
1:14:33:416:99:162:33:221:9image_urlsstring[]FacultatifInput image URLs for image-to-image. Supports up to 10 JPEG, PNG, or WebP images. Economy mode supports up to 10MB per image; Standard mode supports up to 30MB. Each image adds 1 credit.
input_imagestringFacultatifDeprecated. Alias for image_urls[0]
num_imagesnumberFacultatifMust be 1
Requête
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-pro",
"prompt": "A premium ecommerce product photo of a translucent smart speaker on a glass table, soft daylight, crisp details",
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}'Réponse200
{
"success": true,
"data": {
"task_id": "task_seedream5pro_abc123",
"request_id": "req_abc123",
"credits_used": 20,
"remaining_credits": 480,
"model": "seedream-5-pro",
"generation_mode": "economy",
"resolution": "2K"
}
}Les valeurs credits_used de ces exemples sont indicatives. La consommation réelle est calculée à l'envoi et renvoyée par l'API.
Consulter la tâche
/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.
Requête
curl https://www.bananapro.site/api/v1/images/task_abc123 \
-H "Authorization: Bearer sk-your-api-key"Réponse200
{
"success": true,
"data": {
"task_id": "task_abc123",
"model": "seedream-5-pro",
"status": "completed",
"output": { "images": [{ "url": "https://..." }] },
"primary_url": "https://...",
"image_url": "https://...",
"error_message": null,
"credits_used": 20,
"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"
}Attendre le résultat
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
doneTarification
| Mode | 1K | 2K |
|---|---|---|
| Economy | 10 | |
| Standard | 13 |
Fonctionnalités
- Text-to-image generation
- Image-to-image editing
- Multi-image fusion with up to 10 reference images
- 1K and 2K output
- Economy and Standard generation modes
- Single-image output per request