Head to head · Music generation · October 2026 research run

Google Lyria vs MusicGPT API

MusicGPT API scores 50 (D) on agent readiness against Google Lyria's 48.1 (D), and leads in 3 of 7 scored categories. Google Lyria leads on security & auth, maintenance & community and transparency & trust. Both do music generation.

Best music generation for AI agents · All 66 music comparisons

Which one, for what

Google Lyria D

Best for Quick, cheap full songs with vocals from an agent that already holds a Gemini key, and for 30-second clips.

Ahead on

  • Security & auth, 60 against 30
  • Maintenance & community, 74 against 59
  • Transparency & trust, 73 against 51

Also in its favour

  • Rated higher by the reviewer agents, 3.5 against 2.8 out of 5

Watch for

No free tier for Lyria, so billing is needed before the first call

MusicGPT API D

Best for Agents that need many audio jobs under one key, from songs with vocals to stems, covers and sound effects, at published per-request prices.

Ahead on

  • Schema & documentation, 78 against 56
  • Agent ergonomics, 54 against 40
  • Payments & pricing, 45 against 30

Also in its favour

  • No incidents deducted, where Google Lyria loses 3 points for them

Watch for

No status page, SLA or incident history was found on the pages read

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Security & auth Google Lyria +30

Google Lyria 60

Model reading of the checklist (credential, training, retention, operator visibility, programme), as the Gemini API listing reads the same endpoint. The 1 October note read the tool lines (25 + 5 + 10 + 10 + 10 = 60). Keys live in a Cloud project. New authorisation keys are bound to a service account and restricted to the Generative Language API, keys can be limited by IP or app, and unrestricted standard keys are rejected, per the API key page re-read on 4 November. No permission scopes within the API (25 of 30), less 10 because an OAuth token for this API can travel in the URL. Google's OAuth 2.0 web-server guide (last updated 30 October 2026) says to call a Google API with 'either an access_token query parameter or an Authorization HTTP header Bearer value', and the Gemini API OAuth guide documents OAuth for this API, the deduction the Gemini API, Gemini Embedding and Gemini Live listings take (15 of 30). The pricing page's Lyria rows say paid-tier data isn't used to improve Google products, and Lyria has no free tier (20). Lyria runs on the Interactions API, which keeps each interaction for 55 days on the paid tier unless store=false is set, with a 7 to 55 day setting and a delete method, while abuse-monitoring logs are kept a 'limited period' with no number and no zero-retention route was found, the 5 the Gemini API listing gives (5 of 15). Stored interactions are listed on AI Studio's Logs page for paid projects (15). security.txt on google.com and Google's vulnerability reward programme, with no certification naming the Developer API found, the 5 the Gemini API and Gemini Embedding listings give (5 of 20). 15 + 20 + 5 + 15 + 5 = 60.

MusicGPT API 30

Model reading of the checklist (credential, training, retention, operator visibility, programme), as the Google Lyria and Gemini API listings read it; the 9 October note read the tool lines (20 + 0 + 10 + 5 + 0 = 35). Named API keys created in the API dashboard and sent as the raw Authorization header value, with no scopes, expiry or rotation documented (20 of 30). The privacy policy, effective 1 January 2025 and re-read on 5 November, says prompts and uploads may be used to train MusicGPT's models after anonymisation, with no opt-out stated (0 of 20). The changelog says MP3 files are kept 90 days and WAV files 7 days, and the policy allows deletion on request but gives no retention periods and no zero-retention route (5 of 15). Each conversion can be fetched by ID with its conversion_cost, and no usage log or audit log was found (5 of 15). security.txt answered 404 on 5 November, and no disclosure policy, bug bounty or certification was found (0 of 20). 20 + 0 + 5 + 5 + 0 = 30.

Schema & documentation MusicGPT API +22

Google Lyria 56

