Leonardo.AI Variation API

The Variation API from Leonardo.AI — 6 operation(s) for variation.

Operations 6

POST /variations/unzoom Create unzoom #
POST /variations/upscale Create upscale #
POST /variations/nobg Create no background #
POST /variations/universal-upscaler Create using Universal Upscaler #
GET /variations/{id} Get variation by ID #
GET /motion-variations/{id} Get motion variation by ID #

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-variation-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-variation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Leonardo.AI 3D Model Assets Variation 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: Variation
paths:
  /variations/unzoom:
    post:
      tags:
      - Variation
      summary: Create unzoom
      description: This endpoint will create an unzoom variation for the provided image ID
      operationId: createVariationUnzoom
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  title: String
                  type: string
                isVariation:
                  title: Boolean
                  type:
                  - boolean
                  - 'null'
              type: object
        description: Query parameters can also be provided in the request body as a JSON object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  sdUnzoomJob:
                    properties:
                      id:
                        title: String
                        type: string
                      apiCreditCost:
                        type:
                        - integer
                        - 'null'
                        description: 'API Credits Cost for Unzoom Variation. Available for Production API Users. Note: it will be deprecated. Please use the cost instead.'
                        deprecated: true
                      cost:
                        $ref: '#/components/schemas/cost'
                    title: SDUnzoomOutput
                    type:
                    - object
                    - 'null'
              example:
                sdUnzoomJob:
                  id: c2d3e4f5-g6h7-8901-ijkl-mn2345678901
                  apiCreditCost: null
                  cost:
                    amount: '0.0147'
                    unit: DOLLARS
          description: Responses for POST /api/rest/v1/variations/unzoom
  /variations/upscale:
    post:
      tags:
      - Variation
      summary: Create upscale
      description: This endpoint will create an upscale for the provided image ID
      operationId: createVariationUpscale
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  title: String
                  type: string
              required:
              - id
              type: object
        description: Query parameters are provided in the request body as a JSON object
        required: false
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  sdUpscaleJob:
                    properties:
                      id:
                        title: String
                        type: string
                      apiCreditCost:
                        type:
                        - integer
                        - 'null'
                        description: 'API Credits Cost for Upscale Variation. Available for Production API Users. Note: it will be deprecated. Please use the cost instead.'
                        deprecated: true
                      cost:
                        $ref: '#/components/schemas/cost'
                    title: SDUpscaleJobOutput
                    type:
                    - object
                    - 'null'
              example:
                sdUpscalerjob:
                  id: d3e4f5g6-h7i8-9012-jklm-no3456789012
                  apiCreditCost: null
                  cost:
                    amount: '0.0147'
                    unit: DOLLARS
          description: Responses for POST /variations/upscale
  /variations/nobg:
    post:
      tags:
      - Variation
      summary: Create no background
      description: This endpoint will create a no background variation of the provided image ID
      operationId: createVariationNoBG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                id:
                  title: String
                  type: string
                isVariation:
                  type: boolean
                  title: Boolean
              required:
              - id
              type: object
        description: Query parameters are provided in the request body as a JSON object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  sdNobgJob:
                    properties:
                      id:
                        $ref: '#/components/schemas/uuid'
                      apiCreditCost:
                        type:
                        - integer
                        - 'null'
                        description: 'API Credits Cost for No Background Variation. Available for Production API Users. Note: it will be deprecated. Please use the cost instead.'
                        deprecated: true
                      cost:
                        $ref: '#/components/schemas/cost'
                    title: SDUpscaleJobOutput
                    type: object
              example:
                sdNobgJob:
                  id: f5g6h7i8-j9k0-l1m2-nopq-rs4567890123
                  apiCreditCost: null
                  cost:
                    amount: '0.0147'
                    unit: DOLLARS
          description: Responses for POST /variations/nobg
  /variations/universal-upscaler:
    post:
      tags:
      - Variation
      summary: Create using Universal Upscaler
      description: This endpoint will create a high resolution image using Universal Upscaler
      operationId: CreateUniversalUpscalerJob
      requestBody:
        content:
          application/json:
            schema:
              properties:
                creativityStrength:
                  title: Int
                  type:
                  - integer
                  - 'null'
                  default: 5
                  description: The creativity strength of the universal upscaler. Must be between 1 and 10.
                detailContrast:
                  title: Int
                  type:
                  - integer
                  - 'null'
                  description: The detail contrast of the universal upscaler. Must be between 1 and 10. Can only be used with ultraUpscaleStyle.
                generatedImageId:
                  title: String
                  type:
                  - string
                  - 'null'
                  description: The ID of the generated image.
                initImageId:
                  title: String
                  type:
                  - string
                  - 'null'
                  description: The ID of the init image uploaded.
                prompt:
                  title: String
                  type:
                  - string
                  - 'null'
                  description: The prompt for the universal upscaler.
                similarity:
                  title: Int
                  type:
                  - integer
                  - 'null'
                  description: The similarity of the universal upscaler. Must be between 1 and 10. Can only be used with ultraUpscaleStyle.
                ultraUpscaleStyle:
                  $ref: '#/components/schemas/universal_upscaler_ultra_style'
                upscaleMultiplier:
                  title: Float
                  type:
                  - number
                  - 'null'
                  default: 1.5
                  description: The upscale multiplier of the universal upscaler. Must be between 1.0 and 2.0.
                upscalerStyle:
                  $ref: '#/components/schemas/universal_upscaler_style'
                variationId:
                  title: String
                  type:
                  - string
                  - 'null'
                  description: The ID of the variation image.
              type: object
        description: Query parameters are provided in the request body as a JSON object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  universalUpscaler:
                    properties:
                      id:
                        $ref: '#/components/schemas/uuid'
                      apiCreditCost:
                        type:
                        - integer
                        - 'null'
                        description: 'API Credits Cost for Universal Upscaler Variation. Available for Production API Users. Note: it will be deprecated. Please use the cost instead.'
                        deprecated: true
                      cost:
                        $ref: '#/components/schemas/cost'
                    title: UniversalUpscalerOutput
                    type: object
              example:
                universalUpscaler:
                  id: g6h7i8j9-k0l1-m2n3-opqr-st5678901234
                  apiCreditCost: null
                  cost:
                    amount: '0.0147'
                    unit: DOLLARS
          description: Responses for POST /variations/universal-upscaler
  /variations/{id}:
    get:
      tags:
      - Variation
      summary: Get variation by ID
      description: This endpoint will get the variation by ID
      operationId: getVariationById
      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:
                  generated_image_variation_generic:
                    items:
                      description: columns and relationships of "generated_image_variation_generic"
                      properties:
                        createdAt:
                          $ref: '#/components/schemas/timestamp'
                        id:
                          $ref: '#/components/schemas/uuid'
                        status:
                          $ref: '#/components/schemas/job_status'
                        transformType:
                          $ref: '#/components/schemas/VARIATION_TYPE'
                        url:
                          title: String
                          type:
                          - string
                          - 'null'
                      title: generated_image_variation_generic
                      type: object
                    type: array
          description: Responses for GET /variations/{id}
  /motion-variations/{id}:
    get:
      tags:
      - Variation
      summary: Get motion variation by ID
      description: This endpoint will get the motion variation by ID
      operationId: getMotionVariationById
      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:
                  generated_image_variation_motion:
                    items:
                      description: columns and relationships of "generated_image_variation_motion"
                      properties:
                        createdAt:
                          $ref: '#/components/schemas/timestamp'
                        id:
                          $ref: '#/components/schemas/uuid'
                        status:
                          $ref: '#/components/schemas/job_status'
                        motionTransformType:
                          $ref: '#/components/schemas/MOTION_VARIATION_TYPE'
                        resolution:
                          $ref: '#/components/schemas/MOTION_RESOLUTION'
                        url:
                          title: String
                          type:
                          - string
                          - 'null'
                      title: generated_image_variation_motion
                      type: object
                    type: array
          description: Responses for GET /motion-variations/{id}
