AI music generation API
blockrun.ai/api/v1/audio/generations
AI music generation API - pay per track with USDC on Base
POST
https://blockrun.ai/api/v1/audio/generationsUptimeNot checked yet
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://blockrun.ai/api/v1/audio/generations", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"duration_seconds":{"description":"Target duration in seconds (5-240, default 30)","type":"integer"},"instrumental":{"description":"Generate instrumental (no vocals)","type":"boolean"},"lyrics":{"description":"Optional lyrics for the track","type":"string"},"model":{"description":"Audio model ID (e.g., minimax/music-2.5+)","type":"string"},"prompt":{"description":"Music style or description promp),
});
console.log(await res.json());Example input
{"duration_seconds":{"description":"Target duration in seconds (5-240, default 30)","type":"integer"},"instrumental":{"description":"Generate instrumental (no vocals)","type":"boolean"},"lyrics":{"description":"Optional lyrics for the track","type":"string"},"model":{"description":"Audio model ID (e.g., minimax/music-2.5+)","type":"string"},"prompt":{"description":"Music style or description prompMore from BlockRun.AI
- blockrun.ai/api/v1/audio/sound-effectsAI sound effect generation (ElevenLabs) — pay per call with USDC on Base0.05
- blockrun.ai/api/v1/audio/speechAI text-to-speech (ElevenLabs) — pay per call with USDC on Base0.05
- blockrun.ai/api/v1/chat/completionsAI chat completions API - pay per request with USDC on Base0.002
- blockrun.ai/api/v1/decisionsTyped judgments for agents: yes/no, choice and score questions about one input, each answered with a probability. Gemini Decision 1 by Google (up to 1,000 questions per call) or OpenAI's gpt-6-luna (the default, up to 64); OpenAI Decisions request shape.0.001
- blockrun.ai/api/v1/defillama/chainsTVL by chain — every chain DefiLlama tracks with current TVL totals.0.006
- blockrun.ai/api/v1/defillama/prices/coingecko:bitcoinToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:bitcoin,coingecko:ethereumToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:bitcoin,coingecko:ethereum,coingecToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:brett-based,coingecko:virtual-protToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:ethereumToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:ethereum,coingecko:bitcoinToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
- blockrun.ai/api/v1/defillama/prices/coingecko:ethereum,coingecko:usd-coinToken price lookup. Pass coin identifiers as `/v1/defillama/prices/{coins}` (e.g. `coingecko:bitcoin`, `ethereum:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2`). Supports comma-separated lists.0.002
