POST

Generate music from a text prompt (optional negative prompt and seed). Powered by Google Lyria 2

/v1/audio/music-generate

Powered by Google

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/audio/music-generate
Content-Type: application/json

{
  "prompt": "Summarize this text in one sentence.",
  "negative_prompt": "Summarize this text in one sentence.",
  "seed": 0
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Generate music from a text prompt (optional negative prompt and seed). Powered by Google Lyria 2 via Replicate.

Technology company behind Imagen, Veo, and Safe Browsing.

Request schema

Body: JSON · application/json

FieldTypeDescription
promptstringrequired
negative_promptstringoptional
seedintegeroptionalmin: 0
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/audio/music-generate \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "Summarize this text in one sentence.",
  "negative_prompt": "Summarize this text in one sentence.",
  "seed": 0
}'

402 payment flow omitted — see Integrations for settlement.