Upsampler Image upscale API

The Image upscale API from Upsampler — 10 operation(s) for image upscale.

GitHub OpenAPI

Operations 10

POST /api/v2/image/upscale/recommend Recommend how to upscale an image #
POST /api/v2/image/upscale/auto Upscale an image with the recommended model and settings #
POST /api/v2/image/upscale/flux Upscale an image with flux #
POST /api/v2/image/upscale/gan Upscale an image with gan #
POST /api/v2/image/upscale/seedvr2 Upscale an image with seedvr2 #
POST /api/v2/image/upscale/stable-diffusion Upscale an image with stable-diffusion #
POST /api/v2/image/upscale/seed-vr-2 Upscale an image with seed-vr-2 #
POST /api/v2/image/upscale/seed-vr-2-large Upscale an image with seed-vr-2-large #
POST /api/v2/image/upscale/p-image-upscale Upscale an image with p-image-upscale #
POST /api/v2/image/upscale/krea-2 Upscale an image with krea-2 #

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/upsampler-com:upsampler-com-image-upscale-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

upsampler-com-image-upscale-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Upsampler Image upscale API
  version: '2'
  description: 'Image and video upscaling, plus single-purpose image utilities. Jobs are asynchronous: submit, then poll /api/v2/status/{id} or receive a signed webhook.'
