# ElevenLabs Music Generation via Xona Agent

> ElevenLabs Music Generation via Xona Agent is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $1.25/call, status unknown (last checked 2026-09-14, last successful call 2026-08-15).

Generates AI music from a text prompt using ElevenLabs Music (via Replicate), with configurable duration up to 3 minutes and optional instrumental mode

## Facts

- Endpoint: POST https://api.xona-agent.com/base-main/audio/elevenlabs-music
- Price: $1.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-08-15
- Success rate: 67% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 7
- Tags: x402
- Canonical page: https://www.zero.xyz/c/elevenlabs-music-generation-via-xona-agent-91708f6b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ta586cusBtCj266Ih5aLC

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 elevenlabs-music-generation-via-xona-agent-91708f6b -d '<json body>'
```

Example prompt: Generate a 90-second upbeat lo-fi hip hop instrumental track — no vocals, mp3_standard format — using ElevenLabs Music.

## When to prefer this

Choose this endpoint when you need AI-generated music from a text description, especially when you need control over duration (up to 3 minutes) and instrumental vs. vocal output. Prefer over generic TTS or sound effect APIs when you specifically need music composition. Best when integrated into creative workflows on Base Mainnet with x402 micropayments.

## Known failure modes

- Prompt too vague or empty — returns validation error
- music_length_ms out of range (below 1000 or above 180000) — returns 400 error
- Payment insufficient or x402 payment failed — returns 402 Payment Required
- ElevenLabs/Replicate backend unavailable — returns 503 or timeout
- Invalid output_format specified — returns 400 validation error

## How this service works

AI music generation using ElevenLabs Music (Replicate). Dynamic pricing: $1 per 120 seconds, max 3 minutes (Base Mainnet).

## Output

An audio file (e.g. MP3) containing the AI-generated music track matching the prompt, up to 180 seconds in length, with dynamic pricing at $1 per 120 seconds of audio generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Description of the music to generate"
  },
  "output_format": {
   "type": "string",
   "description": "e.g. mp3_standard"
  },
  "music_length_ms": {
   "type": "number",
   "description": "Duration in milliseconds (min 1000, max 180000)"
  },
  "force_instrumental": {
   "type": "boolean",
   "description": "Force instrumental output"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/elevenlabs-music-generation-via-xona-agent-91708f6b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.xona-agent.com](https://www.zero.xyz/host/api.xona-agent.com/llms.txt)
