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/v1/generations
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/generations
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Query parameters
limitstring
Maximum number of rows to return: 1 to 100; default 50.
cursorstring
Send next_cursor as cursor; omit it for the first page.
modelstring
Only runs of this model or preset. A preset's ID without a version, such as leap/headshot, takes in every version.
sourcestring
Only runs started from these places, comma-separated: api, mcp or studio, such as api,mcp.
statusstring
Only runs in these states, comma-separated, such as queued,running.
Response
A page of generations.
Changes
No recorded changes to this operation across all 1 revision of this API.