User Guide
Image Generation Model

Seedream 4 Image Generation

In the current project's public model list, `doubao-seedream-4-0-250828` / `seedream-4-0-250828` is visible; calls the unified image API and returns results synchronously.

  • Route: POST /v1/images/generations
  • Returns ImageResponse synchronously on success
curl --request POST \
  --url https://api.magickapi.com/v1/images/generations \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "seedream-4-0-250828",
    "prompt": "A cute panda playing in a bamboo forest",
    "n": 1,
    "response_format": "url"
  }'

Successful Response Example

{
  "created": 1712345678,
  "data": [
    {
      "url": "https://example.com/seedream-image.png",
      "b64_json": "",
      "revised_prompt": ""
    }
  ]
}

Fields Guaranteed by the Current Project's Public API

  • model
  • prompt
  • n
  • size
  • quality
  • response_format

Compatibility Notes

  • If you need image editing, please use /v1/images/edits or /v1/edits

Last updated on

On this page