Overview
This endpoint provides image to image functionality.
Authentication
This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***********"
required
Your API key in the format: Bearer YOUR_API_KEY
Request Body
model
string
default:"seededit-3-0-i2i-250628"
required
The model to use for the request
prompt
string
default:"Change bubbles into heart shape"
required
Prompt parameter
Response Format parameter
Request Example
curl -X POST "https://gptproto.com/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "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
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}