# music.x402.press Music Generator

> music.x402.press Music Generator is a paid API for AI agents from music.x402.press, paid per call via x402, $0.106125/call, status unknown (last checked 2026-09-15).

Generates an AI instrumental music track from a text prompt, delivered as an audio file, for $0.10 USDC per call via the x402 payment protocol

## Facts

- Endpoint: POST https://music.x402.press/music/generate
- Price: $0.106125/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/music-x402-press-music-generator-fe2ff0ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r_V1D_bwMudomgchSZ3Ro

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 music-x402-press-music-generator-fe2ff0ca -d '<json body>'
```

Example prompt: Generate an AI instrumental track for me — something with a calm, lo-fi chill-hop vibe with soft piano and mellow beats, good for studying.

## When to prefer this

Use this endpoint when you need to programmatically generate custom AI instrumental music from a text description, especially within x402 payment-enabled agent workflows. Prefer this over manual music licensing or stock music libraries when you need unique, on-demand AI-composed tracks for a specific mood or style at a low per-call cost.

## Known failure modes

- Invalid or missing text prompt returns an error
- Payment not provided or insufficient USDC balance causes 402 Payment Required
- Ambiguous or unsupported style description may yield unexpected results
- Network or server errors may cause generation failures
- Rate limiting if too many requests are made concurrently

## How this service works

Generate an AI instrumental music track from a text prompt

## Output

An AI-generated instrumental audio track corresponding to the input text prompt, returned as an audio file or URL to the generated music.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bpm": {
   "type": "integer",
   "default": 0,
   "description": "Beats per minute (0 = auto)"
  },
  "key": {
   "type": "string",
   "default": "",
   "description": "Musical key (e.g. C, Am; blank = auto)"
  },
  "method": {
   "type": "string",
   "const": "POST"
  },
  "prompt": {
   "type": "string",
   "description": "Natural language description of the music to generate"
  },
  "duration": {
   "type": "integer",
   "default": 180,
   "description": "Target duration in seconds (30+). Default 180"
  }
 }
}
```

## More

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