Generate images using ByteDance SeeDream 4.1 with support for up to 6 reference images, resolutions up to 4K, and 8 aspect ratios.

Model

bytedance/seedream-4.1

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYesText description of the image to generate
image_urlsstring[]NonullReference image URLs for image-to-image mode (max 6)
aspect_ratiostringNo"1:1"1:1, 3:4, 4:3, 9:16, 16:9, 2:3, 3:2, 21:9
resolutionstringNo"2k"1k, 2k, or 4k
seedintegerNorandomSeed for reproducibility

Example - Text-to-Image

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "bytedance/seedream-4.1",
    "input": {
      "prompt": "An astronaut floating above Earth with the Milky Way in the background",
      "aspect_ratio": "16:9",
      "resolution": "2k"
    }
  }'

Example - Image-to-Image

curl -X POST https://api.unifically.com/v1/tasks \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "bytedance/seedream-4.1",
    "input": {
      "prompt": "Add dramatic lighting and cinematic atmosphere",
      "image_urls": ["https://example.com/reference.jpg"],
      "aspect_ratio": "16:9",
      "resolution": "2k"
    }
  }'
Each generation returns 4 images.

Response

{
  "success": true,
  "code": 200,
  "data": {
    "task_id": "9d489f02-316f-4386-8188-dc19540d56f5",
    "status": "completed",
    "output": {
      "image_urls": [
        "https://files.storagecdn.online/image/92116e95-8dd4-4cbb-b53f-ee643e1045d8.jpg",
        "https://files.storagecdn.online/image/42eaa39a-a305-4d5d-a542-a6579dc5514d.jpg",
        "https://files.storagecdn.online/image/974167b1-4a7a-4258-ab01-dd46064ae036.jpg",
        "https://files.storagecdn.online/image/aa7765bd-ce24-46a6-8be9-cc9e281f7e87.jpg"
      ]
    }
  }
}