components:
  schemas:
    VARIATION_TYPE:
      type: string
      title: VARIATION_TYPE
      enum:
      - OUTPAINT
      - INPAINT
      - UPSCALE
      - UNZOOM
      - NOBG
      description: The type of variation.
    timestamp:
      type: string
      title: timestamp
    universal_upscaler_style:
      type:
      - string
      - 'null'
      default: GENERAL
      title: universal_upscaler_style
      enum:
      - GENERAL
      - CINEMATIC
      - 2D ART & ILLUSTRATION
      - CG ART & GAME ASSETS
      description: The style to upscale images using universal upscaler with. Can not be used with ultraUpscaleStyle.
    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'
    cost:
      type:
      - object
      - 'null'
      title: Cost
      description: The cost of the operation.
      properties:
        amount:
          type: string
          description: The amount of the cost.
        unit:
          type: string
          enum:
          - CREDITS
          - DOLLARS
          description: 'The unit of the cost. Can be CREDITS or DOLLARS. Note: DOLLARS unit only supports PAYG plan.'
    job_status:
      type: string
      title: job_status
      enum:
      - PENDING
      - COMPLETE
      - FAILED
      description: The status of the current task.
    universal_upscaler_ultra_style:
      type:
      - string
      - 'null'
      title: universal_upscaler_ultra_style
      enum:
      - ARTISTIC
      - REALISTIC
      description: The ultra style to upscale images using universal upscaler with. Can not be used with upscalerStyle.
    MOTION_RESOLUTION:
      type: string
      title: MOTION_RESOLUTION
      enum:
      - RESOLUTION_720
      description: The resolution of the upscaled video. RESOLUTION_720 is the only option for now.
    MOTION_VARIATION_TYPE:
      type: string
      title: MOTION_VARIATION_TYPE
      enum:
      - UPSCALE
      description: The type of motion variation.
  securitySchemes:
    bearerAuth:
      type: http
      bearerFormat: auth-scheme
      description: 'Bearer HTTP authentication. Allowed headers `Authorization: Bearer <api_key>`'
      scheme: bearer