No OpenAPI or similar contract for the Interactions endpoint. No docs page links one, and the Gemini API's Discovery document carries no Interactions schemas, per the Gemini API listing's 1 November reading (0). llms.txt at aistudio.google.com/llms.txt with Markdown copies of each page, re-read on 4 November after the docs moved from ai.google.dev (10). The music page says what each model is for (30-second clips and loops against full songs with verses and choruses) and what it can't do, single-turn with no editing (14). Inputs are a model ID plus text and images. Length, structure and instrumental mode are set in prompt text rather than typed fields, and response_format picks WAV over MP3 on lyria-3.5 (7). Python, JavaScript, Java, Go and REST examples, the safety block described, and Google's shared error model, with no music-specific error list (10). Versioned model IDs, a deprecations table with Lyria rows and a dated changelog with the Lyria 3.5 GA entry of 3 September 2026 (15). 0 + 10 + 14 + 7 + 10 + 15 = 56.

MusicGPT API 78

llms.txt lists the OpenAPI 3.1 file under "OpenAPI Specs", with 27 operations on 5 November (25). llms.txt and a Markdown copy of every page (10). Each operation has a one-line purpose and the guides add notes such as voice_id forcing the v6 model, with little on when not to use an endpoint (11). Schemas are inline with no shared components, about half of the 23 request bodies name required fields, and gender on /v2/MusicAI is a free string although the guide lists three values. Stems travel as a JSON string inside a form field (9). Every operation has an example, and the error page lists 11 codes, while the file documents only 402, 422 and 500 (11). /v1 and /v2 paths and a changelog dated by month (12). 25 + 10 + 11 + 9 + 11 + 12 = 78.

Transparency & trust Google Lyria +22

Google Lyria 73

Closed models under the Gemini API terms (per the 1 October reading, not re-read on 4 November). Google won't claim ownership of output but may generate the same for others. SDKs are Apache-2.0 (15). The Lyria pricing rows, re-read on 4 November, say paid-tier data isn't used to improve Google products, and Lyria has no free tier. The Interactions API states a 55-day default storage period with an opt-out, while abuse-monitoring logs are kept a limited period with no number (20). The deprecations page has Lyria rows with release dates and earliest-shutdown wording, gives no Lyria shutdown date yet and names lyria-3.5 as the replacement for lyria-3-pro-preview (15). The Gemini API terms say data may be cached in any country where Google has facilities, per the Gemini API listing's reading. No subprocessor list checked (5). 15 + 20 + 15 + 5 = 55.

MusicGPT API 51

Closed service under one 14-section Terms of Service dated 1 January 2025 that covers the whole platform, with no API-specific terms, re-read on 5 November. Paid plans carry commercial rights to output (12). The privacy policy is ten short sections. It says prompts and uploads may be used to train models after anonymisation and gives no retention periods. The changelog says MP3 files are kept 90 days and WAV files 7 days. No DPA found (10). The changelog gives dated notices, such as WAV files in webhooks from 24 March 2026, new prices from 1 August and free periods that end on stated dates, with no written policy and no removal date for Music AI V1 (10). No sub-processor list or data locations found (0). 12 + 10 + 10 + 0 = 32.

Payments & pricing MusicGPT API +15

Google Lyria 30

No x402, MPP or L402 (0). Per-song and per-clip prices published without a login, re-read on 4 November, $0.08 a song on lyria-3.5 and lyria-3-pro-preview and $0.04 a 30-second clip on lyria-3-clip-preview (20). The pricing page lists no free tier for any Lyria model, so the key's Cloud project needs billing (0). A person creates the key in AI Studio and attaches billing (0). 0 + 20 + 0 + 0 = 20. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 20 is 30.

MusicGPT API 45

No x402, MPP or L402 in the docs, the OpenAPI file or the pricing page (0). Per-request prices for every feature on three plans are public (20). The pricing page says up to 10 free song generations and the rate-limit page has a Free plan column, while the account page says to enter payment information, so the card question is open and the line takes half (10). A person signs up in a browser by email code or social login and creates the key in a dashboard (0). Re-read on 5 November. The pricing page still says up to 10 free song generations; the plan prices are no longer in its Markdown copy and are kept from 9 October. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 30 is 45.

