Lumeta AI Files API

The Files API from Lumeta AI — 3 operation(s) for files.

GitHub OpenAPI

Operations 4

POST /v1/files Upload a file (multipart/form-data, part "file"). #
GET /v1/files Your uploads and imports from the last 60 days. #
POST /v1/files/import Import a public https:// URL as one of your files #
GET /v1/files/{id} One file #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lumeta-ai:lumeta-ai-files-api"
All apis
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.

Get an API 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 Specification

lumeta-ai-files-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lumeta Files 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: Files
paths:
  /v1/files:
    post:
      operationId: files_create
      summary: Upload a file (multipart/form-data, part "file").
      security:
      - bearer:
        - library
      x-lumeta-scope: library
      responses:
        default:
          $ref: '#/components/responses/Error'
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
              - file
              properties:
                file:
                  type: string
                  format: binary
                model:
                  type: string
                  description: 'Optional: the model this file is for (id or slug); per-model upload limits apply.'
      tags:
      - Files
    get:
      operationId: files_list
      summary: Your uploads and imports from the last 60 days.
      security:
      - bearer:
        - read
      x-lumeta-scope: read
      parameters:
      - name: type
        in: query
        required: false
        schema:
          type: string
        description: image | video | audio | other
      - name: project
        in: query
        required: false
        schema:
          type: string
        description: '`proj_<id>`'
      - 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/File'
                  next_cursor:
                    type:
                    - string
                    - 'null'
      tags:
      - Files
  /v1/files/import:
    post:
      operationId: files_import
      summary: Import a public https:// URL as one of your files
      security:
      - bearer:
        - library
      x-lumeta-scope: library
      responses:
        default:
          $ref: '#/components/responses/Error'
        '201':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - url
              properties:
                url:
                  type: string
                  format: uri
                model:
                  type: string
      tags:
      - Files
  /v1/files/{id}:
    get:
      operationId: file_get
      summary: One file
      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.
      responses:
        default:
          $ref: '#/components/responses/Error'
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/File'
      tags:
      - Files
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
    File:
      type: object
      properties:
        id:
          type: string
        filename:
          type: string
        source:
          type: string
        project:
          type:
          - string
          - 'null'
        created_at:
          type: string
        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.
  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).'