Seedream 5 Pro
Professional image generation and editing with up to 10 reference images, 1K/2K output, and precise instruction following
Funcionalidades
- 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
Preços
| Mode | 1K | 2K |
|---|---|---|
| Economy | 10 (~$0.11) | |
| Standard | 13 (~$0.14) |
Endpoint
POST
/api/v1/images/generateParâmetros
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| model | string | Obrigatório | Must be "seedream-5-pro" |
| type | string | Opcional | "text-to-image" or "image-to-image" (default: text-to-image) |
| prompt | string | Obrigatório | Prompt de texto para gerar a imagem. Compatível com inglês e chinês. Recomendação: no máximo 600 palavras em inglês; informações demais podem dispersar detalhes e fazer elementos faltarem. |
| generation_mode | string | Opcional | "economy" or "standard". Existing API clients that omit this field keep the Standard-mode default. |
| resolution | string | Opcional | "1K" or "2K" (default: 1K) |
| aspect_ratio | string | Opcional | "1:1", "4:3", "3:4", "16:9", "9:16", "2:3", or "3:2". Standard mode also supports "21:9" (default: 1:1) |
| image_urls | string[] | Opcional | Input 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_image | string | Opcional | Deprecated. Alias for image_urls[0] |
| num_images | number | Opcional | Must be 1 |
Exemplo de Requisição (Texto para Imagem)
{
"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"
}Exemplo de Requisição (Imagem para Imagem)
{
"model": "seedream-5-pro",
"type": "image-to-image",
"prompt": "Turn these references into one coherent luxury campaign image while preserving the product shape and brand colors",
"image_urls": [
"https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"
],
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}Exemplo de Resposta
{
"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"
}
}Exemplos de Código (Texto para Imagem)
curl -X POST https://gateway.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"
}'Exemplos de Código (Imagem para Imagem)
curl -X POST https://gateway.bananapro.site/api/v1/images/generate \
-H "Authorization: Bearer sk-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "seedream-5-pro",
"type": "image-to-image",
"prompt": "Turn these references into one coherent luxury campaign image while preserving the product shape and brand colors",
"image_urls": ["https://tempfile.aiquickdraw.com/workers/nano/image_1772780968156_ygk0zm.png"],
"generation_mode": "economy",
"resolution": "2K",
"aspect_ratio": "16:9"
}'