Leonardo.AI Init Images API

The Init Images API from Leonardo.AI — 3 operation(s) for init images.

Operations 4

POST /init-image Upload init image #
GET /init-image/{id} Get single init image #
DELETE /init-image/{id} Delete init image #
POST /canvas-init-image Upload Canvas Editor init and mask image #

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-init-images-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-init-images-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leonardo.AI 3D Model Assets Init Images 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: Init Images
paths:
  /init-image:
    post:
      tags:
      - Init Images
      summary: Upload init image
      description: This endpoint returns presigned details to upload an init image to S3
      operationId: uploadInitImage
      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:
                  uploadInitImage:
                    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: InitImageUploadOutput
                    type:
                    - object
                    - 'null'
          description: Responses for POST /init-image
  /init-image/{id}:
    get:
      tags:
      - Init Images
      summary: Get single init image
      description: This endpoint will return a single init image
      operationId: getInitImageById
      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:
                  init_images_by_pk:
                    description: columns and relationships of "init_images"
                    properties:
                      createdAt:
                        $ref: '#/components/schemas/timestamp'
                      id:
                        $ref: '#/components/schemas/uuid'
                      url:
                        title: String
                        type: string
                    title: init_images
                    type:
                    - object
                    - 'null'
          description: Responses for GET /init-image/{id}
    delete:
      tags:
      - Init Images
      summary: Delete init image
      description: This endpoint deletes an init image
      operationId: deleteInitImageById
      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_init_images_by_pk:
                    description: columns and relationships of "init_images"
                    properties:
                      id:
                        $ref: '#/components/schemas/uuid'
                    title: init_images
                    type:
                    - object
                    - 'null'
          description: Responses for DELETE /init-image/{id}
  /canvas-init-image:
    post:
      tags:
      - Init Images
      summary: Upload Canvas Editor init and mask image
      description: This endpoint returns presigned details to upload an init image and a mask image to S3
      operationId: uploadCanvasInitImage
      requestBody:
        content:
          application/json:
            schema:
              properties:
                initExtension:
                  title: String
                  type: string
                  description: Has to be png, jpg, jpeg, or webp.
                maskExtension:
                  title: String
                  type: string
                  description: Has to be png, jpg, jpeg, or webp.
              required:
              - initExtension
              - maskExtension
              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:
                  uploadCanvasInitImage:
                    properties:
                      initImageId:
                        title: String
                        type:
                        - string
                        - 'null'
                      initFields:
                        title: String
                        type:
                        - string
                        - 'null'
                      initKey:
                        title: String
                        type:
                        - string
                        - 'null'
                      initUrl:
                        title: String
                        type:
                        - string
                        - 'null'
                      maskImageId:
                        title: String
                        type:
                        - string
                        - 'null'
                      maskFields:
                        title: String
                        type:
                        - string
                        - 'null'
                      maskKey:
                        title: String
                        type:
                        - string
                        - 'null'
                      maskUrl:
                        title: String
                        type:
                        - string
                        - 'null'
                    title: CanvasInitImageUploadOutput
                    type:
                    - object
                    - 'null'
          description: Responses for POST /canvas-init-image
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