google-apis.md A developer documented a working pipeline for Google's Gemini and Lyria media-generation APIs, showing that image, text-to-speech, music and transcription models all share the same POST /models/:generateContent endpoint with the key passed in an x-goog-api-key header and outputs returned as base64 inlineData. The writeup reports per-model rate limits as low as 10 requests per minute for TTS, with 429 RESOURCE_EXHAUSTED responses carrying a retryDelay field that must be honored, and notes that reference images kept a mascot consistent across nine pose variants while a green-dominance matte in roughly 15 lines of numpy produced clean cutouts where ffmpeg colorkey failed. - The API key wasn't in the shell environment. It lives in ~/.Renviron , so the scripts fall back to reading GOOGLE API KEY from there. - Find model IDs by listing them, not by guessing marketing names: GET https://generativelanguage.googleapis.com/v1beta/models?pageSize=200 the displayName field maps the two . The ones used:Want Model ID displayName Image generation gemini-3.1-flash-image Nano Banana 2 Text-to-speech gemini-3.8-flash-tts also -lite-tts Gemini 3.8 Flash TTS Music lyria-3.5 Lyria 3.5 Transcription / QA gemini-3.8-flash - All four use the same POST .../models/