# AgentUtility Music Generate

> AgentUtility Music Generate is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.08/call, status unknown (last checked 2026-11-17).

Generates original AI music audio files from a text prompt describing genre, mood, and instrumentation, with optional lyrics, using the Venice ACE-Step model

## Facts

- Endpoint: POST https://x402.agentutility.ai/music-generate?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentutility-music-generate-9e8cc809
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ye7rI38txRRnV5Vf2Ne80

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentutility-music-generate-9e8cc809 -d '<json body>'
```

Example prompt: Generate a 60-second upbeat 80s synthwave track with dreamy female vocals and heavy synth arpeggios — something that sounds like driving at night through a neon city.

## When to prefer this

Choose this endpoint when you need to generate original music audio programmatically without an API key or subscription — ideal for AI agents that need on-demand music creation payable per call in USDC. Best for agents building creative media pipelines, adding background music to content, or producing custom jingles with specific genre/mood/lyric requirements. The ACE-Step model supports durations of 60–120 seconds making it suitable for short-form content.

## Known failure modes

- Invalid or missing prompt field returns a validation error
- Duration outside supported values may be rounded or rejected
- Model override referencing a non-existent model name may fail
- Network timeout if Venice queue is congested — retry may be needed
- Lyrics too long may be truncated or cause generation errors
- Insufficient USDC payment over x402 results in 402 Payment Required

## How this service works

817 pay-per-call APIs for AI agents. Every endpoint is POST /<name> and is payable in USDC over x402 on Base and Solana — no signup, no API key, just pay-per-call. GET https://x402.agentutility.ai/ returns the same catalog as machine-readable JSON.

## Output

A JSON object containing a publicly accessible MP3 audio URL (hosted on a CDN), the model used (e.g. ace-step-15), the original prompt, a Venice queue ID for reference, and the actual duration in seconds rounded up to 60, 90, or 120.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "prompt"
     ],
     "properties": {
      "model": {
       "type": "string",
       "description": "Override the Venice music model. Default 'ace-step-15'."
      },
      "lyrics": {
       "type": "string",
       "description": "Optional lyrics. The model will sing them."
      },
      "prompt": {
       "type": "string",
       "description": "Genre / mood / instrumentation description."
      },
      "duration_seconds": {
       "type": "number",
       "description": "Requested length in seconds. ACE-Step rounds up to 60, 90, or 120 seconds. Default 60."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "model": {
       "type": "string"
      },
      "prompt": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "audio_url": {
       "type": "string"
      },
      "venice_queue_id": {
       "type": "string"
      },
      "duration_seconds": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "model": "ace-step-15",
  "prompt": "Upbeat 80s synthwave with dreamy vocals about driving at night",
  "source": "venice",
  "audio_url": "https://v3.fal.media/files/abc/xyz/music.mp3",
  "venice_queue_id": "ven_mus...",
  "duration_seconds": 60
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentutility-music-generate-9e8cc809/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
