# Suno via Locus x402 – AI Music Generation

> Suno via Locus x402 – AI Music Generation is a paid API for AI agents from suno.x402.paywithlocus.com, paid per call via x402, $0.105/call, status unknown (last checked 2026-10-13).

Generates full AI-composed songs with optional custom lyrics, vocals, style tags, and instrumental mode via Suno's latest models, billed per-call over x402.

## Facts

- Endpoint: POST https://suno.x402.paywithlocus.com/suno/generate-music?utm_source=zero.xyz
- Price: $0.105/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/suno-via-locus-x402-ai-music-generation-1f28e3ee
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ilIAWnl7S0AZYIrS-Be03

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 suno-via-locus-x402-ai-music-generation-1f28e3ee -d '<json body>'
```

Example prompt: Create a full song called 'Midnight Drive' — make it a cinematic synthwave track with male vocals, using Suno's V5 model. The lyrics should be about cruising through a neon-lit city at night; avoid anything heavy metal or distorted.

## When to prefer this

Choose this endpoint when you need AI-generated music with fine-grained control over style, lyrics, vocals, and instrumental mode — especially when you want to leverage Suno's state-of-the-art V4/V5 models via a pay-per-call x402 micropayment flow without managing a Suno API account directly. Prefer it over generic TTS or sound-effect APIs when the goal is full song or music track creation.

## Known failure modes

- Invalid or missing required fields in customMode (style, title, prompt) returns a validation error
- Unsupported model string causes rejection
- prompt exceeding character limits (3000–5000 chars) may be truncated or rejected
- Payment failure over x402 protocol blocks the request
- Webhook/callBackUrl unreachable means no notification; must poll statusUrl manually
- Generation may fail or return low-quality output if style and negativeTags conflict heavily

## How this service works

AI music generation — create full songs, generate lyrics, and build custom music tracks with state-of-the-art AI models. Supports custom styles, vocals, and instrumental modes.

## Output

Returns a JSON object with a request ID and a status URL for polling the async generation result, along with payment settlement details (settled USDC, authorized USDC) and a success flag. The actual audio is retrieved by polling the statusUrl once generation completes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "type": "string"
  },
  "style": {
   "type": "string"
  },
  "title": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "customMode": {
   "type": "boolean"
  },
  "callBackUrl": {
   "type": "string"
  },
  "vocalGender": {
   "type": "string"
  },
  "instrumental": {
   "type": "boolean"
  },
  "negativeTags": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "payment": {
   "scheme": "exact",
   "settledUsdc": "0.001000",
   "authorizedMaxUsdc": "0.001000"
  },
  "request": {
   "id": "00000000-0000-4000-8000-000000000000",
   "statusUrl": "/requests/00000000-0000-4000-8000-000000000000"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/suno-via-locus-x402-ai-music-generation-1f28e3ee/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from suno.x402.paywithlocus.com](https://www.zero.xyz/host/suno.x402.paywithlocus.com/llms.txt)
