Leonardo.AI Media API

The Media API from Leonardo.AI — 2 operation(s) for media.

Operations 3

POST /media Upload media #
GET /media/{id} Get uploaded media #
DELETE /media/{id} Delete uploaded media #

Documentation

Specifications

Schemas & Data

Other Resources

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/leonardo-ai-media-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

leonardo-ai-media-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leonardo.AI 3D Model Assets Media API
  description: Upload, retrieve, and delete 3D model assets for use with Rodin and other 3D-capable workflows.
  version: v1.0.0
  contact:
    name: Leonardo.AI Support
    url: https://docs.leonardo.ai/docs/need-more-support
  license:
    name: Leonardo.AI Terms of Service
    url: https://leonardo.ai/terms-of-service/
servers:
- url: https://cloud.leonardo.ai/api/rest/v1
  description: Leonardo.AI Production API
security:
- bearerAuth: []
tags:
- name: Media
paths:
  /media:
    post:
      tags:
      - Media
      summary: Upload media
      description: This endpoint returns presigned details to upload a media file to S3
      operationId: uploadMedia
      requestBody:
        content:
          application/json:
            schema:
              properties:
                extension:
                  title: String
                  type: string
                  description: 'The file extension of the media file to upload. Supported extensions: mp4, mov.'
              required:
              - extension
              type: object
        description: Query parameters provided in the request body as a JSON object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploadMedia:
                    properties:
                      uploadId:
                        title: String
                        type:
                        - string
                        - 'null'
                      url:
                        title: String
                        type:
                        - string
                        - 'null'
                      fields:
                        title: String
                        type:
                        - string
                        - 'null'
                    title: MediaUploadOutput
                    type:
                    - object
                    - 'null'
          description: Responses for POST /media
  /media/{id}:
    get:
      tags:
      - Media
      summary: Get uploaded media
      description: This endpoint returns details of an uploaded media record
      operationId: getUploadedMediaById
      parameters:
      - required: true
        description: _"id" is required_
        in: path
        name: id
        schema:
          pattern: '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}'
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploaded_media_by_pk:
                    properties:
                      id:
                        title: uuid
                        type:
                        - string
                        - 'null'
                      createdAt:
                        title: timestamp
                        type:
                        - string
                        - 'null'
                      url:
                        title: String
                        type:
                        - string
                        - 'null'
                      thumbnailUrl:
                        title: String
                        type:
                        - string
                        - 'null'
                      status:
                        title: String
                        type:
                        - string
                        - 'null'
                      statusReason:
                        title: String
                        type:
                        - string
                        - 'null'
                      mediaType:
                        title: String
                        type:
                        - string
                        - 'null'
                      duration:
                        title: Float
                        type:
                        - number
                        - 'null'
                      width:
                        title: Int
                        type:
                        - integer
                        - 'null'
                      height:
                        title: Int
                        type:
                        - integer
                        - 'null'
                      video_fps:
                        title: Float
                        type:
                        - number
                        - 'null'
                    title: uploaded_media
                    type:
                    - object
                    - 'null'
          description: Responses for GET /media/{id}
    delete:
      tags:
      - Media
      summary: Delete uploaded media
      description: This endpoint deletes an uploaded media record and removes the associated file from S3
      operationId: deleteUploadedMediaById
      parameters:
      - required: true
        description: _"id" is required_
        in: path
        name: id
        schema:
          pattern: '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}'
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  delete_uploaded_media_by_pk:
                    properties:
                      id:
                        title: uuid
                        type:
                        - string
                        - 'null'
                    title: uploaded_media
                    type:
                    - object
                    - 'null'
          description: Responses for DELETE /media/{id}
components:
  securitySchemes:
    bearerAuth:
      type: http
      bearerFormat: auth-scheme
      description: 'Bearer HTTP authentication. Allowed headers `Authorization: Bearer <api_key>`'
      scheme: bearer