music · x402 endpoint
Create Music with Suede
AI music generation from a text prompt. Creates a complete original song with vocals, melody, and full arrangement as a finished MP3, not a loop or preview. Describe genre, mood, instrumentation, and tempo, supply your own lyrics, request an instrumental, or pin a style tag. Use for soundtracks under video, release-ready artist tracks, podcast and game themes, and demo sketches. Async: poll songId until model_version leaves 'pending'.
Call it at POST https://app.suedeai.ai/create-music. Each call costs $0.50 in USDC on Base, paid with the x402 protocol inside the request itself.
At a glance
| Request | POST https://app.suedeai.ai/create-music |
|---|---|
| Price per call | $0.50 |
| Amount | 500000 atomic units (USDC uses 6 decimals) |
| Asset | USD Coin, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 |
| Network | eip155:8453 (Base mainnet) |
| Scheme | exact |
| Pays to | 0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F |
| Payment timeout | 300 seconds (maxTimeoutSeconds) |
| Response format | application/json |
| Seller docs | app.suedeai.ai/developers |
| Seller listing updated | 2026-11-21 |
| Price source | This hub's /.well-known/x402, serving the seller's document as fetched from app.suedeai.ai at 2026-11-23T10:12:24.538Z |
Request body
Send a JSON body. prompt is required; the other fields are optional.
| Field | Type | Required | Details |
|---|---|---|---|
prompt | string | Yes | Describe the song you want to create. Include genre, mood, instruments, and any specific vibe. Example: 'Upbeat 80s synthwave with driving bass and neon atmosphere' or 'A melancholic acoustic guitar ballad about rain'. |
style | string | No | Specific musical style or genre tag (e.g., 'Hip Hop', 'Ambient', 'Rock'). Helping the AI focus on a specific sound. |
custom_mode | boolean | No | Set to true to use your own lyrics provided in the 'lyrics' field. |
lyrics | string | No | Your custom lyrics. Required if custom_mode is true. |
make_instrumental | boolean | No | If true, generates a track without vocals. |
vocal_gender | string | No | Preferred gender for the vocalist ('m' for male, 'f' for female). One of m, f. |
tags | string | No | Comma-separated keywords to tag the generated file. |
The seller's input template, from its x402 document:
{
"prompt": "<prompt>",
"style": "<style>",
"custom_mode": false,
"lyrics": "<lyrics>",
"make_instrumental": false,
"vocal_gender": "m",
"tags": "<tags>"
}
Response
Example response from the seller's x402 document:
{
"shareUrl": "https://app.suedeai.ai/share/example-track"
}
Call it: 402, pay, retry
- Send the request unpaid. POST the JSON body to
https://app.suedeai.ai/create-music. The endpoint answers402 Payment Requiredwith aPAYMENT-REQUIREDheader: a base64-encoded JSON object whoseacceptslist states the scheme, network, amount, asset andpayToit takes. - Sign the payment. Choose the
exactentry oneip155:8453. On EVM networks the exact scheme uses an EIP-3009transferWithAuthorizationsignature for exactly500000units ($0.50) to0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F. - Retry with the signature. Send the same request again with a
PAYMENT-SIGNATUREheader: the base64-encoded payment payload, carrying the requirements you accepted and the signed authorization. - Read the result. The server verifies and settles the payment and returns the result. A successful response carries a
PAYMENT-RESPONSEheader with the settlement details: transaction hash, network and payer.
Try step 1 from a terminal. Nothing is signed and nothing is spent:
curl -i -X POST https://app.suedeai.ai/create-music \
-H 'content-type: application/json' \
--data '{"prompt":"<prompt>"}'
With the x402 fetch client
The @x402/fetch package from the x402 repository wraps fetch so it handles the 402 response automatically. The same call in TypeScript:
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
const response = await fetchWithPayment("https://app.suedeai.ai/create-music", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"prompt":"<prompt>"}),
});
const result = await response.json();
The same repository publishes Python (pip install x402) and Go (go get github.com/x402-foundation/x402/go/v2) SDKs.
Skyfire tokens
Suede also accepts Skyfire pay+jwt/kya-pay+jwt tokens in the PAYMENT-SIGNATURE header on this endpoint.
Where the payment goes
Payment settles with the seller at https://app.suedeai.ai, to 0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F. discovery.suedeai.ai lists this endpoint and never takes payment: its x402 manifest publishes payTo: null and paymentConfigured: false. The live 402 challenge is the authoritative quote, so read it before signing.
Source
This page is rendered from the same copy of the seller's x402 document that this hub serves at /.well-known/x402, so its price and payment details match that manifest. The original is app.suedeai.ai/.well-known/x402, and the x402 manifest guide explains how the mirror refreshes. The payment steps follow the x402 v2 HTTP transport specification. The seller's TypeScript, Python and Go quickstarts are in Suede Developer Docs: x402, Base, ERC-8004.
Other endpoints
- Agent Video:
POST https://app.suedeai.ai/agent/video, $4.99 per call - Agent Image:
POST https://app.suedeai.ai/agent/image, $0.15 per call - Full x402 catalog