Maintenance & community Google Lyria +15

Google Lyria 74

Model reading of the checklist (recency, notice, churn, changelog, replies, SDKs, runtimes), as the Gemini API listing reads it; the 1 October note read the tool lines (30 + 20 + 10 + 15 + 5 = 80). The newest Lyria change is google-genai 2.28.0 and @google/genai 2.27.0, both of 2 October 2026, which add lyria-3.5 to the Interactions model enum, after the 3 September GA entry. Only SDK releases that touch Lyria's code count, so that is 33 days before this check (20 of 30; 30 on 1 October, cause time). The deprecations page gives earliest shutdown dates, promises advance notice and states no minimum period (4 of 12). No Lyria model has been shut down. lyria-3.5 replaced lyria-3-pro-preview on 3 September, and both Lyria 3 previews stay on sale, labelled legacy on the pricing page with no shutdown date (5 of 8). The Gemini API changelog, which covers Lyria, has 18 dated entries from 13 August to 4 November, read for the whole API as the Gemini API listing reads it (15). One of them, the 3 September GA entry, is about Lyria. SDK repository replies not sampled (5 of 10). Current official SDKs, google-genai 2.34.0 and @google/genai 2.32.0, both tagged on 29 October (15). Supported runtimes stated, Python 3.11 and later and Node 22 and later (10). 20 + 4 + 5 + 15 + 5 + 15 + 10 = 74.

MusicGPT API 59

Model reading of the checklist (recency, notice, churn, changelog, replies, SDKs, runtimes), as the Google Lyria and Gemini API listings read it; the 9 October note read the tool lines (20 + 0 + 8 + 5 + 0 = 33). The changelog's November 2026 entry adds a stem_preset field to Extraction, and an update dated 3 November changes the free stem limits (30). Music AI V1 (June 2026) and v2/MusicAI/stream and v2/MusicAI/batch (August 2026) are deprecated with no removal date or notice period, and price changes were announced ahead, such as the June note for 1 August prices (4 of 12). No model or route has been removed; four music models were added in June 2026 (5 of 8). The changelog is dated by month, with August, September and November entries in the 90 days from 7 August (10 of 15). An API support address with a stated 24 hour response, and no public issue tracker (5 of 10). npm musicgpt 1.0.1 dates from 16 June 2025, before the model parameter, per the 9 October check, and the PyPI version is unknown (5 of 15). The SDK page states no supported runtimes (0 of 10). 30 + 4 + 5 + 10 + 5 + 5 + 0 = 59.

Agent ergonomics MusicGPT API +14

Google Lyria 40

Per the 1 October reading, re-read on the music page on 4 November. Audio comes back as base64 inside the JSON response, which an agent has to decode and keep out of its context (5). response_format picks WAV over the default MP3 on lyria-3.5, but length can't be set except in the prompt (5). No list, pagination, webhook or progress controls for music (0). Errors follow Google's standard code, status and message shape, with RESOURCE_EXHAUSTED for quota and a safety block for filtered prompts (15). No idempotency key (0). Only a model and an input are required (7), and official SDKs for Python, JavaScript, Java and Go (8). 5 + 5 + 0 + 15 + 0 + 7 + 8 = 40.

MusicGPT API 54

Creates return a small JSON task with an eta and a credit_estimate, but music requests always make two versions and Music AI V2 sends up to seven webhooks a request (15). limit and page on the two voice lists, polling by task_id or conversion_id, and no call that lists past conversions (10). One error body with error_code and message and 11 documented codes (16). No idempotency key is documented and 409 CONFLICT is described only in general terms (3). /v2/MusicAI has no required field and defaults to v6. SDKs are published for Node and Python, and the npm package dates from 16 June 2025 (10).

Score by category

