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

# Adjust image, video, or audio

> Apply filter-style adjustments to a single file. Images and video accept brightness, saturation, hue, contrast, grayscale, and invert. Audio accepts volume, normalize, fade-in, and fade-out.



## OpenAPI

````yaml /openapi.json post /api/media/adjust
openapi: 3.1.0
info:
  title: Convertly API
  version: 1.0.0
  description: >-
    Convertly provides production API endpoints for media conversion,
    compression, Image CDN delivery, Forma AI, HLS/DASH video streaming, media
    tools, async jobs, workflows, webhooks, and Convertly Storage.
  license:
    name: Proprietary
    url: https://convertly.sh/terms
servers:
  - url: https://convertly.sh
security:
  - bearerAuth: []
  - apiKeyAuth: []
paths:
  /api/media/adjust:
    post:
      tags:
        - Media Tools
      summary: Adjust image, video, or audio
      description: >-
        Apply filter-style adjustments to a single file. Images and video accept
        brightness, saturation, hue, contrast, grayscale, and invert. Audio
        accepts volume, normalize, fade-in, and fade-out.
      operationId: adjustMedia
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/AdjustRequest'
      responses:
        '200':
          description: Generated files or queued media tool job
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/MediaToolFilesResponse'
                  - $ref: '#/components/schemas/AsyncMediaToolJobResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '402':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
components:
  schemas:
    AdjustRequest:
      allOf:
        - $ref: '#/components/schemas/SingleFileRequest'
        - type: object
          description: >-
            Applies brightness/saturation/hue/contrast filters to images and
            video, or volume/normalize/fade to audio. The accepted properties
            depend on the input MIME type.
          properties:
            format:
              type: string
              description: >-
                Image: png, webp, jpg. Video: mp4, webm, mov. Audio: mp3, m4a,
                wav.
              enum:
                - png
                - webp
                - jpg
                - mp4
                - webm
                - mov
                - mp3
                - m4a
                - wav
            quality:
              type: integer
              minimum: 1
              maximum: 100
              default: 86
              description: Image only.
            brightness:
              type: number
              default: 1
              description: Image and video. 1 = unchanged. 0.5 = darker. 1.5 = brighter.
            saturation:
              type: number
              default: 1
              description: Image and video. 1 = unchanged. 0 = grayscale. 2 = vibrant.
            hue:
              type: number
              default: 0
              description: Image and video. Degrees to rotate hue (-180 to 180).
            contrast:
              type: number
              default: 1
              description: Image and video. 1 = unchanged.
            grayscale:
              type: string
              enum:
                - 'true'
                - 'false'
              default: 'false'
              description: Image and video.
            sharpen:
              type: string
              enum:
                - 'true'
                - 'false'
              default: 'false'
              description: Image only.
            invert:
              type: string
              enum:
                - 'true'
                - 'false'
              default: 'false'
              description: Image and video.
            volume:
              type: number
              default: 1
              description: >-
                Audio only. 1 = unchanged. 2 = doubled (server can boost up to
                4x).
            normalize:
              type: string
              enum:
                - 'true'
                - 'false'
              default: 'false'
              description: Audio only. Apply EBU R128 loudness normalization.
            fadeIn:
              type: number
              default: 0
              description: Audio only. Fade-in duration in seconds.
            fadeOut:
              type: number
              default: 0
              description: Audio only. Fade-out duration in seconds.
    MediaToolFilesResponse:
      type: object
      properties:
        files:
          type: array
          items:
            $ref: '#/components/schemas/MediaToolFile'
      required:
        - files
    AsyncMediaToolJobResponse:
      type: object
      properties:
        jobId:
          type: string
          format: uuid
        status:
          const: pending
        tool:
          type: string
          enum:
            - thumbnail
            - pdf-preview
            - image-to-pdf
            - strip-metadata
            - poster-frame
            - extract-audio
            - watermark
            - inspect
            - trim
            - gif
            - storyboard
            - transform
      required:
        - jobId
        - status
        - tool
    SingleFileRequest:
      allOf:
        - type: object
          properties:
            file:
              type: string
              format: binary
              description: Multipart upload input.
        - $ref: '#/components/schemas/RemoteSourceFields'
      description: Provide either file or sourceUrl.
    MediaToolFile:
      type: object
      properties:
        filename:
          type: string
        mimeType:
          type: string
        originalSize:
          type: integer
        finalSize:
          type: integer
        downloadUrl:
          type: string
      required:
        - filename
        - mimeType
        - originalSize
        - finalSize
        - downloadUrl
    Error:
      type: object
      properties:
        error:
          type: string
        upgradeUrl:
          type: string
      required:
        - error
    RemoteSourceFields:
      type: object
      properties:
        sourceUrl:
          type: string
          format: uri
          description: >-
            Remote HTTP(S) file input. Use instead of file for single-file
            tools.
        async:
          type: string
          enum:
            - 'true'
            - 'false'
          default: 'false'
          description: Set true to queue the media tool as a background job.
        background:
          type: string
          enum:
            - 'true'
            - 'false'
          description: Alias for async=true.
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Dashboard-generated Convertly API key. Keys currently begin with
        `cvly_`.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Alternative API key header for server-side clients.

````