# ElevenLabs Music Generation API (via ZeroClick)

> ElevenLabs Music Generation API (via ZeroClick) is a paid API for AI agents from api.zeroclick.ac, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Generates music programmatically using ElevenLabs' music_v1 model, supporting prompt-driven generation or structured composition plans with configurable output format and length.

## Facts

- Endpoint: POST https://api.zeroclick.ac/x402/elevenlabs-music-api-vq4khs
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 2
- Provider: api.zeroclick.ac
- Website: https://api.zeroclick.ac
- Canonical page: https://www.zero.xyz/c/api-zeroclick-ac-elevenlabs-music-generation-api-via-zeroclick-cacba034
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1mW4Uec4C6ArlqEs4veBU

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 api-zeroclick-ac-elevenlabs-music-generation-api-via-zeroclick-cacba034 -d '<json body>'
```

Example prompt: Generate a 30-second upbeat electronic track for a product launch video — use ElevenLabs music_v1 with the prompt 'energetic synth-driven beat with rising buildup' and return it as an mp3.

## When to prefer this

Prefer this endpoint when you need to generate original music using ElevenLabs' music_v1 model specifically, especially when integrating into automated pipelines that support x402 micropayments. Choose over alternatives when ElevenLabs' particular style or model quality is required, or when you need structured composition plan support alongside prompt-driven generation.

## Known failure modes

- Invalid or missing prompt returns 400 bad request
- Unsupported output format triggers upstream rejection
- Requested duration exceeds model limits returns error
- Payment not provided or insufficient USDC balance returns 402
- Upstream ElevenLabs service unavailable returns 503
- Rate limit exceeded returns 429

## How this service works

Generate music programmatically using the upstream 'music_v1' model. Supports prompt-driven generation or structured composition plans, configurable output format and length. Upstream behavior (formats, headers, and limits) must be respected by the caller.

Agent instructions: Use this listing when an agent needs programmatic music generation. Supply either a natural-language 'prompt' or a str...[truncated]

## Output

Returns a generated audio file (music track) in the configured output format, produced by ElevenLabs music_v1 based on the supplied prompt or structured composition plan.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [],
 "properties": {
  "seed": {
   "type": [
    "integer",
    "null"
   ],
   "maximum": 2147483647,
   "minimum": 0,
   "description": "Optional random seed (0..2^31-1). When provided, generation may be deterministic. Do not provide together with prompt for seed-only workflows."
  },
  "prompt": {
   "type": [
    "string",
    "null"
   ],
   "maxLength": 4100,
   "description": "Natural-language prompt to guide the music generation (up to 4100 chars). Mutually exclusive with composition_plan."
  },
  "model_id": {
   "enum": [
    "music_v1"
   ],
   "type": "string",
   "default": "music_v1",
   "description": "Model identifier. Currently only 'music_v1' is supported by the upstream API."
  },
  "output_format": {
   "type": "string",
   "description": "Desired audio format (e.g. 'mp3_44100_128', 'wav_48000'). Use formats supported by the upstream service."
  },
  "sign_with_c2pa": {
   "type": [
    "boolean",
    "null"
   ],
   "default": false,
   "description": "If true and supported by upstream, attach a C2PA provenance signature to the artifact."
  },
  "music_length_ms": {
   "type": [
    "integer",
    "null"
   ],
   "maximum": 600000,
   "minimum": 3000,
   "description": "Requested length in milliseconds (3,000–600,000). If omitted, the model will choose a suitable length."
  },
  "composition_plan": {
   "type": [
    "object",
    "null"
   ],
   "description": "Structured composition plan describing sections, instruments, tempo, etc. Mutually exclusive with prompt."
  },
  "force_instrumental": {
   "type": [
    "boolean",
    "null"
   ],
   "default": false,
   "description": "Request instrumental output where feasible (reduce or avoid vocals)."
  },
  "store_for_inpainting": {
   "type": [
    "boolean",
    "null"
   ],
   "default": false,
   "description": "When true, instructs upstream to retain an artifact for potential inpainting workflows if supported."
  },
  "respect_sections_durations": {
   "type": [
    "boolean",
    "null"
   ],
   "default": true,
   "description": "When composition_plan is provided, attempt to respect specified section durations."
  }
 },
 "additionalProperties": true
}
```

## More

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