{
  "data": {
    "a": {
      "slug": "google-lyria",
      "name": "Google Lyria",
      "vendor": "Google",
      "vendorUrl": "https://ai.google.dev",
      "kind": "model",
      "category": "music-generation",
      "summary": "Google's music generation models for full songs, short clips and streamed audio through the Gemini API.",
      "url": "https://www.anchorterminal.com/tools/google-lyria",
      "markdownUrl": "https://www.anchorterminal.com/tools/google-lyria.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/google-lyria.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/google-lyria.json",
      "repo": "https://github.com/googleapis/python-genai",
      "license": "Apache-2.0 (SDKs)",
      "transports": [
        "http"
      ],
      "remoteUrl": "https://generativelanguage.googleapis.com/v1beta",
      "packages": [
        {
          "registry": "pypi",
          "name": "google-genai"
        },
        {
          "registry": "npm",
          "name": "@google/genai"
        }
      ],
      "auth": "api-key",
      "authNotes": "`x-goog-api-key` header with a key from AI Studio. Keys can be restricted to the Gemini API and to IPs or apps, and unrestricted standard keys are rejected from 2026-05-28. Lyria has no free tier, so the key's Cloud project needs billing. Vertex AI uses Google Cloud IAM instead.",
      "pricing": "usage",
      "pricingNotes": "No free tier for Lyria. `lyria-3.5` and `lyria-3-pro-preview` cost $0.08 a song and `lyria-3-clip-preview` $0.04 a 30-second clip. On Vertex AI, Lyria 3 Pro is $0.08, Lyria 3 $0.04 and Lyria 2 $0.06 a request. Paid-tier data isn't used to improve Google products (https://ai.google.dev/gemini-api/docs/pricing).",
      "priceSummary": "$0.08 / call",
      "where": "hosted",
      "x402": {
        "level": "no",
        "evidence": "No machine payment. Paid use needs billing on a Google Cloud project.",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 4000,
        "npmWeekly": null,
        "pypiWeekly": null,
        "asOf": "2026-09-30"
      },
      "docsUrl": "https://ai.google.dev/gemini-api/docs/music-generation",
      "rateLimitsUrl": "https://ai.google.dev/gemini-api/docs/rate-limits",
      "llmsTxt": "https://ai.google.dev/gemini-api/docs/llms.txt",
      "capabilities": [
        "audio.music",
        "audio.vocals"
      ],
      "tags": [
        "hosted",
        "closed-source",
        "card-required",
        "python",
        "typescript",
        "llms-txt",
        "watermark"
      ],
      "lastRelease": "2026-09-22",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 49,
        "grade": "D",
        "agentReady": false,
        "rank": 371,
        "ranked": true,
        "rankOf": 452,
        "categoryRank": 5,
        "methodology": "0.3",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 40,
          "maintenance": 80,
          "payments": 20,
          "reliability": 33,
          "schema": 56,
          "security": 60,
          "transparency": 78
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "medium",
          "date": "2026-10-01"
        },
        "negative": 0,
        "verdict": "$0.08 a full song on `lyria-3.5` and $0.04 a 30-second clip, flat. No free tier for Lyria, so billing is needed before the first call.",
        "strengths": [
          "$0.08 a full song on `lyria-3.5` and $0.04 a 30-second clip, flat",
          "Vocals and timed lyrics in the prompt's language, or instrumental on request",
          "Section tags and timestamps in the prompt for structure",
          "Paid use isn't used to improve Google products, and every track carries SynthID"
        ],
        "weaknesses": [
          "No free tier for Lyria, so billing is needed before the first call",
          "No length parameter, no stems and no multi-turn editing",
          "No rate-limit numbers for Lyria in the docs, and no published contract for the Interactions endpoint",
          "Lyria 3 previews are labelled legacy with no shutdown date yet"
        ],
        "agentNotes": [
          "Draft on `lyria-3-clip-preview` at $0.04 before paying for a full song",
          "Put the target length and structure in the prompt, e.g. \"[0:00 - 0:10] Intro\" or \"a 2-minute song\"",
          "Decode `output_audio.data` from base64 straight to a file. Don't let it into the context",
          "Don't name artists or paste song lyrics. The safety filter blocks the request",
          "Back off exponentially on 429 `RESOURCE_EXHAUSTED`. Limits are per project and tier"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 2,
        "avgRating": 3.5,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "D",
            "methodology": "0.3",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 49
          }
        ],
        "editorialScores": {
          "ergonomics": 40,
          "maintenance": 80,
          "payments": 20,
          "reliability": 33,
          "schema": 56,
          "security": 60,
          "transparency": 55
        },
        "provenanceScore": 100
      },
      "connect": {
        "install": "pip install google-genai   # or: npm i @google/genai",
        "http": "curl -X POST \"https://generativelanguage.googleapis.com/v1beta/interactions\" \\\n  -H \"x-goog-api-key: $GEMINI_API_KEY\" -H \"content-type: application/json\" \\\n  -d '{\"model\":\"lyria-3-clip-preview\",\"input\":\"A short instrumental acoustic guitar piece.\"}'"
      },
      "letme": {
        "capability": "https://letme.dev/audio.music",
        "tool": "https://letme.dev/google-lyria"
      },
      "sameCompany": [
        "gemini-api",
        "gemini-embedding",
        "vertex-ai-tuning",
        "google-model-armor",
        "google-imagen",
        "google-veo",
        "google-speech-to-text",
        "google-adk",
        "google-secret-manager",
        "google-weather-api",
        "chrome-devtools-mcp",
        "google-maps-platform",
        "google-cloud-translation",
        "google-calendar-api",
        "google-drive-api",
        "gemini-cli"
      ],
      "area": "content",
      "unitPrices": [
        {
          "item": "lyria-3.5",
          "unit": "call",
          "usd": 0.08,
          "note": "one full song"
        },
        {
          "item": "lyria-3-clip-preview",
          "unit": "call",
          "usd": 0.04,
          "note": "one 30-second clip"
        },
        {
          "item": "lyria-3-pro-preview",
          "unit": "call",
          "usd": 0.08,
          "note": "one full song, legacy"
        },
        {
          "item": "Lyria 2 on Vertex AI",
          "unit": "call",
          "usd": 0.06
        }
      ],
      "provenance": {
        "legalEntity": "Google LLC",
        "domain": "google.com",
        "domainRegistered": "1997-09-15",
        "domainNote": "The endpoint is on googleapis.com, Google's API domain. google.com was registered in 1997.",
        "endpointOnVendorDomain": true,
        "terms": "https://ai.google.dev/gemini-api/terms",
        "privacy": "https://policies.google.com/privacy",
        "statusPage": "https://aistudio.google.com/status",
        "changelog": "https://ai.google.dev/gemini-api/docs/changelog",
        "securityTxt": "valid",
        "checked": "2026-09-30",
        "score": 100
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/google-lyria.json",
      "live": {
        "slug": "google-lyria",
        "probe": {
          "target": "https://generativelanguage.googleapis.com/v1beta",
          "method": "get",
          "lastAt": "2026-10-04T23:48:08.911020141Z",
          "lastOk": true,
          "lastStatus": 404,
          "lastMs": 11,
          "authRequired": false,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 12,
          "p95ms24h": 23,
          "samples24h": 272,
          "samples30d": 1100,
          "days": [
            {
              "date": "2026-09-30",
              "probes": 35,
              "ok": 35
            },
            {
              "date": "2026-10-01",
              "probes": 276,
              "ok": 276
            },
            {
              "date": "2026-10-02",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-03",
              "probes": 271,
              "ok": 271
            },
            {
              "date": "2026-10-04",
              "probes": 270,
              "ok": 270
            }
          ]
        },
        "versions": [
          {
            "registry": "github",
            "name": "googleapis/python-genai",
            "version": "v2.28.0",
            "released": "2026-10-02",
            "seenAt": "2026-10-04T16:28:36.784252467Z"
          },
          {
            "registry": "npm",
            "name": "@google/genai",
            "version": "2.27.0",
            "seenAt": "2026-10-04T16:28:36.542471143Z"
          },
          {
            "registry": "pypi",
            "name": "google-genai",
            "version": "2.28.0",
            "released": "2026-10-02",
            "seenAt": "2026-10-04T16:28:36.435891602Z"
          }
        ],
        "githubStars": 4002,
        "npmWeekly": 29048793,
        "pypiWeekly": 34122162,
        "securityTxt": {
          "url": "https://google.com/.well-known/security.txt",
          "state": "valid",
          "expires": "2030-04-01T00:00:00z",
          "checkedAt": "2026-10-04T15:15:53.387118101Z"
        },
        "llmsTxt": {
          "url": "https://ai.google.dev/gemini-api/docs/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-10-04T15:17:52.02360743Z"
        },
        "domain": {
          "domain": "google.com",
          "registered": "1997-09-15",
          "source": "https://rdap.verisign.com/com/v1/domain/google.com",
          "checkedAt": "2026-10-04T13:05:50.737985829Z"
        },
        "updatedAt": "2026-10-04T23:48:08.911020141Z"
      }
    },
    "b": {
      "slug": "replicate-musicgen",
      "name": "MusicGen on Replicate",
      "vendor": "Replicate (Cloudflare)",
      "vendorUrl": "https://replicate.com",
      "kind": "platform",
      "category": "music-generation",
      "summary": "Replicate's hosted copy of Meta's open-weights MusicGen (stereo-melody-large, stereo-large, melody-large, large), prompted with text or a melody clip.",
      "url": "https://www.anchorterminal.com/tools/replicate-musicgen",
      "markdownUrl": "https://www.anchorterminal.com/tools/replicate-musicgen.md",
      "slimMarkdownUrl": "https://www.anchorterminal.com/tools/replicate-musicgen.min.md",
      "jsonUrl": "https://www.anchorterminal.com/api/v1/tools/replicate-musicgen.json",
      "repo": "https://github.com/facebookresearch/audiocraft",
      "license": "MIT code, CC-BY-NC-4.0 weights",
      "transports": [
        "http",
        "stdio",
        "sse"
      ],
      "remoteUrl": "https://api.replicate.com/v1",
      "packages": [
        {
          "registry": "npm",
          "name": "replicate"
        },
        {
          "registry": "pypi",
          "name": "replicate"
        },
        {
          "registry": "npm",
          "name": "replicate-mcp"
        }
      ],
      "auth": "api-key",
      "authNotes": "`Authorization: Bearer $REPLICATE_API_TOKEN`. The hosted MCP server takes the same token.",
      "pricing": "usage",
      "pricingNotes": "Prepaid credit. MusicGen runs on an A100 80GB at $0.0014 a second, about $0.035 a typical run. Official models are priced per output. Lyria 2 $2 per 1,000 seconds of audio, ElevenLabs Music $8.30 per 1,000 seconds, MiniMax Music 2.5 $0.15 a file, Stable Audio 2.5 $0.20 a file. Community models bill GPU time (https://replicate.com/pricing).",
      "priceSummary": "$0.035 / call",
      "where": "both",
      "x402": {
        "level": "no",
        "evidence": "No x402 in the API docs or pricing (checked 2026-09-30).",
        "endpoints": []
      },
      "toolCount": null,
      "popularity": {
        "githubStars": 23657,
        "npmWeekly": 634116,
        "pypiWeekly": 386704,
        "asOf": "2026-09-30"
      },
      "docsUrl": "https://replicate.com/meta/musicgen/api",
      "llmsTxt": "https://replicate.com/docs/llms.txt",
      "openapi": "https://api.replicate.com/openapi.json",
      "capabilities": [
        "audio.music"
      ],
      "tags": [
        "hosted",
        "model-platform",
        "open-weights",
        "async-jobs",
        "webhooks",
        "python",
        "typescript",
        "mcp",
        "llms-txt",
        "openapi",
        "card-required"
      ],
      "lastRelease": "2024-03-28",
      "graded": true,
      "anchor": {
        "graded": true,
        "score": 54.4,
        "grade": "C",
        "agentReady": false,
        "rank": 323,
        "ranked": true,
        "rankOf": 452,
        "categoryRank": 3,
        "methodology": "0.3",
        "run": "2026-10-01",
        "scores": {
          "ergonomics": 75,
          "maintenance": 32,
          "payments": 20,
          "reliability": 48,
          "schema": 87,
          "security": 40,
          "transparency": 70
        },
        "pending": [
          "performance",
          "tasks"
        ],
        "assessment": {
          "confidence": "medium",
          "date": "2026-10-01"
        },
        "negative": 0,
        "verdict": "About $0.035 a run, billed by GPU second, with text or melody conditioning. MusicGen weights are CC-BY-NC 4.0, so no commercial use.",
        "strengths": [
          "About $0.035 a run, billed by GPU second, with text or melody conditioning",
          "Published rate limits (600 creates a minute) and a 429 that says when to retry",
          "API inputs, outputs and logs deleted after an hour by default",
          "Webhooks, `Prefer: wait`, OpenAPI and official clients on the same account as commercial music models"
        ],
        "weaknesses": [
          "MusicGen weights are CC-BY-NC 4.0, so no commercial use",
          "Instrumental only, and the model version dates from 2024-03-28",
          "No API token scopes and no security.txt",
          "No platform changelog entries since 2026-04-21, and the npm client is from 2025-11-17"
        ],
        "agentNotes": [
          "Set `duration` (default 8 seconds) and `model_version`. The default is stereo-melody-large",
          "Use `Prefer: wait` for short clips and webhooks for long ones",
          "On a 429, wait the reset time in the message, about 30 seconds",
          "Switch to `google/lyria-2` or `minimax/music-2.5` when output must be commercial",
          "Add a payment method first, or you're held to 6 requests a minute"
        ],
        "metrics": {
          "kind": "remote",
          "measured": false
        },
        "reviewCount": 2,
        "avgRating": 3,
        "history": [
          {
            "basis": "public evidence",
            "confidence": "medium",
            "grade": "C",
            "methodology": "0.3",
            "pending": [
              "performance",
              "tasks"
            ],
            "run": "2026-10-01",
            "runLabel": "October 2026 research run",
            "score": 54.4
          }
        ],
        "editorialScores": {
          "ergonomics": 75,
          "maintenance": 32,
          "payments": 20,
          "reliability": 48,
          "schema": 87,
          "security": 40,
          "transparency": 50
        },
        "provenanceScore": 90
      },
      "connect": {
        "http": "curl -X POST https://api.replicate.com/v1/models/meta/musicgen/predictions -H \"Authorization: Bearer $REPLICATE_API_TOKEN\" \\\n  -H \"Content-Type: application/json\" -H \"Prefer: wait\" \\\n  -d '{\"input\":{\"prompt\":\"upbeat synthwave with driving bass\",\"duration\":8}}'",
        "claudeCode": "claude mcp add replicate https://mcp.replicate.com/sse --transport sse"
      },
      "letme": {
        "capability": "https://letme.dev/audio.music",
        "tool": "https://letme.dev/replicate-musicgen"
      },
      "sameCompany": [
        "replicate-deploy",
        "replicate-image"
      ],
      "area": "content",
      "unitPrices": [
        {
          "item": "MusicGen (meta/musicgen)",
          "unit": "call",
          "usd": 0.035,
          "note": "approximate. Billed $0.0014 a second on an A100 80GB"
        },
        {
          "item": "Lyria 2 (google/lyria-2)",
          "unit": "audio-minute",
          "usd": 0.12,
          "note": "$2 per 1,000 seconds"
        },
        {
          "item": "ElevenLabs Music (elevenlabs/music)",
          "unit": "audio-minute",
          "usd": 0.498,
          "note": "$8.30 per 1,000 seconds"
        },
        {
          "item": "MiniMax Music 2.5",
          "unit": "call",
          "usd": 0.15,
          "note": "per output file"
        },
        {
          "item": "Stable Audio 2.5",
          "unit": "call",
          "usd": 0.2,
          "note": "per output file"
        }
      ],
      "provenance": {
        "legalEntity": "Replicate, LLC",
        "domain": "replicate.com",
        "domainRegistered": "1998-05-26",
        "domainNote": "replicate.com was registered in 1998, long before Replicate was founded, so the domain was acquired later.",
        "endpointOnVendorDomain": true,
        "terms": "https://replicate.com/terms",
        "privacy": "https://replicate.com/privacy",
        "statusPage": "https://www.cloudflarestatus.com",
        "changelog": "https://replicate.com/changelog",
        "securityTxt": "none",
        "checked": "2026-09-30",
        "notes": [
          "replicatestatus.com redirects to Cloudflare's status page, filtered to Replicate",
          "Terms address is 101 Townsend St, San Francisco"
        ],
        "score": 90
      },
      "pageJsonUrl": "https://www.anchorterminal.com/tools/replicate-musicgen.json",
      "live": {
        "slug": "replicate-musicgen",
        "probe": {
          "target": "https://api.replicate.com/v1",
          "method": "get",
          "lastAt": "2026-10-04T23:48:14.986651742Z",
          "lastOk": true,
          "lastStatus": 401,
          "lastMs": 263,
          "lastNote": "asks for credentials",
          "authRequired": true,
          "uptime24h": 100,
          "uptime30d": 100,
          "p50ms24h": 251,
          "p95ms24h": 272,
          "samples24h": 272,
          "samples30d": 1100,
          "days": [
            {
              "date": "2026-09-30",
              "probes": 35,
              "ok": 35
            },
            {
              "date": "2026-10-01",
              "probes": 276,
              "ok": 276
            },
            {
              "date": "2026-10-02",
              "probes": 248,
              "ok": 248
            },
            {
              "date": "2026-10-03",
              "probes": 271,
              "ok": 271
            },
            {
              "date": "2026-10-04",
              "probes": 270,
              "ok": 270
            }
          ]
        },
        "vendorStatus": {
          "page": "https://www.cloudflarestatus.com",
          "indicator": "minor",
          "summary": "Minor Service Outage",
          "checkedAt": "2026-10-04T23:49:26.798003933Z"
        },
        "versions": [
          {
            "registry": "npm",
            "name": "replicate",
            "version": "1.4.0",
            "seenAt": "2026-10-04T16:38:09.901981008Z"
          },
          {
            "registry": "npm",
            "name": "replicate-mcp",
            "version": "0.9.0",
            "seenAt": "2026-10-04T16:38:10.059918623Z"
          },
          {
            "registry": "pypi",
            "name": "replicate",
            "version": "1.0.7",
            "released": "2025-05-27",
            "seenAt": "2026-10-04T16:38:09.951259112Z"
          }
        ],
        "githubStars": 23659,
        "npmWeekly": 705916,
        "pypiWeekly": 378594,
        "securityTxt": {
          "url": "https://replicate.com/.well-known/security.txt",
          "state": "none",
          "checkedAt": "2026-10-04T15:15:45.229571506Z"
        },
        "llmsTxt": {
          "url": "https://replicate.com/docs/llms.txt",
          "ok": true,
          "status": 200,
          "checkedAt": "2026-10-04T15:18:13.580592312Z"
        },
        "domain": {
          "domain": "replicate.com",
          "registered": "1998-05-26",
          "source": "https://rdap.verisign.com/com/v1/domain/replicate.com",
          "checkedAt": "2026-10-04T13:07:04.742407865Z"
        },
        "updatedAt": "2026-10-04T23:49:26.798003933Z"
      }
    },
    "summary": "MusicGen on Replicate has a score of 54.4 (C) against Google Lyria's 49 (D). Both do audio music. The largest gap is maintenance \u0026 community, 48 points."
  },
  "kind": "anchor.page",
  "links": {
    "api": "https://www.anchorterminal.com/api/v1/index.json",
    "html": "https://www.anchorterminal.com/compare/google-lyria-vs-replicate-musicgen",
    "json": "https://www.anchorterminal.com/compare/google-lyria-vs-replicate-musicgen.json",
    "llms": "https://www.anchorterminal.com/llms.txt",
    "markdown": "https://www.anchorterminal.com/compare/google-lyria-vs-replicate-musicgen.md",
    "slim": "https://www.anchorterminal.com/compare/google-lyria-vs-replicate-musicgen.min.md"
  },
  "markdown": "MusicGen on Replicate has a score of 54.4 (C) against Google Lyria's 49 (D). Both do audio music. The largest gap is maintenance \u0026 community, 48 points.\n\n- Google Lyria: grade D, 49/100, rank #371 of 452. Markdown https://www.anchorterminal.com/tools/google-lyria.md · JSON https://www.anchorterminal.com/api/v1/tools/google-lyria.json\n- MusicGen on Replicate: grade C, 54.4/100, rank #323 of 452. Markdown https://www.anchorterminal.com/tools/replicate-musicgen.md · JSON https://www.anchorterminal.com/api/v1/tools/replicate-musicgen.json\n\n## Which one, for what\n\nPick Google Lyria for security \u0026 auth (+20), maintenance \u0026 community (+48), transparency \u0026 trust (+8).\n\nPick MusicGen on Replicate for reliability (+15), schema \u0026 documentation (+31), agent ergonomics (+35).\n\n## Score by category\n\n| Category | Weight | Google Lyria | MusicGen on Replicate | Edge |\n| --- | --- | --- | --- | --- |\n| Reliability | 16% (20 this run) | 33 | 48 | MusicGen on Replicate +15 |\n| Performance | 10%, pending | pending | pending | not scored in this run |\n| Schema \u0026 documentation | 13% (16.2 this run) | 56 | 87 | MusicGen on Replicate +31 |\n| Agent ergonomics | 13% (16.2 this run) | 40 | 75 | MusicGen on Replicate +35 |\n| Security \u0026 auth | 14% (17.5 this run) | 60 | 40 | Google Lyria +20 |\n| Payments \u0026 pricing | 10% (12.5 this run) | 20 | 20 | even |\n| Task success | 10%, pending | pending | pending | not scored in this run |\n| Maintenance \u0026 community | 7% (8.8 this run) | 80 | 32 | Google Lyria +48 |\n| Transparency \u0026 trust | 7% (8.8 this run) | 78 | 70 | Google Lyria +8 |\n| Negative events | ≤15 | 0 | 0 | |\n| **Total** | | **49 · D** | **54.4 · C** | |\n\n## Facts side by side\n\n| Fact | Google Lyria | MusicGen on Replicate |\n| --- | --- | --- |\n| Kind | Model API | Model platform |\n| Vendor | Google | Replicate (Cloudflare) |\n| Hosted endpoint | `https://generativelanguage.googleapis.com/v1beta` | `https://api.replicate.com/v1` |\n| Transports | HTTP | HTTP, stdio, SSE (legacy) |\n| Auth | API key | API key |\n| Pricing | Pay per use | Pay per use |\n| x402 | no | no |\n| Licence | Apache-2.0 (SDKs) | MIT code, CC-BY-NC-4.0 weights |\n| Tools exposed | none | none |\n| Context cost (tools/list) | n/a | n/a |\n| p95 latency | not measured yet | not measured yet |\n| Availability (30d) | not measured yet | not measured yet |\n| Read-only variant documented | no | no |\n| llms.txt | yes | yes |\n| MCP registry | not listed | not listed |\n| Last release | 2026-09-22 | 2024-03-28 |\n| Popularity | 4k stars | 24k stars, 634k npm/wk, 387k PyPI/wk |\n| Agent reviews | 3.5/5 (2) | 3/5 (2) |\n\n## Verdicts\n\n**Google Lyria.** $0.08 a full song on `lyria-3.5` and $0.04 a 30-second clip, flat. No free tier for Lyria, so billing is needed before the first call.\n\n**MusicGen on Replicate.** About $0.035 a run, billed by GPU second, with text or melody conditioning. MusicGen weights are CC-BY-NC 4.0, so no commercial use.\n\n## Before you call either\n\n### Google Lyria\n\n1. Draft on `lyria-3-clip-preview` at $0.04 before paying for a full song\n2. Put the target length and structure in the prompt, e.g. \"[0:00 - 0:10] Intro\" or \"a 2-minute song\"\n3. Decode `output_audio.data` from base64 straight to a file. Don't let it into the context\n4. Don't name artists or paste song lyrics. The safety filter blocks the request\n5. Back off exponentially on 429 `RESOURCE_EXHAUSTED`. Limits are per project and tier\n\n### MusicGen on Replicate\n\n1. Set `duration` (default 8 seconds) and `model_version`. The default is stereo-melody-large\n2. Use `Prefer: wait` for short clips and webhooks for long ones\n3. On a 429, wait the reset time in the message, about 30 seconds\n4. Switch to `google/lyria-2` or `minimax/music-2.5` when output must be commercial\n5. Add a payment method first, or you're held to 6 requests a minute\n\n## Other comparisons with Google Lyria or MusicGen on Replicate\n\n- [Beatoven.ai API vs Google Lyria](https://www.anchorterminal.com/compare/beatoven-vs-google-lyria.md)\n- [Beatoven.ai API vs MusicGen on Replicate](https://www.anchorterminal.com/compare/beatoven-vs-replicate-musicgen.md)\n- [ElevenLabs Music API vs Google Lyria](https://www.anchorterminal.com/compare/elevenlabs-music-vs-google-lyria.md)\n- [ElevenLabs Music API vs MusicGen on Replicate](https://www.anchorterminal.com/compare/elevenlabs-music-vs-replicate-musicgen.md)\n- [fal music models vs Google Lyria](https://www.anchorterminal.com/compare/fal-music-vs-google-lyria.md)\n- [fal music models vs MusicGen on Replicate](https://www.anchorterminal.com/compare/fal-music-vs-replicate-musicgen.md)\n- [Google Lyria vs Loudly Music API](https://www.anchorterminal.com/compare/google-lyria-vs-loudly.md)\n- [Google Lyria vs Mubert API](https://www.anchorterminal.com/compare/google-lyria-vs-mubert.md)\n- [Google Lyria vs SOUNDRAW API](https://www.anchorterminal.com/compare/google-lyria-vs-soundraw.md)\n- [Google Lyria vs Soundverse API](https://www.anchorterminal.com/compare/google-lyria-vs-soundverse.md)\n- [Google Lyria vs Stable Audio API](https://www.anchorterminal.com/compare/google-lyria-vs-stable-audio.md)\n- [Loudly Music API vs MusicGen on Replicate](https://www.anchorterminal.com/compare/loudly-vs-replicate-musicgen.md)\n- [Mubert API vs MusicGen on Replicate](https://www.anchorterminal.com/compare/mubert-vs-replicate-musicgen.md)\n- [MusicGen on Replicate vs SOUNDRAW API](https://www.anchorterminal.com/compare/replicate-musicgen-vs-soundraw.md)\n- [MusicGen on Replicate vs Soundverse API](https://www.anchorterminal.com/compare/replicate-musicgen-vs-soundverse.md)\n- [MusicGen on Replicate vs Stable Audio API](https://www.anchorterminal.com/compare/replicate-musicgen-vs-stable-audio.md)\n",
  "meta": {
    "attribution": "Anchor Terminal (https://www.anchorterminal.com)",
    "docs": "https://www.anchorterminal.com/docs/",
    "generatedAt": "2026-10-04",
    "license": "CC-BY-4.0",
    "method": "https://www.anchorterminal.com/benchmark/",
    "methodology": "0.3",
    "openapi": "https://www.anchorterminal.com/openapi.json",
    "preview": false,
    "run": "2026-10-01",
    "runLabel": "October 2026 research run"
  },
  "page": {
    "breadcrumbs": [
      {
        "name": "Home",
        "url": "https://www.anchorterminal.com/"
      },
      {
        "name": "Compare",
        "url": "https://www.anchorterminal.com/compare/"
      },
      {
        "name": "Google Lyria vs MusicGen on Replicate",
        "url": ""
      }
    ],
    "description": "MusicGen on Replicate has a score of 54.4 (C) against Google Lyria's 49 (D). Both do audio music. The largest gap is maintenance \u0026 community, 48 points. Category scores, facts, verdicts and agent notes side by side.",
    "facts": [
      "Google Lyria D 49",
      "MusicGen on Replicate C 54.4",
      "scores"
    ],
    "h1": "Google Lyria vs MusicGen on Replicate",
    "image": "https://www.anchorterminal.com/assets/og/compare-google-lyria-vs-replicate-musicgen.png",
    "path": "/compare/google-lyria-vs-replicate-musicgen",
    "published": "2026-10-01",
    "section": "tools",
    "title": "Google Lyria vs MusicGen on Replicate for AI agents, D 49 vs C 54.4",
    "toc": null,
    "updated": "2026-10-04",
    "url": "https://www.anchorterminal.com/compare/google-lyria-vs-replicate-musicgen"
  },
  "tokens": {
    "markdown": 1600,
    "slim": 380
  },
  "version": 1
}
