seedream-5.0-lite/image-to-image
seedream-5.0-lite/image-to-image
Hình ảnhByteDanceSeedream 5.0 Liteimage-to-image

字节最新一代的图像生成模型

Xác thực

Base URL
https://api.dreamtoai.com
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Tên mô hình (model)
seedream-5.0-lite/image-to-image

Giao thức tích hợp

Vì sao chọn giao thức này

适合需要提交任务并轮询状态的图像、视频、音频生成工作流。

URL endpoint
POST/v1/jobs
Authorization: Bearer YOUR_API_KEYContent-Type: application/json

JSON yêu cầu / phản hồi

Yêu cầu
{
  "model": "seedream-5.0-lite/image-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": {}
  }
}
Phản hồi
{
  "id": "job_example",
  "object": "job",
  "status": "processing",
  "model": "seedream-5.0-lite/image-to-image",
  "created": 1710000000,
  "request_id": "req_example"
}

Trường yêu cầu / phản hồi

Trường yêu cầu
TrườngKiểuBắt buộc
promptstringY
imagearrayN
sizestringN
sequential_image_generationenumN
sequential_image_generation_optionsobjectN
toolsarrayN
streambooleanN
guidance_scalenumberN
output_formatenumN
response_formatenumN
watermarkbooleanN
optimize_prompt_optionsobjectN
Trường phản hồi
TrườngKiểuBắt buộc
output.images[]imageN

Ví dụ mã

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/image-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 để kiểm tra trạng thái
# Thay job_example bằng task_id do phản hồi submit trả về.
curl -X GET "https://api.dreamtoai.com/v1/jobs/job_example" \
  -H "Authorization: Bearer YOUR_API_KEY"