Skip to main content
POST
/
v1
/
images
/
generations
doubao-seedream-4-5-251128 (image edit)
curl --request POST \
  --url https://api.example.com/v1/images/generations
BytePlus’s GPTProto format for the image edit API.
curl --location 'https://gptproto.com/api/v3/doubao/seedream-4-5-251128/image-edit' \
--header 'Authorization: sk-xx' \
--header 'Content-Type: application/json' \
--data '{
  "enable_base64_output": false,
  "enable_sync_mode": false,
  "images": [
    "https://d1q70pf5vjeyhc.cloudfront.net/media/92d2d4ca66f84793adcb20742b15d262/images/1757414555847323990_Si8cqCBF.jpeg"
  ],
  "prompt": "Turn this photo into a characterfigure. Behind it, place a box withthe character'\''s image printed on it,and a computer showing the Blendermodeling process on its screen. In frontof the box, add a round plastic basewith the character figure standing on it .set the scene indoors if possible.",
  "size": "2227*3183"
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
enable_base64_outputboolean❌ NofalseWhether to return base64 encoded output
enable_sync_modeboolean❌ NofalseWhether to enable synchronous mode
imagesarray✅ Yes-Input image URL(s) for image-to-image generation
promptstring✅ Yes-Image generation prompt describing the desired image content
sizestring❌ No-Output image resolution (e.g., 22273183, 10241024)