APIMart Officially Launches magi-2 APIExplore MAGI-2: APIMart Officially Launches magi-2 API
APIMart
Back to models
Flow Music model icon
AudioLyria 3.5Flow MusicMusic GenerationText to Music

Flow Music API

Flow Music API on APIMart gives developers Google's Flow Music with Lyria 3 Pro and Lyria 3.5: one full song per request from a style prompt, lyrics, BPM and length, plus lyrics, extend, replace, cover, stems, export and music video tasks.

No music generated yet

Your generated music will appear here

Flow Music API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

Pricing by specification

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
flowmusic@generatelyria-3-pro0.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.8Credits/gen~$0.08/gen25%
lyria-3.50.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.8Credits/gen~$0.08/gen25%
flowmusic@lyricsdefault0.2Credits/gen~$0.02/gen0.19Credits/gen~$0.019/gen0.18Credits/gen~$0.018/gen0.25Credits/gen~$0.025/gen20%
flowmusic@extendlyria-3-pro0.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
lyria-3.50.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
flowmusic@replacelyria-3-pro0.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
lyria-3.50.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
flowmusic@coverlyria-3-pro0.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
lyria-3.50.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
flowmusic@stemsdefault0.6Credits/gen~$0.06/gen0.57Credits/gen~$0.057/gen0.54Credits/gen~$0.054/gen0.75Credits/gen~$0.075/gen20%
flowmusic@upload_audiodefault0.1Credits/gen~$0.01/gen0.095Credits/gen~$0.0095/gen0.09Credits/gen~$0.009/gen0.125Credits/gen~$0.0125/gen20%
flowmusic@download_audiodefault0.2Credits/gen~$0.02/gen0.19Credits/gen~$0.019/gen0.18Credits/gen~$0.018/gen0.25Credits/gen~$0.025/gen20%
flowmusic@video_clipdefault0.2Credits/gen~$0.02/gen0.19Credits/gen~$0.019/gen0.18Credits/gen~$0.018/gen0.25Credits/gen~$0.025/gen20%

* Actual costs are subject to final output.

Flow Music API: Songs with Google Lyria 3 Pro and Lyria 3.5

Build AI music features with the Flow Music API: send a style prompt, your lyrics, BPM and a target length to Lyria 3 Pro or Lyria 3.5, get one complete song per request, then extend, replace, cover, split stems or render a music video from the same clip. Billing is per request with no subscription.

Active Users
50K+
Uptime
99.9%
Faster
2x
Cost Savings
—

Flow Music API Example: Lyria 3 Pro and Lyria 3.5

Submit a song task, then poll the music task endpoint for the audio URL. The Lyria 3.5 tab adds version lyria-3.5 and your own lyrics.

  1. 1

    Authenticate with your Flow Music API key

    Send your APIMart key as a Bearer token in the Authorization header of every request.

  2. 2

    Submit a song task

    POST to /v1/music/generations with model flowmusic and a sound_prompt or lyrics. Each request generates one track and returns a task_id.

  3. 3

    Poll the music task and download

    Poll GET /v1/music/tasks/{task_id} until data.status is completed, then read data.result.music[].audio_url. Keep the clip_id for extend, replace, cover or stems. Results are kept for 72 hours, so download them promptly.

    All Flow Music operations and their parameters are in the Flow Music API documentation.

POST /v1/music/generations
curl -X POST https://api.apimart.ai/v1/music/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flowmusic",
    "sound_prompt": "lo-fi hip hop with soft piano and rain",
    "title": "Rainy Night",
    "bpm": "90",
    "length": 60
  }'

Flow Music API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: —Must be flowmusic.
versionstringOptionalDefault: —Leave empty for Lyria 3 Pro, or set lyria-3.5 for Lyria 3.5.
sound_promptstringOptionalDefault: —Music style or sound description. sound_prompt and lyrics cannot both be empty.
lyricsstringOptionalDefault: —Lyrics text. You can generate it first with the Lyrics endpoint.
titlestringOptionalDefault: —Title of the generated song.
bpmstringOptionalDefault: —Beats per minute, 1 or higher, for example "120".
lengthintegerOptionalDefault: —Target length of 1 to 240 seconds; the finished length follows the task result.
seedstringOptionalDefault: —Random seed for similar results; exact repeats are not guaranteed.

Guides, comparisons and pricing analysis from the APIMart blog.