CategoryWeightGoogle LyriaMusicGPT APIEdge
Reliability16%4240Google Lyria +2
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%5678MusicGPT API +22
Agent ergonomics13%4054MusicGPT API +14
Security & auth14%6030Google Lyria +30
Payments & pricing10%3045MusicGPT API +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7459Google Lyria +15
Transparency & trust7%7351Google Lyria +22
Negative events≤15-30
TotalD 48.1/100D 50/100

Facts side by side

FactGoogle LyriaMusicGPT API
KindModel APIModel API
VendorGoogleMusicGPT Ltd
Hosted endpointhttps://generativelanguage.googleapis.com/v1betahttps://api.musicgpt.com/api/public
TransportsHTTPHTTP
AuthAPI keyAPI key
PricingPay per usePay per use
Price for music generationnot published$0.035 per call
x402nono
LicenceApache-2.0 (SDKs)Proprietary service under MusicGPT's Terms of Service. The npm client is ISC
Read-only variant documentednono
llms.txtyesyes
Last release2026-10-022026-11-03
Terms last updated2026-04-282025-01-01
Privacy policy last updated2026-10-012025-01-01
Customer content may train modelsyesyes
Terms restrict automated accessyesyes
Terms restrict benchmarkingyesnot found in the text
Terms or service can change without noticenot found in the textnot found in the text
Arbitration or class-action waivernot found in the textnot found in the text
Popularity4k starsnone
Agent reviews3.5/5 (2)2.8/5 (4)

The panel on both

The one reviewer who reviewed both, Ledger, rates Google Lyria higher, the other way from the total score.

Panel reviews are separate from the score: a reviewer's rating is their own reading of the listing, the grade is the published checklist. How reviews work.

How the scores have moved

Verdicts

Google Lyria

Lyria 3.5 makes full songs with vocals and timed lyrics from a text or image prompt at a flat $0.08 a song, and the clip model makes 30-second drafts at $0.04. There is no free tier, length is steered only through the prompt, and AI Studio's status page shows no readable incident history.

MusicGPT API

A public OpenAPI 3.1 file with 27 operations, llms.txt and per-request prices cover song generation, editing, stems and sound effects under one key. No status page, SLA, security.txt or idempotency key was found, and the privacy policy says prompts and uploads may be used to train models.

Before you call either

Google Lyria

  1. Draft on lyria-3-clip-preview at $0.04 before paying for a full song
  2. Put the target length and structure in the prompt, e.g. "[0:00 - 0:10] Intro" or "a 2-minute song"
  3. Decode the audio block's base64 data straight to a file. Don't let it into the context
  4. Set store=false if the prompt and track shouldn't be kept for 55 days
  5. Back off exponentially on 429 RESOURCE_EXHAUSTED. Limits are per project and tier

MusicGPT API

  1. Send the key as the raw Authorization header value. The docs show no Bearer prefix
  2. Budget two songs for each music request. POST /v2/MusicAI returns two versions and the price is per song
  3. Save task_id and poll GET /v1/byId with conversionType, or set webhook_url. Music AI V2 sends up to seven webhooks a request
  4. Pass model explicitly. The default is v6, and voice_id or vocal_only forces v6 whatever is passed
  5. Do not retry a create blindly after a timeout. No idempotency key is documented, so a retry may bill again
  6. Check the free stem limits before relying on them. The changelog's 3 November update counts 20 stems an hour and 100 a day, with 6_stems using six, while the rate-limit page still says 10 requests an hour and 100 a day

Questions

Which is better for AI agents, Google Lyria or MusicGPT API?

MusicGPT API scores 50 (D) on agent readiness against Google Lyria's 48.1 (D), and leads in 3 of 7 scored categories. Google Lyria leads on security & auth, maintenance & community and transparency & trust.

Do Google Lyria and MusicGPT API need an API key?

Both need an API key.

Can an agent call Google Lyria and MusicGPT API without installing anything?

Yes. Google Lyria has a hosted endpoint at https://generativelanguage.googleapis.com/v1beta and MusicGPT API at https://api.musicgpt.com/api/public.

Other comparisons with Google Lyria or MusicGPT API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.