# pxbt x402 Music Generator

> pxbt x402 Music Generator is a paid API for AI agents from x402.pxbt.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-17).

Generates a short music track from a natural language description, returning a job ID and status URL for async retrieval, paid per-call via USDC on Base.

## Facts

- Endpoint: GET https://x402.pxbt.app/music?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pxbt-x402-music-generator-ed8e3a86
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fSiDstO-aQHSfEXwOtV1x

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 pxbt-x402-music-generator-ed8e3a86
```

Example prompt: Generate a 45-second upbeat lo-fi hip-hop track with jazzy piano and soft drums — something good for studying.

## When to prefer this

Choose this endpoint when you need to programmatically generate short custom music tracks (10–120 seconds) from a natural language description and can pay per-call in USDC on Base via the x402 protocol. It is well-suited for agents building creative pipelines, content automation, or media production tools that require AI-generated audio without a subscription.

## Known failure modes

- Missing or empty 'prompt' query parameter returns a validation error
- Duration ('sec') outside 10–120 range may be rejected or clamped
- Payment failure or insufficient USDC balance results in a 402 Payment Required response
- Network or generation backend errors may result in a failed job status at the status_url
- Polling the status_url may show a failed or timed-out job if the generation service is overloaded

## How this service works

Paid agent API: USDC on Base via x402.

## Output

Returns a JSON object with a job_id string, a status string (e.g. 'queued'), and a status_url pointing to a polling endpoint where the agent can check progress and retrieve the final audio once generation is complete.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "sec": {
       "type": "integer",
       "description": "Track duration in seconds, 10-120, default 30"
      },
      "prompt": {
       "type": "string",
       "description": "Music description in natural language"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "job_id": "ab12cd34",
  "status": "queued",
  "status_url": "https://x402.pxbt.app/music/status/ab12cd34"
 }
}
```

## More

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