---
title: "Generate music"
method: POST
path: "/audio/music"
tags: ["Audio"]
---

# Generate music

`POST /audio/music`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/audio/music`
- Auth: API key in header `Authorization`

Submits an asynchronous music generation job (an original song or instrumental track from a text description) to the fal.ai queue and returns the queued job immediately. Use it for soundtracks, background beds, jingles and intros; for spoken words use `POST /v1/audio/generate`. Poll `GET /v1/jobs/{id}` or `GET /v1/audio/{id}` for status; the finished track is `result.audio`. Credits are charged only when the job completes successfully.

## Headers

- `Idempotency-Key` string

## Request body

- MusicGenerateRequest
  - `model` string: A quality tier (fast, balanced, quality) or any fal.ai text-to-music endpoint id. Prefer a tier — it tracks the best current model for that price point. Defaults to fal-ai/lyria3/pro; `GET /v1/audio/music/models` maps tiers to ids with live pricing.
  - `input` object, required: Model-specific input, forwarded to fal verbatim. `prompt` is required. Tracks come back at the model's own length; trim and fade them to fit.
    - `prompt` string, required: The track to make: genre, mood, tempo (BPM), lead instruments, energy, and "instrumental, no vocals" for a background bed.
    - `lyrics` string: Lyrics to sing, for models that sing. Omit it for an instrumental.
    - `duration` number: Upper bound on length in seconds, for models that take one (the `fast` tier).

## Response `202`

Generation job queued

- ProviderJob
  - `id` string, required
  - `object` string, required
  - `type` string, required
  - `status` 'queued' | 'processing' | 'completed' | 'failed' | 'cancelled', required
  - `model` string, required
  - `progress` integer, required
  - `input` object, required
  - `result` object, nullable, required
  - `error` string, nullable, required
  - `error_code` string, nullable, required
  - `credits_used` integer, nullable, required
  - `provider_request_id` string, nullable, required
  - `created_at` string, date-time, required
  - `started_at` string, date-time, nullable, required
  - `completed_at` string, date-time, nullable, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `402`: Insufficient credits
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per owner on the free tier: every API key and OAuth token one person holds on an account shares one budget, and the account's team keys share another. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

## Changes

- **2026-11-15** `56c22ab9b282`: 6 warning
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `400`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `401`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `402`
  - added the new `idempotency_error` enum value to the `error/type` response property for the response status `422`
  - …2 more
- **2026-10-20** `7bd3f6e42135`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/crevio/apis/crevio-api-v1/changes/audio/music/post.md)

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) - [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/ccbd8fcbd6d7?raw)
