Official documentation: https://api.bfl.ml/scalar#tag/tasks/POST/v1/flux-pro
Please check the official documentation. All parameters are consistent with the official documentation.
Official price: https://docs.bfl.ml/pricing/
Price: (Same as official)
[flux-pro-1.1-ultra]  0.06 PTC/image
[flux-pro-1.1]  0.04 PTC/image
[flux-pro]  0.05 PTC/image
[flux-dev]  0.025 PTC/image
[flux-pro-1.0-fill]  0.05 PTC/image
[flux-pro-1.0-canny]  0.05 PTC/image
[flux-pro-1.0-depth]  0.05 PTC/image
[flux-pro-1.1-ultra-finetuned]  0.07 PTC/image
[flux-pro-1.0-finetuned]  0.06 PTC/image
[flux-pro-1.0-depth-finetuned]  0.06 PTC/image
[flux-pro-1.0-canny-finetuned]  0.06 PTC/image
[flux-pro-1.0-fill-finetuned]  0.06 PTC/image Request
Body Params  application/json
{
  "prompt": "ein fantastisches bild",
  "width": 1024,
  "height": 768,
  "steps": 40,
  "prompt_upsampling": false,
  "seed": 42,
  "guidance": 2.5,
  "safety_tolerance": 2,
  "interval": 2,
  "output_format": "jpeg"
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/flux/v1/' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "prompt": "ein fantastisches bild",
  "width": 1024,
  "height": 768,
  "steps": 40,
  "prompt_upsampling": false,
  "seed": 42,
  "guidance": 2.5,
  "safety_tolerance": 2,
  "interval": 2,
  "output_format": "jpeg"
}'
Responses
application/json {
    "images": [
        {
            "url": "string",
            "width": 0,
            "height": 0,
            "content_type": "string"
        }
    ],
    "timings": {},
    "seed": 0,
    "has_nsfw_concepts": [
        true
    ],
    "prompt": "string"
}
Modified at 2025-01-23 11:00:41