Skip to content
Fourohtwo

AI music generation API

blockrun.ai/api/v1/audio/generations

AI music generation API - pay per track with USDC on Base

BaseUnchecked
POSThttps://blockrun.ai/api/v1/audio/generations

UptimeNot 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 promp

More from BlockRun.AI