Deprecated, still works

This page describes a native (non-OpenAI) interface. It still works, but it is deprecated. New integrations should use the unified API.

The unified /v1/audio/generations currently accepts only Suno models (suno, suno-v6, suno/v6 …). The music models on this page have no unified interface for now.

What the unified API offers for this: Open the API guide

Lyria Music · Music

Generate MusicNEW

Generate a piece of music from a style description (optionally with lyrics).

💡 When to use:Use for background music, short-video soundtracks or song demos. No image / video materials.

Submit task
POST/ api/ cqt/ generator/ lyria
Query Result
GET/ api/ cqt/ info/ lyria?id={taskId}
⏱ Recommended polling interval:Takes ~1-3 min; poll every 10s until status = succeeded / failed.

Authorization

AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.

Sub-models

modelUsageMaterialsOutputPrice (credits/call)
lyria-3.0-clipShort clipprompt + optional lyrics~30 s clip30
lyria-3.0-proFull songprompt + optional lyrics~3 min full song60

Request body

application/json
modelstringRequired
Sub-model: lyria-3.0-clip / lyria-3.0-pro
promptstringRequired
Style / mood / instruments (optional when lyrics is given)
lyricsstring
Lyrics (optional); [verse] / [chorus] section tags supported

Response Fields

codenumber
200 means success
data.idstring
Task ID (taskId)
data.statusstring
queued / running / succeeded / failed
data.resultUrlstring
Result URL(s) on our CDN (long-lived); multiple results are comma-separated; null until done or on failure
data.errorMsgstring | null
Failure reason; null on success