Generation status
generate_statusFollows a generate job: its status (status), its output once COMPLETED (result, which settles the bill), or cancel.
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": {
"endpoint_id": "<endpoint_id>",
"request_id": "<request_id>"
},
"name": "generate_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logs | No | Include the job's logs with its status | |
| action | No | `status` (the default) reports where the job is; `result` fetches its output once COMPLETED, which settles the bill; `cancel` stops a job that is still queued or running | status |
| request_id | Yes | The job's `request_id`, as generate returned it, with the endpoint_id it ran on | |
| endpoint_id | Yes | A model's endpoint id, as generate models lists it, e.g. `fal-ai/flux/dev` |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The upstream response body, or null when it had none. |