NativeAds AI Upscale API

The Upscale API from NativeAds AI — 3 operation(s) for upscale.

GitHub OpenAPI

Operations 5

POST /brands/{brandId}/upscale-groups Create an upscale group #
GET /brands/{brandId}/upscale-groups List upscale groups for a brand #
GET /upscale-groups/{groupId} Get an upscale group #
DELETE /upscale-groups/{groupId} Delete an upscale group #
DELETE /upscale-groups/outputs/{outputId} Delete an upscale output #

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/nativeads-ai:nativeads-ai-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

nativeads-ai-upscale-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NativeAds Headless Upscale API
  version: 1.0.0
  description: 'The headless REST API for programmatic creative generation. Authenticate with a per-user API key (`Authorization: Bearer nak_...`). This reference lists only the endpoints an API key may call; generation endpoints are asynchronous (submit returns an id, then poll).'
  license:
    name: Commercial
    url: https://www.nativeads.ai/
servers:
- url: https://creative-v1.nativeads.ai/v1
  description: NativeAds API Server
security:
- BearerAuth: []
tags:
- name: Upscale
paths:
  /brands/{brandId}/upscale-groups:
    parameters:
    - name: brandId
      in: path
      required: true
      description: The unique identifier of the brand.
      schema:
        type: string
        format: uuid
    post:
      tags:
      - Upscale
      summary: Create an upscale group
      operationId: createUpscaleGroup
      security:
      - BearerAuth: []
      description: 'Needs Upscale, which every plan includes; without it the request is refused with 403 and

        nothing is charged.


        Upscales one image asset to 1-4 targets. Each target produces exactly one output, which

        is generated asynchronously. The response is the new group with every output `pending`.

        Poll `GET /upscale-groups/{groupId}` until the group `status` is `completed` or `failed`.

        A group is `completed` when at least one output completed, and `failed` when every output

        failed.


        **Targets.** A target is `{"mode": "factor", "value": 2 | 3 | 4}` or

        `{"mode": "long_edge", "value": }`. The effective factor `f` is `value` in factor

        mode and `value / source long edge` in long-edge mode, so it can be fractional (1.5).

        Each output is `round(source width × f) × round(source height × f)`, which keeps the

        aspect ratio to within 1 px of rounding. A target is accepted only when:

        - `1 < f ≤ 4`

        - the output long edge is at most 8192 px, or 16384 px with print size (below)

        - the source long edge is at least 256 px and at most 8192 px (a larger image, such as a

        print-size output, is not upscaled again)


        Two targets that produce the same output size in one request are rejected.


        **Print size.** An output long edge above 8192 px (up to 16384) needs print size, which

        every plan includes. Without it the request is refused with 403 and nothing is charged. `gated_features.upscale_print_size` on

        `GET /organizations/current/feature-usage` says whether you have it.


        **Source.** `source_asset_id` must be an image asset (a PNG, JPEG or WebP upload, or an

        image generated on the platform) that your organization owns. Output sizes are computed

        from the width and height recorded on the asset. A source that is still being processed

        is rejected with 422; retry shortly. A source with no recorded dimensions is rejected

        with 400; re-upload the image.


        **Usage.** Each output counts against the organization''s `images` pool by output size:

        1 up to 24 MP, 2 up to 48 MP, 4 up to 96 MP and 11 up to 268.4 MP (16384 × 16384, print

        size). The whole request is charged when the group is created. A failed output is given back.

        `GET /organizations/current/feature-usage` reports what is left.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateUpscaleGroupRequest'
            example:
              source_asset_id: 550e8400-e29b-41d4-a716-446655440000
              targets:
              - mode: factor
                value: 2
              - mode: long_edge
                value: 4096
      responses:
        '201':
          description: Group created. Every output starts `pending`; poll `GET /upscale-groups/{groupId}`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpscaleGroup'
        '400':
          description: 'Bad request, told apart by error.code. "400" means invalid input: a target outside

            the rules above, duplicate output sizes, a source that is not an image, a source

            whose long edge is under 256 px, a source with no recorded dimensions (re-upload the

            image), or 0 or more than 4 targets. The message states the valid range for this

            source. "USAGE_LIMIT_EXCEEDED" means the `images` pool cannot cover the request; the

            body is a UsageLimitExceededError with error.details.feature `images`, limit, used and

            resetsAt. Nothing is charged either way.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden, a plan without Upscale, or a print-size target (output long edge above 8192 px) without print size. Nothing is charged.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Brand or source asset not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The source image is not ready yet (still being processed). Nothing is charged; retry shortly.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Organization rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    get:
      tags:
      - Upscale
      summary: List upscale groups for a brand
      description: Returns a page of the brand's upscale groups with their outputs, newest first.
      operationId: listUpscaleGroups
      security:
      - BearerAuth: []
      parameters:
      - name: partner
        in: query
        required: false
        description: Partner list filter. Omit for the default bucket only; "all" returns every partner; otherwise a single partner slug.
        schema:
          $ref: '#/components/schemas/PartnerFilter'
      - name: offset
        in: query
        required: false
        description: Number of items to skip.
        schema:
          type: integer
          minimum: 0
          default: 0
      - name: limit
        in: query
        required: false
        description: Maximum number of items to return.
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      responses:
        '200':
          description: A page of upscale groups.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpscaleGroupList'
        '400':
          description: Invalid brand id, or an unknown partner slug. An unknown brand is not an error; it lists no groups.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Organization rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /upscale-groups/{groupId}:
    parameters:
    - name: groupId
      in: path
      required: true
      description: The unique identifier of the upscale group.
      schema:
        type: string
        format: uuid
    get:
      tags:
      - Upscale
      summary: Get an upscale group
      description: 'Returns one upscale group with all of its outputs. Use it to poll a group created with

        `POST /brands/{brandId}/upscale-groups`: stop when `status` is `completed` or `failed`.

        A completed output carries its `asset`; a failed one carries `error_code` and

        `error_message`.'
      operationId: getUpscaleGroup
      security:
      - BearerAuth: []
      responses:
        '200':
          description: The upscale group.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpscaleGroup'
        '400':
          description: groupId is not a valid UUID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Group not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Organization rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
    delete:
      tags:
      - Upscale
      summary: Delete an upscale group
      description: 'Soft-deletes the group and its outputs; they no longer appear in any response.

        Processing outputs are not cancelled.'
      operationId: deleteUpscaleGroup
      security:
      - BearerAuth: []
      responses:
        '204':
          description: Group deleted. No response body.
        '400':
          description: groupId is not a valid UUID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Group not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Organization rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /upscale-groups/outputs/{outputId}:
    parameters:
    - name: outputId
      in: path
      required: true
      description: The unique identifier of the upscale output.
      schema:
        type: string
        format: uuid
    delete:
      tags:
      - Upscale
      summary: Delete an upscale output
      description: 'Removes one output from its group. The group and its other outputs are kept. Deleting an

        output that is still processing does not stop it and does not give its usage back.'
      operationId: deleteUpscaleOutput
      security:
      - BearerAuth: []
      responses:
        '204':
          description: Output deleted. No response body.
        '400':
          description: outputId is not a valid UUID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Output not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Organization rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    UpscaleTarget:
      type: object
      required:
      - mode
      - value
      description: 'One upscale target. `factor` mode multiplies both sides by `value` (2, 3 or 4).

        `long_edge` mode scales so the longer side becomes `value` pixels. The aspect ratio is

        always kept. The rules that combine `value` with the source size (`1 < f ≤ 4`, output

        long edge at most 8192, or 16384 with print size, source long edge from 256 to 8192)

        cannot be expressed in OpenAPI. The server enforces them and answers 400, or 403 for a print-size

        output without the print-size plan.

        '
      properties:
        mode:
          type: string
          enum:
          - factor
          - long_edge
          description: How `value` is read.
          example: factor
        value:
          type: integer
          minimum: 2
          maximum: 16384
          description: The factor (2, 3 or 4) in `factor` mode, or the output long edge in pixels in `long_edge` mode.
          example: 2
    UpscaleAsset:
      type: object
      required:
      - id
      - url
      - thumbnailUrl
      description: 'An image with the three URLs a client needs. Show `thumbnailUrl` in tiles and

        `displayUrl` at screen size. Use `url` only to download: an upscaled file can be over

        100 MB.

        '
      properties:
        id:
          type: string
          format: uuid
          description: Asset ID. Pass it to `GET /assets/{assetId}` or reuse it as a source.
          example: 123e4567-e89b-12d3-a456-426614174000
        url:
          type: string
          format: url
          description: The full-size original file.
        thumbnailUrl:
          type: string
          format: url
          description: A small rendition (512 px long edge) for tiles and pickers.
        displayUrl:
          type:
          - string
          - 'null'
          format: url
          description: A screen-size rendition (2048 px long edge at most) for a full-screen viewer. Never the original file of a large image.
        width:
          type:
          - integer
          - 'null'
          description: Width in pixels.
          example: 4096
        height:
          type:
          - integer
          - 'null'
          description: Height in pixels.
          example: 4096
        fileSize:
          type:
          - integer
          - 'null'
          format: int64
          description: File size in bytes.
          example: 31457280
    Partner:
      type: string
      description: Partner (retail-media network) slug. `default` means no partner.
      enum:
      - default
      - walmart
      - chewy
      - instacart
      x-enum-varnames:
      - PARTNER_DEFAULT
      - PARTNER_WALMART
      - PARTNER_CHEWY
      - PARTNER_INSTACART
      example: default
    ErrorError:
      type: object
      required:
      - code
      - message
      properties:
        code:
          type: string
          example: INVALID_REQUEST
        message:
          type: string
          example: Invalid input data provided
        details:
          description: "Additional error context (optional, can be object or array). Absent on\nmost errors; the message is the only guaranteed human-readable field.\n\nUpload rejections populate it, because a client needs to act on the\nanswer rather than parse it. `POST /v1/assets/initiate-upload` and\n`POST /v1/assets/confirm-upload` return:\n\n- `reason` — `unsupported_declared_type` when the declared MIME type is\n  not accepted, or `unsupported_file_contents` when the uploaded bytes\n  are a different format than declared (an AVIF saved with a `.jpg`\n  name, say). Only confirm-upload can report the second: it is the\n  first point that reads the real bytes.\n- `declaredType` — the MIME type the client sent.\n- `detectedFormat` — the format the bytes actually are, on\n  `unsupported_file_contents` only.\n- `supportedFormats` — every format an upload may be.\n- `retryable` — `false` on both, meaning the same bytes will be\n  rejected again. Clients must not retry these.\n"
          example:
            reason: unsupported_file_contents
            declaredType: image/jpeg
            detectedFormat: AVIF
            retryable: false
            supportedFormats:
            - DOC
            - DOCX
            - GIF
            - JPEG
            - MP4
            - PDF
            - PNG
            - QuickTime
            - TIFF
    UpscaleGroup:
      type: object
      required:
      - id
      - brand_id
      - source_asset_id
      - status
      - outputs
      - total_credits
      - created_at
      - updated_at
      description: An upscale group, its source image and one output per requested target.
      properties:
        id:
          type: string
          format: uuid
          description: Group ID. Poll `GET /upscale-groups/{groupId}` with it.
          example: 333e4567-e89b-12d3-a456-426614174002
        brand_id:
          type: string
          format: uuid
          example: 444e4567-e89b-12d3-a456-426614174003
        source_asset_id:
          type: string
          format: uuid
          example: 550e8400-e29b-41d4-a716-446655440000
        source_asset:
          allOf:
          - $ref: '#/components/schemas/UpscaleAsset'
          description: The source image. Null if the asset is no longer available.
        status:
          type: string
          enum:
          - pending
          - processing
          - completed
          - failed
          description: '`completed` when at least one output completed, `failed` when every output failed.

            Check each output''s own status.

            '
          example: processing
        outputs:
          type: array
          description: One output per target, in request order.
          items:
            $ref: '#/components/schemas/UpscaleOutput'
        total_credits:
          type: integer
          readOnly: true
          description: The sum of `credits` over the outputs.
          example: 5
        error_code:
          type:
          - string
          - 'null'
          description: Failure code when the whole group failed.
          example: null
        error_message:
          type:
          - string
          - 'null'
          description: User-facing failure message when the whole group failed.
          example: null
        created_at:
          type: string
          format: date-time
          example: '2026-10-16T00:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-16T00:00:30Z'
        completed_at:
          type:
          - string
          - 'null'
          format: date-time
          example: null
        failed_at:
          type:
          - string
          - 'null'
          format: date-time
          example: null
    Error:
      description: Standard error response
      type: object
      required:
      - error
      - requestId
      properties:
        error:
          $ref: '#/components/schemas/ErrorError'
        requestId:
          type: string
          format: uuid
          description: Unique identifier for the request, useful for tracing.
    CreateUpscaleGroupRequest:
      type: object
      required:
      - source_asset_id
      - targets
      description: Create an upscale group. One output is produced per target.
      properties:
        source_asset_id:
          type: string
          format: uuid
          description: The image asset to upscale. It must belong to your organization.
          example: 550e8400-e29b-41d4-a716-446655440000
        targets:
          type: array
          minItems: 1
          maxItems: 4
          description: 1-4 targets. Each produces exactly one output. Two targets with the same output size are rejected.
          items:
            $ref: '#/components/schemas/UpscaleTarget'
        partner:
          $ref: '#/components/schemas/Partner'
    UpscaleOutput:
      type: object
      required:
      - id
      - target
      - output_width
      - output_height
      - status
      - credits
      - created_at
      - updated_at
      description: One output of an upscale group, produced from one target.
      properties:
        id:
          type: string
          format: uuid
          description: Output ID. `DELETE /upscale-groups/outputs/{outputId}` takes it.
          example: 223e4567-e89b-12d3-a456-426614174001
        target:
          $ref: '#/components/schemas/UpscaleTarget'
        output_width:
          type: integer
          description: Output width in pixels, fixed when the group is created.
          example: 8192
        output_height:
          type: integer
          description: Output height in pixels, fixed when the group is created.
          example: 8192
        status:
          type: string
          enum:
          - pending
          - processing
          - completed
          - failed
          description: Status of this output.
          example: pending
        asset:
          allOf:
          - $ref: '#/components/schemas/UpscaleAsset'
          description: The upscaled PNG. Null until the output completes.
        engine:
          type:
          - string
          - 'null'
          description: The upscale engine that produced the output. Null until it completes.
          example: topaz_precision_v2
        credits:
          type: integer
          readOnly: true
          description: What this output counts against the `images` pool (1, 2 or 4, by output size). A failed output is given back.
          example: 4
        error_code:
          type:
          - string
          - 'null'
          description: Failure class when `status` is `failed`, one of `UserRequestError` (the request or image cannot be upscaled; do not retry as is), `ModelProviderError` (the upscaling service failed; retry) or `NativeAdsSystemError`.
          example: null
        error_message:
          type:
          - string
          - 'null'
          description: User-facing failure message when `status` is `failed`.
          example: null
        created_at:
          type: string
          format: date-time
          example: '2026-10-16T00:00:00Z'
        updated_at:
          type: string
          format: date-time
          example: '2026-10-16T00:00:30Z'
    UpscaleGroupList:
      type: object
      required:
      - items
      - total
      - offset
      - limit
      description: A page of upscale groups.
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/UpscaleGroup'
        total:
          type: integer
          description: Total number of groups matching the query.
          example: 42
        offset:
          type: integer
          example: 0
        limit:
          type: integer
          example: 20
    PartnerFilter:
      type: string
      description: Partner list filter. Omit for the `default` bucket only; `all` returns every partner; otherwise a single partner slug.
      enum:
      - all
      - default
      - walmart
      - chewy
      - instacart
      x-enum-varnames:
      - PARTNER_FILTER_ALL
      - PARTNER_FILTER_DEFAULT
      - PARTNER_FILTER_WALMART
      - PARTNER_FILTER_CHEWY
      - PARTNER_FILTER_INSTACART
      example: all
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token for authentication.