header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
Example
{"prompt":"A photo of a lion sitting on a stone bench","num_inference_steps":28,"guidance_scale":3.5,"num_images":1,"enable_safety_checker":true,"output_format":"jpeg","image_url":"https://storage.googleapis.com/falserverless/example_inputs/dog.png","strength":0.85}
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 'https://www.16api.com/fal-ai/flux-lora/image-to-image' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"prompt": "A photo of a lion sitting on a stone bench",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"num_images": 1,
"enable_safety_checker": true,
"output_format": "jpeg",
"image_url": "https://storage.googleapis.com/falserverless/example_inputs/dog.png",
"strength": 0.85
}'