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

# Upscale Content

> Upscale an image or video to higher resolution. Pass the URL and specify the type. Returns the upscaled URL.



## OpenAPI

````yaml api-reference/openapi/content.json POST /api/content/upscale
openapi: 3.1.0
info:
  title: Recoup API - Content
  description: >-
    API documentation for the Recoup platform - an AI agent platform for the
    music industry
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.recoupable.dev
security: []
paths:
  /api/content/upscale:
    post:
      description: >-
        Upscale an image or video to higher resolution. Pass the URL and specify
        the type. Returns the upscaled URL.
      requestBody:
        description: Upscale parameters
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContentCreateUpscaleRequest'
      responses:
        '200':
          description: Media upscaled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentCreateUpscaleResponse'
        '400':
          description: Validation failed — invalid or missing request body fields
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
        '401':
          description: Unauthorized — invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentErrorResponse'
      security:
        - apiKeyAuth: []
        - bearerAuth: []
components:
  schemas:
    ContentCreateUpscaleRequest:
      type: object
      required:
        - url
        - type
      properties:
        url:
          type: string
          format: uri
          description: URL of the image or video to upscale
        type:
          type: string
          enum:
            - image
            - video
          description: Whether the input is an image or video
        upscale_factor:
          type: number
          minimum: 1
          maximum: 4
          default: 2
          description: Upscale multiplier (1-4x). Defaults to 2x.
        target_resolution:
          type: string
          enum:
            - 720p
            - 1080p
            - 1440p
            - 2160p
          description: >-
            Target output resolution. When provided, overrides upscale_factor
            with a resolution-based upscale.
    ContentCreateUpscaleResponse:
      type: object
      required:
        - url
      properties:
        url:
          type: string
          format: uri
          description: URL of the upscaled image or video
    ContentErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message describing what went wrong
          example: Unauthorized
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recoup API key. [Learn more](/quickstart#api-keys).
    bearerAuth:
      type: http
      scheme: bearer

````