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

# Upload File

Upload a media file to create a new Asset. The returned `id` can be used as `assetId` when [creating a Task](https://developer.audioshake.ai/api-reference/tasks/create.md).

> [!NOTE]
>
> Maximum file size is 5GB. Uploaded Assets expire after 72 hours.

> [!WARNING]
>
> The "Try it" tool on this page has a 5MB upload limit. To upload larger files, use the API directly via curl, Python, or your preferred HTTP client.


## OpenAPI

````yaml POST /assets
openapi: 3.1.0
info:
  title: AudioShake API
  version: 1.0.0
  description: >-
    API for AI-powered audio source separation, stem extraction, and
    transcription.
  license:
    name: Proprietary
    url: https://www.audioshake.ai/terms
  contact:
    name: AudioShake
    url: https://audioshake.ai
servers:
  - url: https://api.audioshake.ai
security:
  - apiKey: []
tags:
  - name: assets
    description: Audio and media file assets managed by AudioShake
  - name: tasks
    description: Stem separation, source separation, and transcription alignment tasks
  - name: models
    description: Available processing models with access and pricing
  - name: storage-integrations
    description: Customer-managed storage for reading inputs and writing task outputs
paths:
  /assets:
    post:
      tags:
        - assets
      summary: Upload File
      operationId: createAsset
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: >-
                    The uploaded file data. Supported audio formats only. (e.g.
                    wav, aiff, flac, mp3). The multipart file part must declare
                    the file's real MIME type (e.g. audio/wav) — clients that
                    default to application/octet-stream are rejected with 400
                    "File upload failed", and a missing type can cause the
                    format to be misdetected. With curl: -F
                    'file=@input.wav;type=audio/wav'.
              required:
                - file
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    description: >-
                      Unique identifier of the Asset. Use this id as assetId
                      when creating a Task.
                    type: string
                  format:
                    description: Format of the output file
                    type: string
                  name:
                    description: Name of the Asset
                    type: string
components:
  securitySchemes:
    apiKey:
      type: apiKey
      name: x-api-key
      in: header

````

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