Skip to main content
POST
/
v1
/
images
/
generations
doubao-seedream-3-0-t2i-250415 (text to image)
curl --request POST \
  --url https://api.example.com/v1/images/generations
BytePlus’s GPTProto format for the text to image API.
curl -X POST "https://gptproto.com/v1/images/generations" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "doubao-seedream-3-0-t2i-250415",
  "prompt": "Fisheye lens, a cat'''s head, the picture shows the cat'''s facial features are distorted due to the shooting method.",
  "response_format": "url",
  "size": "1024x1024",
  "seed": 12,
  "guidance_scale": 2.5,
  "watermark": true
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
modelstring✅ Yesdoubao-seedream-3-0-t2i-250415The model to use for the request
promptstring✅ YesFisheye lens, a cat'''s head, the picture shows the cat'''s facial features are distorted due to the shooting method.Image generation prompt describing the desired image content
response_formatstring❌ NourlResponse format: “url” (image URL) or “b64_json” (base64 encoded)
sizestring❌ No1024x1024Output image resolution (e.g., 1024x1024, 2K, 4K)
seedinteger❌ No12Random seed for reproducible results
guidance_scalenumber❌ No2.5Controls how closely the image follows the prompt (higher = more strict, typical range: 1.0-7.0)
watermarkboolean❌ NotrueWhether to add watermark to generated image