header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"model":"flux-2-pro","prompt":"A sunset over tree with a little bird flying over the sky","seed":42,"width":1024,"height":972,"safety_tolerance":2,"output_format":"jpeg"}
Request Code 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 '/flux/v1/flux-2-pro' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "flux-2-pro",
"prompt":"A sunset over tree with a little bird flying over the sky",
"seed": 42,
"width": 1024,
"height": 972,
"safety_tolerance": 2,
"output_format": "jpeg"
}'