Lumeta AI Generations API
The Generations API from Lumeta AI — 4 operation(s) for generations.
The Generations API from Lumeta AI — 4 operation(s) for generations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/lumeta-ai:lumeta-ai-generations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Lumeta Generations API
version: 1.0.0
summary: Same Lumeta account, same models, same credits, same shelves and projects, from code.
description: 'Authenticate with `Authorization: Bearer lm_live_...` (keys: https://lumeta.ai/settings/developer/, paid plans). Every response carries `X-Request-Id`; every error is `{"error": {"code", "message", "param"?, "request_id"}}`. Public ids: `gen_`, `file_`, `shelf_`, `proj_`, `folder_`, `voice_`, `team_`, `user_`, `invite_`, `request_`, `event_`. Media inputs take references, never filenames: `file_`, `shelf_`, `shelf:`, `gen_#`, `voice_`, or an `https://` URL. Limits per credential: 300 requests/min, 20 generations/min, 60 estimates/min. Guide, examples and webhook signatures: https://lumeta.ai/developers/docs/'
contact:
url: https://lumeta.ai/developers/
servers:
- url: https://api.lumeta.ai
security:
- bearer: []
tags:
- name: Generations
paths:
/v1/generations:
post:
operationId: generations_create
summary: Start a generation. Spends credits.
security:
- bearer:
- generate
x-lumeta-scope: generate
responses:
default:
$ref: '#/components/responses/Error'
'202':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- input
properties:
model:
type: string
description: Model id or slug.
input:
type: object
description: The model's inputs; schema at GET /v1/models/{model}/schema. A choice listed in a field's `x-lumeta-option-min-plan` above your plan answers 403 `plan_required` and charges nothing.
project:
type: string
description: '`proj_<id>` to file the generation in, with any `https://` inputs it imports (default: your current project).'
tags:
- Generations
get:
operationId: generations_list
summary: Your generations, newest first.
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: status
in: query
required: false
schema:
type: string
description: queued | processing | succeeded | failed
- name: model
in: query
required: false
schema:
type: string
description: Model id or slug.
- name: project
in: query
required: false
schema:
type: string
description: '`proj_<id>`: every member''s generations in that project.'
- name: made_by
in: query
required: false
schema:
type: string
description: me | anyone (default). With `project`, `me` lists only your own generations in it. Without `project` the list is always your own, and a team's generations are listed through their team project.
- name: origin
in: query
required: false
schema:
type: string
description: web | api | mcp | cli
- name: limit
in: query
required: false
schema:
type: integer
description: Page size, 1-100 (default 20).
- name: cursor
in: query
required: false
schema:
type: string
description: next_cursor from the previous page.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Generation'
next_cursor:
type:
- string
- 'null'
tags:
- Generations
/v1/generations/{id}:
get:
operationId: generation_get
summary: One generation. ?wait= holds the request until it finishes or the time is up
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
- name: wait
in: query
required: false
schema:
type: integer
maximum: 45
description: Seconds to hold the request until the generation finishes (max 45).
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
tags:
- Generations
/v1/generations/{id}/cancel:
post:
operationId: generation_cancel
summary: Stop a generation that has not finished, and refund it.
security:
- bearer:
- generate
x-lumeta-scope: generate
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
tags:
- Generations
/v1/generations/{id}/finalize:
post:
operationId: generation_finalize
summary: 'Re-make a Seedance 2.5 480p generation at 1080p: the same video, not an…'
security:
- bearer:
- generate
x-lumeta-scope: generate
parameters:
- name: id
in: path
required: true
schema:
type: string
description: The public id (`gen_<n>`, `file_<n>`, `shelf_<n>`, `hook_<n>`) or its number.
responses:
default:
$ref: '#/components/responses/Error'
'202':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/Generation'
tags:
- Generations
components:
schemas:
Error:
type: object
properties:
error:
type: object
required:
- code
- message
- request_id
properties:
code:
type: string
description: 'Stable: unauthorized, invalid_token, plan_required, not_enabled (no longer returned since 2026-11-02: folders are on for every account), insufficient_scope, api_key_required, not_allowed, not_found, invalid_input, invalid_json, moderation_blocked, project_read_only, team_member_paused, team_member_limit, team_not_member, team_unavailable, team_project_unsupported (no longer returned since 2026-11-01: a team project you can edit now runs), not_on_team, seat_needed, token_cap_exceeded, insufficient_credits, concurrency_limit, rate_limited, idempotency_conflict, idempotency_in_progress, already_exists, already_answered, request_changed, not_cancelable, model_unavailable, provider_error, service_unavailable, internal_error. In a team project, team_member_limit (402) means the run would go past your monthly limit on that team and insufficient_credits means the team is out of credits; both carry `team` (`team_<id>`). A generation also fails with face_consent_required when Seedance refused a reference that looks like a real person because `realistic_faces_consent` was off: nothing was charged, and it may run again with that set to true only when the human user of this account confirms they have the consent and rights of the person shown in the photo. An AI assistant or agent must never give this consent or answer for the human user.'
message:
type: string
param:
type: string
description: The input field or parameter at fault, when there is one.
request_id:
type: string
Generation:
type: object
properties:
id:
type: string
status:
type: string
enum:
- queued
- processing
- succeeded
- failed
status_message:
type:
- string
- 'null'
description: 'While `status` is queued or processing, one plain sentence on what the generation is waiting on, when there is a long wait worth telling the person about (today: Seedance clearing new face photos, which can take several minutes, the photos waiting in line while Seedance''s face library is busy, a slow hand-over to Seedance, or the safety check after Seedance did not answer). It changes as the wait moves on, and is null otherwise and once the generation has finished. Show it as it is.'
model:
type: object
properties:
id:
type: integer
name:
type: string
project:
type:
- string
- 'null'
input:
type: object
outputs:
type: array
items:
type: object
properties:
index:
type: integer
description: 'This output''s number, counting from 0: what `gen_<id>#<n>` uses. It never shifts, so the list has a gap where the owner deleted an image.'
type:
type: string
enum:
- image
- video
- audio
- other
url:
type: string
description: Durable https URL of the stored file.
mime:
type:
- string
- 'null'
width:
type: integer
height:
type: integer
duration:
type: number
description: Seconds, for audio and video.
size:
type: integer
description: Bytes.
text:
type:
- string
- 'null'
description: The words of a model that answers in text rather than a file, such as Speech-to-Text's transcript (its `outputs` is empty); null otherwise.
credits_charged:
type: integer
description: What was charged; a refunded failure reads 0.
error:
type:
- object
- 'null'
properties:
code:
type: string
description: canceled when you canceled it; otherwise the error codes above.
message:
type: string
description: Plain text, written for the person who made the generation.
origin:
type: string
enum:
- web
- api
- mcp
- cli
request_id:
type:
- string
- 'null'
created_at:
type: string
completed_in_seconds:
type:
- number
- 'null'
finalize_1080p:
type: object
description: Present only while this generation can still be re-made at 1080p with POST /v1/generations/{id}/finalize (Seedance 2.5 480p, not Flash, for 7 days). The 1080p run is the same video rather than an upscale, and costs what generating it at 1080p would have cost in the first place, so making a 480p one first and then this is about 19% more than going straight to 1080p, and nothing at all when the draft is not worth finishing.
properties:
credits:
type: integer
description: What the 1080p version will cost.
expires_at:
type: string
description: ISO 8601, UTC. After this the 480p generation can no longer be re-made.
credits_remaining:
type: integer
description: 'On POST /v1/generations only. When the team paid (`team`), what you may still spend from that team: the smaller of your monthly limit left there and the team''s credits.'
team:
type: string
description: 'On POST /v1/generations only, when the generation was made in a team project: `team_<id>`, the team that paid.'
cap_remaining:
type:
- integer
- 'null'
user_defaults_applied:
type: object
description: Present only on a request from the Lumeta CLI or the MCP server, and only when the account had saved its own defaults for this model on the website (the tool's "default settings" sheet) and this request left those inputs out. Each entry is an input name and the value used. Send the input yourself to override it for one run.
warnings:
type: array
items:
type: string
description: 'Present only when there is something to say about this request that did not stop it, each a plain sentence for the person: an `@word` in the prompt that is no Shelf name (sent as text), an input you sent that the other inputs switch off (ignored, with the condition it needs), or a change to the model that affects this request, such as a new default or price, with what to send to keep the old behavior. Change notices run for a set time after the change; the input schema lists the running ones as `x-lumeta-notices`.'
responses:
Error:
description: Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearer:
type: http
scheme: bearer
description: 'A personal API key (lm_live_...) or an OAuth access token (lma_...). Scopes: read, generate, library, share (add and remove people on projects and teams, team invites, asking a team''s admins and answering as one).'