Created by black forest labs, founded by former Stability.ai members, for image generation, from: https://blackforestlabs.ai/Average runtime 5-10sPrice: 0.05 PTC / call
Request
Header Params
Authorization
string
required
API Key for 302.AI backend
Example:
Bearer {{YOUR_API_KEY}}
Body Params application/json
prompt
string
required
image_size
object
optional
width
integer
required
height
integer
required
num_inference_steps
integer
optional
guidance_scale
number
optional
Example
{"prompt":"Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture.","image_size":{"width":1024,"height":1024},"num_inference_steps":28,"guidance_scale":3.5}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request POST 'https://api.302.ai/302/submit/flux-dev' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "Extreme close-up of a single tiger eye, direct frontal view. Detailed iris and pupil. Sharp focus on eye texture and color. Natural lighting to capture authentic eye shine and depth. The word \"FLUX\" is painted over it in big, white brush strokes with visible texture.",
"image_size": {
"width": 1024,
"height": 1024
},
"num_inference_steps": 28,
"guidance_scale": 3.5
}'