Generations
List generations
Your workspace’s generations, newest first, 50 to a page by default. Filter by model, status or where they were started. To read the next page, send next_cursor as cursor with the same filters.
Needs an API key with the generations:read scope.
GET
https://api.tryleap.ai
/
v1
/
generations
List generations
curl --request GET \
--url https://api.tryleap.ai/v1/generations \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tryleap.ai/v1/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/generations"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"url": "/v1/generations",
"data": [
{
"id": "gen_7Hq2mVx9Lr4Kp8Tn3Wc6Yb1D",
"object": "generation",
"model": "google/veo-3.1-fast",
"modality": "video",
"status": "succeeded",
"provider": "gateway",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"output": [
{
"type": "video",
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"content_type": "video/mp4",
"width": 1920,
"height": 1080,
"poster": {
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"width": 720,
"height": 405
}
}
],
"error": null,
"failure_cause": null,
"usage": {
"cost_usd": "0.80"
},
"source": "api",
"batch_id": null,
"created_at": "2026-10-04T18:22:41.512Z",
"started_at": "2026-10-04T18:22:42.090Z",
"completed_at": "2026-10-04T18:24:11.877Z",
"slow_at": null,
"deadline_at": null,
"suggested_recipe": null
}
],
"has_more": true,
"next_cursor": "eyJpZCI6Imdlbl83SHEybVZ4OUxyNEtwOFRuM1djNlliMUQifQ.2b4Kx9Qm7Lr1Tn5Wc3Yb8Df6Gh0Jk2Mn4Pq6Rs8Tv0X"
}Authorizations
ApiKeyBearer
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Query Parameters
Response
A page of generations.
Forward list envelope. Live lists are not snapshots; totals are not promised.
⌘I
List generations
curl --request GET \
--url https://api.tryleap.ai/v1/generations \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.tryleap.ai/v1/generations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.tryleap.ai/v1/generations"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"object": "list",
"url": "/v1/generations",
"data": [
{
"id": "gen_7Hq2mVx9Lr4Kp8Tn3Wc6Yb1D",
"object": "generation",
"model": "google/veo-3.1-fast",
"modality": "video",
"status": "succeeded",
"provider": "gateway",
"revision": "2026-10-02",
"input": {
"prompt": "A heron lands on a still lake at dawn",
"aspect_ratio": "16:9",
"n": 1,
"duration": 4,
"resolution": "1080p",
"audio": true
},
"output": [
{
"type": "video",
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"content_type": "video/mp4",
"width": 1920,
"height": 1080,
"poster": {
"url": "https://api.tryleap.ai/files/eyJrIjoibWVkaWEvb3V0cHV0cy9nZW5fN0hxMm1WeDlMcjRLcDhUbjNXYzZZYjFEIn0",
"expires_at": "2026-10-05T18:24:12.004Z",
"width": 720,
"height": 405
}
}
],
"error": null,
"failure_cause": null,
"usage": {
"cost_usd": "0.80"
},
"source": "api",
"batch_id": null,
"created_at": "2026-10-04T18:22:41.512Z",
"started_at": "2026-10-04T18:22:42.090Z",
"completed_at": "2026-10-04T18:24:11.877Z",
"slow_at": null,
"deadline_at": null,
"suggested_recipe": null
}
],
"has_more": true,
"next_cursor": "eyJpZCI6Imdlbl83SHEybVZ4OUxyNEtwOFRuM1djNlliMUQifQ.2b4Kx9Qm7Lr1Tn5Wc3Yb8Df6Gh0Jk2Mn4Pq6Rs8Tv0X"
}