Submit a Fal.ai task
Universal submission interface, path format POST /fal-ai/{model}. The request body is different for different models.
POST
/fal-ai/*modelBody Parametersapplication/json
guidance_scale number
Guidance scale
image_size string
Output size, such as square_hd, landscape_4_3
num_images integer
Number of images to generate
num_inference_steps integer
Number of inference steps
prompt* string
Text prompt words (commonly used by image/video models)
seed integer
Random seed; same seed makes results reproducible
Responses
200 OK application/json
response-200 object
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"guidance_scale": 3.5,
3"image_size": "landscape_4_3",
4"num_inference_steps": 28,
5"prompt": "A serene mountain landscape"
6}
1curl -X POST "https://api.digislash.com/fal-ai/*model" \
2-H "Authorization: Bearer <API Key>" \
3-H "Content-Type: application/json" \
4-d '{
5"guidance_scale": 3.5,
6"image_size": "landscape_4_3",
7"num_inference_steps": 28,
8"prompt": "A serene mountain landscape"
9}'
1▼{
2"request_id": "req_example",
3"status": "OK"
4}
