Doubao Seedream 4.0 250828 Image to Image

给定提示 and / or 输入图像, models将生成新图像. 相关指南: [图像生成](https://www.volcengine.com/docs/82379/1666946) according to提示创建图像.

Endpoint

POST http://v98store.com/v1/images/generations

cURL Command

curl -X POST 'http://v98store.com/v1/images/generations' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer YOUR_TOKEN' \ -d '{ "model": "doubao-seedream-4-0-250828", "prompt": "生成狗狗趴in草 近景画面", "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imageToimage.png", "size": "1728x2304", "sequential_image_generation": "disabled", "stream": false, "response_format": "url", "watermark": true }'

Parameters

NameInDescriptionRequired
AuthorizationheaderNo

Request Body

Example

{
  "model": "doubao-seedream-4-0-250828",
  "prompt": "生成狗狗趴in草 近景画面",
  "image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream4_imageToimage.png",
  "size": "1728x2304",
  "sequential_image_generation": "disabled",
  "stream": false,
  "response_format": "url",
  "watermark": true
}

Responses

200 -

Example

{
  "data": [
    {
      "url": "https://ark-content-generation-v2-cn-beijing.tos-cn-beijing.volces.com/doubao-seedream-4-0/0217574695481350fa6ef8c2347680bd87fd8d357bb16f114b01e_0.jpeg?X-Tos-Algorithm=TOS4-HMAC-SHA256&X-Tos-Credential=AKLTYWJkZTExNjA1ZDUyNDc3YzhjNTM5OGIyNjBhNDcyOTQ%2F20250910%2Fcn-beijing%2Ftos%2Frequest&X-Tos-Date=20250910T015921Z&X-Tos-Expires=86400&X-Tos-Signature=95ed1d75393161dc0ea150c0c9b6d72298d4b27ea3ca305bcf07268ffe550e4c&X-Tos-SignedHeaders=host"
    }
  ],
  "created": 1757469561,
  "usage": {
    "prompt_tokens": 0,
    "completion_tokens": 0,
    "total_tokens": 16280,
    "prompt_tokens_details": {
      "cached_tokens_details": {}
    },
    "completion_tokens_details": {},
    "output_tokens": 16280
  }
}