> ## 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.

# Create a stored image CDN URL

> Create a signed, cacheable transform URL for an image already stored in Convertly Storage.



## OpenAPI

````yaml /openapi.json post /api/cdn/image
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/cdn/image:
    post:
      tags:
        - Media Tools
      summary: Create a stored image CDN URL
      description: >-
        Create a signed, cacheable transform URL for an image already stored in
        Convertly Storage.
      operationId: createCdnImageUrl
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CdnImageUrlRequest'
      responses:
        '200':
          description: Signed stored-image transform URL
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignedTransformResponse'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    CdnImageUrlRequest:
      type: object
      required:
        - fileId
      properties:
        fileId:
          type: string
          format: uuid
          description: Stored file ID for an image in Convertly Storage.
        width:
          type: integer
          minimum: 1
          maximum: 10000
        height:
          type: integer
          minimum: 1
          maximum: 10000
        format:
          type: string
          enum:
            - jpg
            - png
            - webp
            - avif
        fit:
          type: string
          enum:
            - cover
            - contain
            - fill
            - inside
            - outside
        quality:
          type: integer
          minimum: 1
          maximum: 100
        expiresIn:
          type: integer
          minimum: 60
          maximum: 2592000
          default: 604800
          description: Signed URL lifetime in seconds.
    SignedTransformResponse:
      type: object
      properties:
        url:
          type: string
          format: uri
        expiresAt:
          type: string
          format: date-time
      required:
        - url
        - expiresAt
    Error:
      type: object
      properties:
        error:
          type: string
        upgradeUrl:
          type: string
      required:
        - error
  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.

````