Seedream 5 Pro
Professional image generation and editing with up to 10 reference images, 1K/2K output, and precise instruction following
기능
- 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
요금제
| Mode | 1K | 2K |
|---|---|---|
| Economy | 10 (~$0.11) | |
| Standard | 13 (~$0.14) |
엔드포인트
POST
/api/v1/images/generate매개변수
| Parameter | 타입 | 필수 | 설명 |
|---|---|---|---|
| model | string | 필수 | Must be "seedream-5-pro" |
| type | string | 선택 사항 | "text-to-image" or "image-to-image" (default: text-to-image) |
| prompt | string | 필수 | 이미지 생성에 사용할 텍스트 프롬프트입니다. 영어와 중국어를 지원합니다. 권장 길이는 영어 600단어 이하입니다. 너무 길면 정보가 분산되어 세부 요소가 누락될 수 있습니다. |
| generation_mode | string | 선택 사항 | "economy" or "standard". Existing API clients that omit this field keep the Standard-mode default. |
| resolution | string | 선택 사항 | "1K" or "2K" (default: 1K) |
| aspect_ratio | string | 선택 사항 | "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[] | 선택 사항 | 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 | 선택 사항 | Deprecated. Alias for image_urls[0] |
| num_images | number | 선택 사항 | Must be 1 |
요청 예시 (텍스트-투-이미지)
{
"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"
}요청 예시 (이미지-투-이미지)
{
"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"
}응답 예시
{
"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"
}
}코드 예시 (텍스트-투-이미지)
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"
}'코드 예시 (이미지-투-이미지)
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"
}'