servers:
- url: https://upsampler.com
security:
- bearerAuth: []
tags:
- name: Image upscale
paths:
  /api/v2/image/upscale/recommend:
    post:
      summary: Recommend how to upscale an image
      description: Free. Measures how much real detail the image holds and names its content and damage, then returns two picks, faithful and detail, each with the model, the exact `input` to POST to its `endpoint`, the output size and the price in credits. The add-detail pick is left out where a redraw would ruin the image (pixel art).
      tags:
      - Image upscale
      operationId: recommendImageUpscale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  required:
                  - imageUrl
                  properties:
                    imageUrl:
                      type: string
                      description: 'The image: a public URL, a fileUrl from POST /uploads, or a small base64 data URI.'
      responses:
        '200':
          description: What the image is, and the picks.
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/auto:
    post:
      summary: Upscale an image with the recommended model and settings
      description: 'Runs the recommendation, then submits its pick exactly as a direct call to that model would: same price, validation, idempotency and refunds. `intent` chooses the pick ("faithful", the default, or "detail"); `outputFormat` and `shouldEnhanceFaces` pass through. The response is the model route''s response plus `auto`, describing what was chosen.'
      tags:
      - Image upscale
      operationId: upscaleImage_auto
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  required:
                  - imageUrl
                  properties:
                    imageUrl:
                      type: string
                      description: 'The image: a public URL, a fileUrl from POST /uploads, or a small base64 data URI.'
                    intent:
                      type: string
                      enum:
                      - faithful
                      - detail
                    outputFormat:
                      type: string
                      enum:
                      - png
                      - webp
                    shouldEnhanceFaces:
                      type: boolean
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/flux:
    post:
      summary: Upscale an image with flux
      tags:
      - Image upscale
      operationId: upscaleImage_flux
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit.
                    inputImageType:
                      type: string
                      enum:
                      - realism
                      - anime
                      - universal
                      description: 'Style that best matches the image. Allowed values: "realism", "anime", "universal".'
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 1-4. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    globalCreativity:
                      type: integer
                      description: The creativity value determines how much the AI can change the original image. Integer between 0-10.
                    regionalCreativityImageUrl:
                      type: string
                      description: URL of a black and white mask image that defines creativity levels per pixel, or the image encoded as a base64 data URI. White areas (255) receive maximum creativity, black areas (0) receive minimum creativity, with grayscale values interpolated. Must be a publicly accessible URL (http/https) or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. Must have the same aspect ratio as the main image (within 5% tolerance). Base64 images have a 3MB size limit.
                    detail:
                      type: integer
                      description: A higher value enhances detail, but can lead to unwanted artifacts or noise in the image. Integer between 0-10.
                    description:
                      type: string
                      description: Text prompt to guide the creative upscaling process.
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                  required:
                  - imageUrl
                  - inputImageType
                  - upscaleFactor
                  - globalCreativity
                  - detail
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/gan:
    post:
      summary: Upscale an image with gan
      tags:
      - Image upscale
      operationId: upscaleImage_gan
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit.
                    inputImageType:
                      type: string
                      enum:
                      - realism
                      - anime
                      - universal
                      description: 'Style that best matches the image. Allowed values: "realism", "anime", "universal".'
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 2-8. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, applies face restoration techniques.
                  required:
                  - imageUrl
                  - inputImageType
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/seedvr2:
    post:
      summary: Upscale an image with seedvr2
      tags:
      - Image upscale
      operationId: upscaleImage_seedvr2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit.
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 2-6. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, applies face restoration techniques.
                  required:
                  - imageUrl
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/stable-diffusion:
    post:
      summary: Upscale an image with stable-diffusion
      tags:
      - Image upscale
      operationId: upscaleImage_stable_diffusion
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https) or a base64 data URI (e.g., data:image/png;base64,...). Supported formats are png, jpeg, jpg, and webp. Base64 images have a 3MB size limit.
                    inputImageType:
                      type: string
                      enum:
                      - realism
                      - anime
                      - universal
                      description: 'Style that best matches the image. Allowed values: "universal", "realism", "anime".'
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 1-4. Output image must not exceed 50 megapixels (50,000,000 pixels).
                    globalCreativity:
                      type: integer
                      description: The creativity value determines how much the AI can change the original image. Integer, 0-10.
                    regionalCreativityImageUrl:
                      type: string
                      description: URL of a black and white mask image that defines creativity levels per pixel, or the image encoded as a base64 data URI. White areas (255) receive maximum creativity, black areas (0) receive minimum creativity, with grayscale values interpolated. Must be a publicly accessible URL (http/https) or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. Must have the same aspect ratio as the main image (within 5% tolerance). Base64 images have a 3MB size limit.
                    resemblance:
                      type: integer
                      description: Resemblance to the original image structure. Higher values adhere more closely. Integer, 0-10.
                    detail:
                      type: integer
                      description: Level of detail enhancement. Integer, 0-10.
                    description:
                      type: string
                      description: Text prompt to guide the creative upscaling process.
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                  required:
                  - imageUrl
                  - inputImageType
                  - upscaleFactor
                  - globalCreativity
                  - resemblance
                  - detail
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/seed-vr-2:
    post:
      summary: Upscale an image with seed-vr-2
      tags:
      - Image upscale
      operationId: upscaleImage_seed_vr_2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 2-6. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                    outputFormat:
                      type: string
                      enum:
                      - webp
                      - png
                      description: 'Format of the delivered image. Allowed values: "png", "webp". Defaults to "png".'
                  required:
                  - imageUrl
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/seed-vr-2-large:
    post:
      summary: Upscale an image with seed-vr-2-large
      tags:
      - Image upscale
      operationId: upscaleImage_seed_vr_2_large
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 2-6. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                    outputFormat:
                      type: string
                      enum:
                      - webp
                      - png
                      description: 'Format of the delivered image. Allowed values: "png", "webp". Defaults to "png".'
                  required:
                  - imageUrl
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/p-image-upscale:
    post:
      summary: Upscale an image with p-image-upscale
      tags:
      - Image upscale
      operationId: upscaleImage_p_image_upscale
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 2-6. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                    outputFormat:
                      type: string
                      enum:
                      - webp
                      - png
                      description: 'Format of the delivered image. Allowed values: "png", "webp". Defaults to "png".'
                  required:
                  - imageUrl
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
  /api/v2/image/upscale/krea-2:
    post:
      summary: Upscale an image with krea-2
      tags:
      - Image upscale
      operationId: upscaleImage_krea_2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - input
              properties:
                input:
                  type: object
                  properties:
                    imageUrl:
                      type: string
                      description: URL of the image to upscale, or the image encoded as a base64 data URI. Must be a publicly accessible URL (http/https), a URL from POST /uploads, or a base64 data URI. Supported formats are png, jpeg, jpg, and webp. A base64 image must be under 2.25 MB, since it travels inside the capped request body; upload anything larger. Keep the file at a URL of your own unchanged until the job completes; a file that changes after submission fails the job with a refund.
                    upscaleFactor:
                      type: number
                      description: Factor by which to upscale. Number, 1-4. Output image must not exceed 100 megapixels (100,000,000 pixels).
                    shouldEnhanceFaces:
                      type: boolean
                      description: If true, attempts to better preserve and enhance facial features.
                    outputFormat:
                      type: string
                      enum:
                      - webp
                      - png
                      description: 'Format of the delivered image. Allowed values: "png", "webp". Defaults to "png".'
                    inputImageType:
                      type: string
                      enum:
                      - universal
                      - realism
                      - anime
                      description: 'Style that best matches the image. Allowed values: "universal", "realism", "anime".'
                    description:
                      type: string
                      description: Text prompt to guide the creative upscaling process.
                    globalCreativity:
                      type: integer
                      description: How much the model may change the original image. Integer between 0-10.
                    detail:
                      type: integer
                      description: A higher value enhances detail, but can introduce artifacts or noise. Integer between 0-10.
                    regionalCreativityImageUrl:
                      type: string
                      description: URL of a black and white mask defining creativity per pixel, or a base64 data URI. White areas receive maximum creativity, black minimum. Must be a publicly accessible URL or a base64 data URI, with the same aspect ratio as the main image (within 5% tolerance).
                  required:
                  - imageUrl
                  - upscaleFactor
                webhook:
                  type: string
                  description: URL to POST the result to. Deliveries carry an Upsampler-Signature header.
      responses:
        '200':
          description: Job accepted and queued.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  creditCost:
                    type: integer
        4XX:
          description: Request refused.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                    - FAILED
                  error: {}
                  code:
                    type: string
                    description: Stable machine-readable failure identifier.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Your API key, as `Authorization: Bearer <key>`.'