Get generation results
get_generationUse this after any generate tool (generate_photos, edit_photo, generate_video, extend_video, lip_sync, recreate_reel) to get the results. It waits up to wait_seconds (at most 45) for the job to finish, then returns the photos or video with links, or how far along it is. Photos usually take 20 to 40 seconds, so one call is usually enough; videos take 1 to 3 minutes, so call again while it says processing. Never call a generate tool again to check, because that starts and charges a new job. Failures are refunded automatically, and the result says why they failed. Generation IDs don't expire. The result includes small previews of finished photos for you to look at (not with wait_seconds 0, which only checks); show the user the links.
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": {
"generation_id": "<generation_id>"
},
"name": "get_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_seconds | No | How long to wait for it to finish; 0 checks without waiting. | |
| generation_id | Yes | The generation_id a generate tool returned. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| items | No | ||
| stuck | No | Running far longer than usual, so likely stuck: stop checking. | |
| status | No | ||
| summary | Yes | ||
| view_url | No | ||
| error_code | No | Present only on a refusal. | |
| generation_id | No | ||
| influencer_id | No | ||
| credits_charged | No | ||
| influencer_name | No | ||
| credits_refunded | No |