Google Lyria Pro for longer songs with vocals.
Pass one of these ids as model. Each id covers the tasks listed next to it; credit costs match the studio.
| Model Id | Tasks | Credits | Output | Est. Time |
|---|---|---|---|---|
lyria-3-pro | Text to Music | — | — | — |
Submit a text to music job with lyria-3-pro. The API answers 202 with a generation in queued state.
1curl https://vogoo.ai/api/v1/generations \2-H "Authorization: Bearer $VOGOO_API_KEY" \3-H "Content-Type: application/json" \4-d '{5"model": "lyria-3-pro",6"scene": "text-to-music",7"prompt": "Upbeat synth-pop track about a summer road trip"8}'
| Field | Type | Description |
|---|---|---|
model | string, required | A model id from the models market or GET /api/v1/models. |
prompt | string | What to generate. Required unless options carries the full input. |
scene | string | One of the model's tasks, such as text-to-video or image-to-video. Defaults to the first one. |
options | object | Model settings such as aspect_ratio, duration, image_input (image models) or image_urls (video models). Unsupported keys are ignored. |
enhance_prompt | boolean | Let Vogoo rewrite the prompt before it reaches the model. Default false. |
Valid scene values for Lyria 3 Pro: text-to-music.
Poll every few seconds until status is completed or failed.
curl https://vogoo.ai/api/v1/generations/$GENERATION_ID \
-H "Authorization: Bearer $VOGOO_API_KEY"{
"id": "…",
"object": "generation",
"status": "completed",
"model": "lyria-3-pro",
"model_name": "Lyria 3 Pro",
"type": "music",
"scene": "text-to-music",
"outputs": [
{ "type": "audio", "url": "https://…", "thumbnail_url": "https://…", "title": "…", "duration": 120 }
],
"error": null
}Errors use one shape for every model. See the full list in the general API docs.
{ "error": { "code": "INSUFFICIENT_CREDITS", "message": "…" } }