Skip to main content
POST
/
v1
/
images
/
generations
Image to Image
curl --request POST \
  --url https://gptproto.com/v1/images/generations \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "<string>",
  "prompt": "<string>",
  "image": "<string>",
  "response_format": "<string>",
  "size": "<string>",
  "seed": 123,
  "guidance_scale": 123,
  "watermark": true
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

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:"doubao-seededit-3-0-i2i-250628"
required
The model to use for the request
prompt
string
default:"Change bubbles into heart shape"
required
Prompt parameter
image
string
Image parameter
response_format
string
default:"url"
Response Format parameter
size
string
default:"adaptive"
Size parameter
seed
integer
default:"21"
Seed parameter
guidance_scale
number
default:"5.5"
Guidance Scale parameter
watermark
boolean
default:"true"
Watermark 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": "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

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}