Overview
This endpoint provides text to image functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: YOUR_API_KEY
Request Body
model
string
default:"doubao-seedream-3-0-t2i-250415"
required
The model to use for the request
Image generation prompt describing the desired image content
Response format: “url” (image URL) or “b64_json” (base64 encoded)
size
string
default:"1024x1024"
Output image resolution (e.g., 1024x1024, 2K, 4K)
Random seed for reproducible results
Controls how closely the image follows the prompt (higher = more strict, typical range: 1.0-7.0)
Whether to add watermark to generated image
Request Example
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
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}