Generate Lyria3
POST/music/lyria3/generate
Generate a Lyria 3 clip (30 s) or full song (Pro). Premium only.
Authentication
Authorization: Bearer vm_sk_… with the media.write permission (or all.write). See Authentication. SDK: client.music.generate_lyria (Python), client.music.generateLyria (Node).
Request body
multipart/form-data
| Field | Type | Description |
|---|---|---|
images | file[] | |
instrumental_only | boolean | |
lyrics | string | |
output_format | Lyria3OutputFormatone of mp3, wav | |
prompt* | string | Text prompt describing the music to generate. |
variant | Lyria3Variantone of clip, pro |
Response
200 application/json
| Field | Type | Description |
|---|---|---|
audio_url* | string | |
created_at* | string | |
credits_used | integer | |
duration_estimate_seconds* | integer | |
history_id | string | |
history_warning | string | |
image_count | integer | |
lyrics | string[] | |
mime_type* | string | |
model* | string | |
output_format* | Lyria3OutputFormatone of mp3, wav | |
processing_time_seconds | number | |
track_id* | string | |
variant* | Lyria3Variantone of clip, pro |
{
"audio_url": "string",
"created_at": "2026-12-05T10:00:00Z",
"duration_estimate_seconds": 0,
"mime_type": "string",
"model": "string",
"output_format": "mp3",
"track_id": "string",
"variant": "clip"
}Errors
401 | Missing, wrong, revoked or expired key. |
403 | The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client. |
402 | Not enough credits, or the key reached its spending cap. |
422 | The request failed validation; `detail` lists the fields. |
429 | Over a rate limit; retry after `Retry-After` seconds. |
All statuses: Errors.
Example
curl -X POST "https://api.voicemint.io/api/v1/music/lyria3/generate" \
-H "Authorization: Bearer $VOICEMINT_API_KEY" \
-F "images=..." \
-F "instrumental_only=..." \
-F "lyrics=..." \
-F "output_format=..." \
-F "prompt=..." \
-F "variant=..."