Get request
get_requestRead a request started with generate: its status (queued, in_progress, completed, failed, or cancelled), its result, and the Gems it charged. It waits up to wait_seconds (default 45, at most 120) for the request to finish; call it again while the status is queued or in_progress. To follow many requests at once, list_history with status: "in_progress" (or queued, completed, failed) lists them with their request_id. A result's url stays available for 30 days, so tell the user to download what they want to keep. Generations started in the Mage app are not requests; list_history shows them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes | The `request_id` generate returned. | |
| wait_seconds | No | Seconds to wait for the request to finish before answering; 0 answers at once. Default 45. |