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

# Clean public URL for ANY media (image video audio)



## OpenAPI

````yaml /api/pixio-api.json post /media
openapi: 3.1.0
info:
  title: Pixio API
  version: 1.0.0
  description: >-
    Generate AI media, manage assets, inspect credits, and run saved workflows.
    Typical flow: GET /models -> GET /params -> POST /uploads -> POST /generate
    -> poll GET /generations/{id}. See GET /guide for the full protocol.
servers:
  - url: https://beta.pixio.myapps.ai/api/v1
security:
  - ApiKey: []
paths:
  /media:
    post:
      summary: Clean public URL for ANY media (image video audio)
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
          application/json:
            schema:
              $ref: '#/components/schemas/ImageRequest'
      responses:
        '201':
          description: '{ url } — clean public URL (or { url, urls } for several)'
        '400':
          description: No file or url provided
        '502':
          description: Upload service error
components:
  schemas:
    ImageRequest:
      type: object
      properties:
        url:
          type: string
          format: uri
        urls:
          type: array
          items:
            type: string
            format: uri
      description: >-
        JSON body to mirror one or more remote URLs; or send multipart/form-data
        with file/url fields.
  securitySchemes:
    ApiKey:
      type: http
      scheme: bearer
      description: Pixio API key

````