generate
Queue AI model generation requests to fal.ai and immediately get a request_id for tracking results.
Instructions
Submit a generation request to a fal.ai model. This queues the request and returns immediately with a request_id for tracking.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"app_id": "<app_id>",
"input_data": "<input_data>"
},
"name": "generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The model application ID (e.g., 'fal-ai/flux/dev') | |
| input_data | Yes | Dictionary of input parameters for the model (model-specific) | |
| webhook_url | No | Optional webhook URL for result notification | |
| output_format | No | Output format (default: 'json') | json |