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

# Upload a song

> Upload a project-owned file, public HTTPS URL or audio data URI to a model with audio_upload. Returns an opaque song id and optionally a composition plan. Charged by uploaded duration. Requires a nonzero project retention period. ElevenLabs has no public song deletion API; its upstream retention is unspecified.

See the [Audio guide](https://docs.opper.ai/build/multimodal/audio.md#reuse-and-edit-a-song) for song upload, song editing and the limits of provider deletion.


## OpenAPI

````yaml post /v3/audio/songs
openapi: 3.1.0
info:
  description: Schema-driven generative API that orchestrates LLM-powered workflows.
  title: Task API
  version: 3.0.0
servers:
  - description: Production
    url: https://api.opper.ai
  - description: Local development
    url: http://localhost:8080
security:
  - BearerAuth: []
tags:
  - description: OpenAI-compatible chat completions
    name: Chat
  - description: OpenAI Responses API compatible endpoint
    name: Responses
  - description: Google-compatible interactions endpoint
    name: Interactions
  - description: Model registry and capabilities
    name: Models
  - description: Synchronous image generation
    name: Images
  - description: Text-to-speech and speech-to-text
    name: Audio
  - description: Asynchronous video generation
    name: Videos
  - description: Realtime WebSocket sessions and their ephemeral tickets
    name: Realtime
  - description: Many requests on a provider's batch API at the batch price
    name: Batches
  - description: Reusable file storage for media inputs and generated outputs
    name: Files
  - description: Async generation status and downloads
    name: Artifacts
  - description: >-
      Signed completion webhooks for async jobs, and the project secret that
      signs them
    name: Webhooks
  - description: OpenAI-compatible embeddings
    name: Embeddings
  - description: Recorded HTTP request/response generations
    name: Generations
  - description: System health and status
    name: System
  - description: Roundtable endpoint — fan out a query to multiple LLMs and combine results
    name: Roundtable
  - description: Web search, fetch, and other utility tools
    name: Tools
  - description: Caller identity, credits, and usage
    name: Account
  - description: >-
      Programmatic project and API-key management. Authenticates with an
      `op-mak-…` management token; available on the control_plane and enterprise
      plans.
    name: Management
paths:
  /v3/audio/songs:
    post:
      tags:
        - Audio
      summary: Upload a song for editing
      description: >-
        Upload a project-owned file, public HTTPS URL or audio data URI to a
        model with audio_upload. Returns an opaque song id and optionally a
        composition plan. Charged by uploaded duration. Requires a nonzero
        project retention period. ElevenLabs has no public song deletion API;
        its upstream retention is unspecified.
      operationId: createAudioSong
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateSongRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateSongEnvelope'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          description: Unauthorized - missing or invalid API key
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal server error
components:
  schemas:
    CreateSongRequest:
      properties:
        audio:
          description: >-
            A project-owned file ID, public HTTPS URL or audio data URI. Maximum
            25 MB; duration must be readable for billing.
          type: string
        extract_plan:
          type: boolean
        model:
          type: string
        parameters:
          type: object
      required:
        - model
        - audio
      type: object
    CreateSongEnvelope:
      properties:
        data:
          properties:
            created_at:
              format: date-time
              type: string
            duration_seconds:
              type: number
            expires_at:
              format: date-time
              type: string
            id:
              type: string
            model:
              type: string
            plan:
              type: object
            usage:
              properties:
                attempts:
                  description: >-
                    Provider calls the generation took when a rejection was
                    retried (present only when more than 1). Only the successful
                    one is billed.
                  type: integer
                cost:
                  type: number
                duration_seconds:
                  type: number
              required:
                - cost
              type: object
            words_timestamps:
              items:
                properties:
                  end_ms:
                    type: integer
                  start_ms:
                    type: integer
                  word:
                    type: string
                required:
                  - word
                  - start_ms
                  - end_ms
                type: object
              type: array
          required:
            - id
            - model
            - created_at
            - expires_at
            - duration_seconds
            - plan
            - usage
          type: object
        meta:
          type: object
      required:
        - meta
        - data
      type: object
    ErrorResponse:
      properties:
        error:
          properties:
            code:
              type: string
            details:
              description: Any value
            message:
              type: string
          required:
            - code
            - message
          type: object
        meta:
          type: object
      required:
        - error
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: API Key
      description: API key authentication. Pass your API key as a Bearer token.
      scheme: bearer
      type: http

````

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