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
prompt
string
default:"cat with a red hat https://xxx.png"
required
Prompt parameter
model
string
default:"flux-kontext-pro"
required
The model to use for the request
Number of completions to generate
Request Example
curl -X POST "https://gptproto.com/v1/images/generations" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "cat with a red hat https://xxx.png",
"model": "flux-kontext-pro",
"size": "16:9",
"n": 1
}'
Response
Error Responses
{
"error": {
"message": "Invalid signature",
"type": "401"
}
}