Skip to main content
POST
/
flux
/
v1
/
flux-kontext-pro
Submit Task
curl --request POST \
  --url https://gptproto.com/flux/v1/flux-kontext-pro \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "input_image": "<string>",
  "input_image_2": "<string>",
  "input_image_3": "<string>",
  "input_image_4": "<string>",
  "seed": 123,
  "aspect_ratio": "<string>",
  "output_format": "<string>",
  "webhook_url": "<string>",
  "webhook_secret": "<string>",
  "prompt_upsampling": true,
  "safety_tolerance": 123
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

参数描述,请参考官方文档 https://docs.bfl.ai/api-reference/tasks/edit-or-create-an-image-with-flux-kontext-pro

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:"ein fantastisches bild"
required
Prompt parameter
input_image
string
default:"base64"
Input Image parameter
input_image_2
string
default:"base64"
Input Image 2 parameter
input_image_3
string
default:"base64"
Input Image 3 parameter
input_image_4
string
default:"base64"
Input Image 4 parameter
seed
integer
default:"42"
Seed parameter
aspect_ratio
string
default:"21:9"
Aspect Ratio parameter
output_format
string
default:"jpeg"
Output Format parameter
webhook_url
string
default:"<string>"
Webhook Url parameter
webhook_secret
string
default:"<string>"
Webhook Secret parameter
prompt_upsampling
boolean
default:"false"
Prompt Upsampling parameter
safety_tolerance
integer
default:"2"
Safety Tolerance parameter

Request Example

curl -X POST "https://gptproto.com/flux/v1/flux-kontext-pro" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "ein fantastisches bild",
  "input_image": "base64",
  "input_image_2": "base64",
  "input_image_3": "base64",
  "input_image_4": "base64",
  "seed": 42,
  "aspect_ratio": "21:9",
  "output_format": "jpeg",
  "webhook_url": "<string>",
  "webhook_secret": "<string>",
  "prompt_upsampling": false,
  "safety_tolerance": 2
}'

Response

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

Error Responses

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