Call it
curl https://api.peume.com/v1/call/google-lyria-3-5 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"model": "lyria-3.5",
"contents": [
{
"parts": [
{
"text": "An upbeat lo-fi hip hop instrumental with warm piano chords."
}
]
}
]
}
}'const res = await fetch("https://api.peume.com/v1/call/google-lyria-3-5", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"model": "lyria-3.5",
"contents": [
{
"parts": [
{
"text": "An upbeat lo-fi hip hop instrumental with warm piano chords."
}
]
}
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/google-lyria-3-5",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"model": "lyria-3.5",
"contents": [
{
"parts": [
{
"text": "An upbeat lo-fi hip hop instrumental with warm piano chords."
}
]
}
]
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: google-lyria-3-5.
Parameters
modelRequiredstring's key runs only lyria-3.5; your own key can name another model.
Example: lyria-3.5
contentsRequiredarrayOne user turn: {parts: [{text: prompt}]}. Describe genre, mood, instruments and tempo; ask for an instrumental or supply lyrics in the prompt. The answer carries an MP3 part (inlineData, audio/mpeg) and a text part with the lyrics or section markers.
Example: [{"parts":[{"text":"An upbeat lo-fi hip hop instrumental with warm piano chords."}]}]
