Skip to content
VoiceMint Developers

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

FieldTypeDescription
imagesfile[]
instrumental_onlyboolean
lyricsstring
output_formatLyria3OutputFormat
one of mp3, wav
prompt*stringText prompt describing the music to generate.
variantLyria3Variant
one of clip, pro

Response

200 application/json

FieldTypeDescription
audio_url*string
created_at*string
credits_usedinteger
duration_estimate_seconds*integer
history_idstring
history_warningstring
image_countinteger
lyricsstring[]
mime_type*string
model*string
output_format*Lyria3OutputFormat
one of mp3, wav
processing_time_secondsnumber
track_id*string
variant*Lyria3Variant
one 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

401Missing, wrong, revoked or expired key.
403The key lacks media.write, the route is not available to keys, or the key's IP allow-list refuses this client.
402Not enough credits, or the key reached its spending cap.
422The request failed validation; `detail` lists the fields.
429Over 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=..."