$ man music-generate
/music-generate
PRICE / CALL
$0.05
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
synthforgeCATEGORY
uncategorized
STATUS
● live
NAME
music-generate — generates music from a text prompt via venice using the minimax-music-v26 model
SYNOPSIS
POST https://x402.agentutility.ai/music-generate
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
Generates music from a text prompt via Venice using the minimax-music-v26 model. Optional lyrics input. Duration 5-120 seconds. Returns a permanent fal-hosted audio URL (or a Venice-hosted URL when Venice already provides one). Use it for AI music generation, text-to-music, generative songs, and instrumental or vocal music.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| prompt | string | Genre / mood / instrumentation description. | required |
| duration_seconds | number | Length in seconds. Range [5, 120]. Default 30. | optional |
| lyrics | string | Optional lyrics. The model will sing them. | optional |
| model | string | Override the model. Default 'minimax-music-v26'. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| audio_url | string | Permanent URL to the generated audio file, fal-hosted by default or Venice-hosted when Venice supplies one. |
| duration_seconds | string | Length of the generated track in seconds, between 5 and 120 as requested in the input. |
| model | string | Model identifier used to generate the track, typically minimax-music-v26 on Venice. |
| prompt | string | Text prompt describing the music to generate, echoed back from the input for reference. |
| venice_request_id | string | Venice-side request identifier for the generation job, useful for tracing or support follow-up. |
| source | string | Origin of the audio URL, either fal (re-hosted) or venice (direct Venice-hosted asset). |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/music-generate \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the music-generate tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- synthforgemusic-generationtext-to-musicai-musicgenerative-audioinstrumentalvocalsminimax-music
- methods
- POST
- cluster
- synthforge
- price
- $0.05 USDC per call
ADJACENT — other endpoints in synthforge
| endpoint | description | price |
|---|---|---|
| text-to-speech | Converts text to speech with 30+ voices and 5 audio formats. | $0.05 |
| voice | Converts text to speech with 30+ voices and MP3/WAV/OPUS/AAC/FLAC output. | $0.05 |
| image-generate-pro | Premium text-to-image generation across margin-safe Venice models at a competitive $0.06/call. | $0.06 |
| recraft | Generates SFW design and illustration images with Venice's recraft-v4 model on a dedicated endpoint. | $0.06 |
| seedream | Generates SFW images with Venice's seedream-v4 model on a dedicated endpoint. | $0.06 |
| flux-2-pro | Generates SFW images with Venice's flux-2-pro model on a dedicated endpoint. | $0.04 |
| qwen-image | Generates SFW images with Venice's qwen-image model on a dedicated endpoint. | $0.04 |
| background-remove | Removes the background from a public image URL and returns the subject with alpha transparency. | $0.08 |
SEE ALSO