Created by black forest labs, founded by former Stability.ai members, for image generation, from: https://blackforestlabs.ai/Added hyper-realistic Lora,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":"a woman speaking onstage from google,white background with corporate logos blurred out, tech conference","image_size":{"width":1024,"height":768},"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-realism' \
--header'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "a woman speaking onstage from google,white background with corporate logos blurred out, tech conference",
"image_size": {
"width": 1024,
"height": 768
},
"num_inference_steps": 28,
"guidance_scale": 3.5
}'