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.
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)Authorizations
Your workspace API key, leap_.... Create one at https://app.tryleap.ai/go/api, and keep it on your server.
Query Parameters
Maximum number of rows to return: 1 to 100; default 50.
^\d{1,3}$Send next_cursor as cursor; omit it for the first page.
1 - 512^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]{43}$Only runs of this model or preset. A preset's ID without a version, such as leap/headshot, takes in every version.
100^[a-z0-9][a-z0-9-]*\/[a-z0-9][a-z0-9.-]*(@[1-9][0-9]{0,3})?$Only runs started from these places, comma-separated: api, mcp or studio, such as api,mcp.
Only runs in these states, comma-separated, such as queued,running.
Response
A page of generations.
Forward list envelope. Live lists are not snapshots; totals are not promised.
The list object discriminator.
"list"The list's resource path, such as /v1/records.
Resource objects in this page, in the requested order.
Show child attributes
Show child attributes
Whether another page is available using next_cursor.
Send as cursor to read the next page; null on the last page.
1 - 512^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]{43}$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)