Skip to main content
POST
/
v1
/
images
/
generations
flux-kontext-max (image edit)
curl --request POST \
  --url https://api.example.com/v1/images/generations
Flux’s GPTProto format for the image edit API.
curl -X POST "https://gptproto.com/v1/images/generations" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "cat with a red hat https://xxx.png",
  "model": "flux-kontext-max",
  "size": "16:9",
  "n": 1
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
promptstring✅ Yescat with a red hat https://xxx.pngPrompt parameter
modelstring✅ Yesflux-kontext-maxThe model to use for the request
sizestring❌ No16:9Size parameter
ninteger❌ No1Number of completions to generate