Every API here is available over the APIs.io API and to AI agents over MCP.
openapi: 3.2.0
info:
title: Lumeta Shelves 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: Shelves
paths:
/v1/shelves:
get:
operationId: shelves_list
summary: 'Your shelves: proj_0 (All Projects) and one per project, with item counts'
security:
- bearer:
- read
x-lumeta-scope: read
responses:
default:
$ref: '#/components/responses/Error'
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
$ref: '#/components/schemas/Shelf'
next_cursor:
type:
- string
- 'null'
tags:
- Shelves
/v1/shelves/{project}/items:
get:
operationId: shelf_items_list
summary: Items on a shelf, by the names you gave them, each with its `group` (or null).
security:
- bearer:
- read
x-lumeta-scope: read
parameters:
- name: project
in: path
required: true
schema:
type: string
description: '`proj_<id>`. On a shelf path, `proj_0` is the All Projects shelf: a project''s shelf holds what everyone in that project saved there; All Projects holds your own items plus those.'
- name: q
in: query
required: false
schema:
type: string
description: Match the item name (or filename).
- name: type
in: query
required: false
schema:
type: string
description: image | video | audio | other
- 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/ShelfItem'
next_cursor:
type:
- string
- 'null'
tags:
- Shelves
post:
operationId: shelf_item_create
summary: Pin a generation output (gen_#) or a file (file_) to a shelf with a name…
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: project
in: path
required: true
schema:
type: string
description: '`proj_<id>`. On a shelf path, `proj_0` is the All Projects shelf: a project''s shelf holds what everyone in that project saved there; All Projects holds your own items plus those.'
responses:
default:
$ref: '#/components/responses/Error'
'201':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ShelfItem'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- media
properties:
media:
type: string
description: '`gen_<id>#<n>` or `file_<id>`'
name:
type: string
maxLength: 120
group:
type: string
maxLength: 80
description: A group on that shelf to file the item under, by name. Made if it does not exist yet.
tags:
- Shelves
/v1/shelves/{project}/items/{id}:
patch:
operationId: shelf_item_update
summary: Rename a shelf item, or file it in a group (or take it out of one)
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: project
in: path
required: true
schema:
type: string
description: '`proj_<id>`. On a shelf path, `proj_0` is the All Projects shelf: a project''s shelf holds what everyone in that project saved there; All Projects holds your own items plus those.'
- 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/ShelfItem'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
maxLength: 120
group:
type:
- string
- 'null'
maxLength: 80
description: A group name files the item there (made if missing); an empty string or null takes it out of its group. Send `name`, `group` or both.
tags:
- Shelves
delete:
operationId: shelf_item_delete
summary: Remove an item from a shelf (the file stays)
security:
- bearer:
- library
x-lumeta-scope: library
parameters:
- name: project
in: path
required: true
schema:
type: string
description: '`proj_<id>`. On a shelf path, `proj_0` is the All Projects shelf: a project''s shelf holds what everyone in that project saved there; All Projects holds your own items plus those.'
- 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:
type: object
properties:
id:
type: string
deleted:
type: boolean
tags:
- Shelves
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
ShelfItem:
type: object
properties:
id:
type: string
name:
type: string
project:
type: string
group:
type:
- string
- 'null'
description: The name of the Shelf group the item is filed in, or null when it is loose.
created_at:
type: string
type:
type: string
enum:
- image
- video
- audio
- other
url:
type: string
description: Durable https URL of the stored file.
width:
type: integer
height:
type: integer
duration:
type: number
description: Seconds, for audio and video.
Shelf:
type: object
properties:
project:
type: string
name:
type: string
role:
type: string
item_count:
type: integer
items_url:
type: string
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).'