Create generation
Creates a generation and returns the created row.
AuthorizationBearer <esk_live_…>A workspace API key created in workspace settings. It acts as the member who created it, narrowed to its abilities, projects and credit limit. Each operation names the ability it needs.
Scope: generations:create
Endless-Api-Version?stringPin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.
application/json- body
organization_id*string^org_output_type*string"image""video""audio""3d"model_id?string|nullfallback_model_id?string|nullstrict_model?booleanversion_id?|nullquick_action_id?|nullparameters?{}project_id?|nullid?stringuuidcanvas_id?|nullcanvas_position?|nullcanvas_size?|nullpage_id?string|nullconversation_id?|nullmessage_id?|nulltool_call_id?|nullsource_generation_id?|nullwritten_prompt?|nullelements?array<>items <= 20max_credits?number0 <= valuedispatch?string"auto""auto""inline"OK
application/json- response
generation_id*stringreused*booleanstatus*string"running""completed""failed"model*quote*credits_charged*numberassets*array<>curl -X POST 'https://api.endless.app/generations' \ -H 'Content-Type: application/json' \ -d '{ "organization_id": "string", "output_type": "image"}'{ "generation_id": "string", "reused": true, "status": "running", "model": { "id": "string", "name": "string" }, "quote": { "per_output": 0, "count": 1, "total": 0, "is_minimum": true }, "credits_charged": 0, "assets": [ { "asset_id": "string", "url": "string", "type": "string" } ]}Mint a file token POST
A short-lived token that opens stored files on the files host as you: the browser's cookie (no keys, checked per file), or a token scoped to the files of one use (a model reading your images, a provider running a generation, an MCP result). A token never opens more than you can read.
Get generation GET
Returns a single generation. Scoped to the generation named by `generation_id`.