Leonardo.AI Dataset API

The Dataset API from Leonardo.AI — 4 operation(s) for dataset.

Operations 5

POST /datasets Create a Dataset #
GET /datasets/{id} Get a Single Dataset by ID #
DELETE /datasets/{id} Delete a Single Dataset by ID #
POST /datasets/{datasetId}/upload Upload dataset image #
POST /datasets/{datasetId}/upload/gen Upload a Single Generated Image to a Dataset #

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-dataset-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-dataset-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leonardo.AI 3D Model Assets Dataset 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: Dataset
paths:
  /datasets:
    post:
      tags:
      - Dataset
      summary: Create a Dataset
      description: This endpoint creates a new dataset
      operationId: createDataset
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  title: String
                  type: string
                  description: The name of the dataset.
                description:
                  title: String
                  type:
                  - string
                  - 'null'
                  description: A description for the dataset.
              required:
              - name
              type: object
        description: Query parameters to be provided in the request body as a JSON object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  insert_datasets_one:
                    description: columns and relationships of "datasets"
                    properties:
                      id:
                        $ref: '#/components/schemas/uuid'
                    title: datasets
                    type:
                    - object
                    - 'null'
          description: Responses for POST /datasets
  /datasets/{id}:
    get:
      tags:
      - Dataset
      summary: Get a Single Dataset by ID
      description: This endpoint gets the specific dataset
      operationId: getDatasetById
      parameters:
      - required: true
        description: The ID of the dataset to return.
        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:
                  datasets_by_pk:
                    description: columns and relationships of "datasets"
                    properties:
                      createdAt:
                        $ref: '#/components/schemas/timestamp'
                      dataset_images:
                        items:
                          description: columns and relationships of "dataset_images"
                          properties:
                            createdAt:
                              $ref: '#/components/schemas/timestamp'
                            id:
                              $ref: '#/components/schemas/uuid'
                            url:
                              title: String
                              type: string
                          title: dataset_images
                          type: object
                        type: array
                      description:
                        title: String
                        type:
                        - string
                        - 'null'
                      id:
                        $ref: '#/components/schemas/uuid'
                      name:
                        title: String
                        type: string
                      updatedAt:
                        $ref: '#/components/schemas/timestamp'
                    title: datasets
                    type:
                    - object
                    - 'null'
          description: Responses for GET /datasets/{id}
    delete:
      tags:
      - Dataset
      summary: Delete a Single Dataset by ID
      description: This endpoint deletes the specific dataset
      operationId: deleteDatasetById
      parameters:
      - required: true
        description: The ID of the dataset to delete.
        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_datasets_by_pk:
                    description: columns and relationships of "datasets"
                    properties:
                      id:
                        $ref: '#/components/schemas/uuid'
                    title: datasets
                    type:
                    - object
                    - 'null'
          description: Responses for DELETE /datasets/{id}
  /datasets/{datasetId}/upload:
    post:
      tags:
      - Dataset
      summary: Upload dataset image
      description: This endpoint returns presigned details to upload a dataset image to S3
      operationId: uploadDatasetImage
      parameters:
      - required: true
        description: _"datasetId" is required
        in: path
        name: datasetId
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                extension:
                  title: String
                  type: string
                  description: Has to be png, jpg, jpeg, or webp.
              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:
                  uploadDatasetImage:
                    properties:
                      fields:
                        title: String
                        type:
                        - string
                        - 'null'
                      id:
                        title: String
                        type:
                        - string
                        - 'null'
                      key:
                        title: String
                        type:
                        - string
                        - 'null'
                      url:
                        title: String
                        type:
                        - string
                        - 'null'
                    title: DatasetUploadOutput
                    type:
                    - object
                    - 'null'
          description: Responses for POST /datasets/{datasetId}/upload
  /datasets/{datasetId}/upload/gen:
    post:
      tags:
      - Dataset
      summary: Upload a Single Generated Image to a Dataset
      description: This endpoint will upload a previously generated image to the dataset
      operationId: uploadDatasetImageFromGen
      parameters:
      - required: true
        description: The ID of the dataset to upload the image to.
        in: path
        name: datasetId
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              properties:
                generatedImageId:
                  title: String
                  type: string
                  description: The ID of the image to upload to the dataset.
              required:
              - generatedImageId
              type: object
        description: Query parameters to be provided in the request body as a JSON object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  uploadDatasetImageFromGen:
                    properties:
                      id:
                        title: String
                        type:
                        - string
                        - 'null'
                    title: DatasetGenUploadOutput
                    type:
                    - object
                    - 'null'
          description: Responses for POST /datasets/{datasetId}/upload/gen
components:
  schemas:
    uuid:
      pattern: '[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}'
      title: uuid
      type:
      - string
      - 'null'
    timestamp:
      type: string
      title: timestamp
  securitySchemes:
    bearerAuth:
      type: http
      bearerFormat: auth-scheme
      description: 'Bearer HTTP authentication. Allowed headers `Authorization: Bearer <api_key>`'
      scheme: bearer