> ## Documentation Index
> Fetch the complete documentation index at: https://tryunsora.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upscale image

> Upscale an image to 2k, 4k or 8k. Costs 2, 3 or 5 credits.

Upscales one image. Costs 2 credits for `2k`, 3 for `4k` and 5 for `8k`. Poll [Poll image status](https://tryunsora.com/docs/api-reference/image/poll-status.md) with `job.id`.

```bash theme={null}
curl -X POST "https://mvp.tryunsora.com/api/v1/image-upscaler/create" \
  -H "Authorization: Bearer uns_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "imageUrl": "https://cdn.example.com/photo.jpg", "resolution": "4k" }'
```


## OpenAPI

````yaml POST /image-upscaler/create
openapi: 3.1.0
info:
  title: Unsora API
  version: 1.4.0
  description: >-
    Public API for Unsora integrations. Authenticate with an Unsora API key
    (`uns_…`, created under Developers → API keys in the app) as a Bearer token
    in the Authorization header. Limit: 60 requests per minute per key; over it,
    429 with code RATE_LIMIT_EXCEEDED.
servers:
  - url: https://mvp.tryunsora.com/api/v1
    description: Production
  - url: /api/v1
    description: This server
security: []
tags:
  - name: User
  - name: Models
    description: >-
      Every video, image and motion-control model, with each model's inputs
      taken from the provider's own request schema and prices quoted live. One
      generate endpoint covers all of them.
  - name: Video
  - name: Image
  - name: Influencer
  - name: Thumbnail
  - name: Clipping
  - name: Music
  - name: Voiceover
  - name: Upscaler
  - name: Subtitle removal
  - name: Motion control
  - name: Avatar
  - name: Movie materials
  - name: Voice clones
  - name: Voice changer
  - name: Uploads
  - name: Scheduler
paths:
  /image-upscaler/create:
    post:
      tags:
        - Upscaler
      summary: Upscale an image
      description: >-
        Upscales one image. Credits: 2 for 2k, 3 for 4k, 5 for 8k. Poll GET
        /image/status/{id} with `job.id`.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                imageUrl:
                  type: string
                  format: uri
                  description: Public URL of the image, for example from POST /uploads.
                resolution:
                  type: string
                  enum:
                    - 2k
                    - 4k
                    - 8k
                  default: 2k
              required:
                - imageUrl
      responses:
        '200':
          description: Job queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpscaleJobCreateResponse'
        '400':
          description: Missing imageUrl or invalid resolution
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: Insufficient credits
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: User not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UpscaleJobCreateResponse:
      type: object
      properties:
        success:
          type: boolean
        job:
          type: object
          properties:
            id:
              type: string
            status:
              type: string
              example: QUEUED
            model:
              type: string
              description: Video upscales only.
          required:
            - id
            - status
        creditsDeducted:
          type: integer
        creditsRemaining:
          type: integer
      required:
        - success
        - job
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
        error:
          type: string
        code:
          type: string
        message:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Unsora API key (`uns_…`). A Clerk session token also works.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.