BlockRun
AI tools / Audio Generation API

Generate a music track or a sound effect from a prompt

Music and sound-effect generation on one endpoint, billed per track or per clip in USDC. Priced before the call runs, with no subscription and no API key.

AI music generator and sound effects API on one endpoint

Music is a style prompt, optional lyrics or an instrumental flag, and a model; sound effects are a short description on a separate endpoint. Each is one request billed per finished track or clip, and the result is returned on a durable URL.

Music runs to several minutes and a sound effect to a short clip — each model's ceiling is on its row. Both are asynchronous where the model is: the call returns a job when generation takes longer than a request can wait.

How to call the music generation API — style prompt, lyrics, instrumental

One endpoint, priced in dollars before it runs and settled in USDC. No API key and no account — the request pays for itself.

POST /api/v1/audio/generations
Host: blockrun.ai

AI music generation API pricing, per track and per sound-effect clip

Music and sound effects for agents: from an MCP host or the SDK

In Claude Code, Claude Desktop, Cursor, Windsurf, Cline and any other MCP host, this is the blockrun_music tool of the BlockRun MCP server — the agent calls it like any other tool and the result comes back in the conversation. In OpenClaw, Codex and Hermes, ClawRouter exposes the same catalog. In your own code, the Python and TypeScript SDKs wrap the endpoint above with types; any HTTP client works too. Every harness, with its setup →

No account and no API key stand between an agent and the first call: the request is quoted in dollars and the agent's client pays it. A team that prefers keys gets one, with a monthly invoice.

AI music generator API vs Suno, Udio and ElevenLabs sound effects

Suno and Udio are the consumer music generators most people have heard of, and both sell a subscription with a monthly quota of songs; API access, where it exists, sits behind the same plan. ElevenLabs sells sound effects as a feature inside its voice subscription. None of them is shaped for a program that needs one track or one clip, now, and nothing next week.

This endpoint bills per finished track or per finished clip, with no plan and no quota. Music takes a style prompt, optional lyrics or an instrumental flag, and a model; sound effects take a short description on their own endpoint. Each is one request, priced before it runs, returned on a durable URL.

Both are asynchronous where the model is: a music track runs to several minutes and returns a job to poll, a sound effect is a short clip and usually comes back in the response. The model behind each is on its row on the card.

AI music and sound effects API questions: lyrics, length, licensing, pricing

What can the AI music generator API produce?

A full music track from a style prompt — with your lyrics, or as an instrumental — running to several minutes, plus short sound-effect clips from a text description on a separate endpoint.

Can I supply my own lyrics to the music generation API?

Yes. The music model accepts lyrics alongside the style prompt, or an instrumental flag to produce a track with no vocals.

How is AI music generation priced?

Per finished track, at the rate on the card, quoted in dollars before generation begins. Sound effects are priced per clip on their own row.

How long can a generated music track be?

Several minutes on the music model — its row on the card links to the exact ceiling. Sound-effect clips are short by design, with their own limit.

Is there a sound effects API on the same endpoint?

Sound effects have their own endpoint on the same audio path, billed per clip: send a short description and get the clip back.

Can I use AI-generated music commercially?

Output is yours to use under the model vendor's terms, which the model's page links to. BlockRun adds no licence of its own.

Is the music generation API asynchronous?

Yes where the model is: a music track returns a job you poll, and the finished audio lands on a hosted URL that does not expire. A short sound effect usually returns in the response.

AI music generator API vs Suno, Udio or ElevenLabs sound effects?

Suno and Udio sell a subscription with a monthly song quota; ElevenLabs bundles sound effects into its voice plan. This page bills per track or per clip with no plan — the shape for a program that needs one track now.

Can an AI agent generate music or sound effects without an account?

Yes. The request pays for itself, so an agent with a funded balance generates a track or a clip with no signup and no human in the loop.

Two ways to run this

Get an API key

Sign in, get a key, and call the same endpoints with usage billed to your account. For teams that want one invoice instead of one wallet.

Get an API key 

Or let your agent pay per call, in USDC

No account, no API key. Three steps, and the last one is the request this page is about.

  1. 01
    Point your agent at BlockRun

    Install ClawRouter, or add the BlockRun MCP server to Claude Code, Cursor, Codex or OpenClaw. Any OpenAI-compatible client works too — change the base URL, nothing else.

    curl -fsSL https://blockrun.ai/ClawRouter-update | bash
  2. 02
    Fund a wallet with USDC

    Send USDC to a wallet on Base or Solana. There is no account to create and no API key to issue: the wallet is the account, and it pays per call.

  3. 03
    Call AI Music and Sound Effects

    The first call returns HTTP 402 with the exact price, your agent signs it, and the answer comes back. Payment settles on-chain; nothing is charged if the call fails.

    POST /api/v1/audio/generations
    Host: blockrun.ai

How a call is paid: the request is answered with its exact dollar price (HTTP 402), the client pays that amount from its balance and resends, the call runs. No invoice afterwards on this door; an API key and a monthly invoice on the other. The mechanism →