seedream-5.0-lite/text-to-image
seedream-5.0-lite/text-to-image
이미지ByteDanceSeedream 5.0 Litetext-to-image
字节最新一代的图像生成模型
인증
- Base URL
https://api.dreamtoai.com- Authorization
Authorization: Bearer YOUR_API_KEY- Content-Type
application/json- 모델 이름 (model)
seedream-5.0-lite/text-to-image
연동 프로토콜
이 프로토콜을 선택하는 이유
适合需要提交任务并轮询状态的图像、视频、音频生成工作流。
엔드포인트 URL
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json요청 / 응답 JSON
요청
{
"model": "seedream-5.0-lite/text-to-image",
"input": {
"prompt": "一张国风插画,细节丰富,柔和光线",
"image": [
"https://example.com/reference.png"
],
"size": "1024x1024",
"sequential_image_generation": "disabled",
"sequential_image_generation_options": {},
"tools": [],
"stream": false,
"guidance_scale": 5,
"output_format": "jpeg",
"response_format": "url",
"watermark": true,
"optimize_prompt_options": {}
}
}응답
{
"id": "job_example",
"object": "job",
"status": "processing",
"model": "seedream-5.0-lite/text-to-image",
"created": 1710000000,
"request_id": "req_example"
}요청 / 응답 필드
요청 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| prompt | string | Y |
| image | array | N |
| size | string | N |
| sequential_image_generation | enum | N |
| sequential_image_generation_options | object | N |
| tools | array | N |
| stream | boolean | N |
| guidance_scale | number | N |
| output_format | enum | N |
| response_format | enum | N |
| watermark | boolean | N |
| optimize_prompt_options | object | N |
응답 필드
| 필드 | 타입 | 필수 |
|---|---|---|
| output.images[] | image | N |
코드 예제
cURLrequest.sh
curl -X POST "https://api.dreamtoai.com/v1/jobs" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "seedream-5.0-lite/text-to-image",
"input": {
"prompt": "一张国风插画,细节丰富,柔和光线",
"image": [
"https://example.com/reference.png"
],
"size": "1024x1024",
"sequential_image_generation": "disabled",
"sequential_image_generation_options": {},
"tools": [],
"stream": false,
"guidance_scale": 5,
"output_format": "jpeg",
"response_format": "url",
"watermark": true,
"optimize_prompt_options": {}
}
}'
# 작업 상태 조회 cURL
# job_example을 제출 응답이 반환한 task_id로 바꾸세요
curl -X GET "https://api.dreamtoai.com/v1/jobs/job_example" \
-H "Authorization: Bearer YOUR_API_KEY"