Overview
This endpoint provides image to image functionality using Volcengine official format.
Authentication
This endpoint requires authentication using a Bearer token with your API key.
Your API key in the format: Bearer YOUR_API_KEY
Request Body
model
string
default:"doubao-seededit-3-0-i2i-250628"
required
The model identifier for image generation/editing
Description of the desired image transformation or generation
Input image URL for image-to-image editing
Response format: “url” (image URL) or “b64_json” (base64 encoded)
Output image resolution. Options: adaptive, 1024x1024, 2K, 4K
Random seed for reproducible results
Controls adherence to the prompt. Range: 1.0-10.0, recommended: 3.0-7.0
Whether to add watermark to the generated image
Request Example
curl -X POST "https://gptproto.com/api/v3/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "doubao-seededit-3-0-i2i-250628",
"prompt": "Change bubbles into heart shape",
"image": "https://ark-project.tos-cn-beijing.volces.com/doc_image/seedream_i2i.jpeg",
"response_format": "url",
"size": "adaptive",
"seed": 21,
"guidance_scale": 5.5,
"watermark": true
}'
Response
Successful response with image generation result{
"id": "img_xxxxxxxxxx",
"object": "image",
"created": 1234567890,
"model": "doubao-seededit-3-0-i2i-250628",
"data": [
{
"url": "https://example.com/generated_image.jpg",
"index": 0
}
],
"usage": {
"prompt_tokens": 10,
"total_tokens": 10
}
}
Error Responses
{
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error",
"code": "invalid_parameters"
}
}