Suede Producer Discovery

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

RequestPOST https://app.suedeai.ai/create-music
Price per call$0.50
Amount500000 atomic units (USDC uses 6 decimals)
AssetUSD Coin, 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Networkeip155:8453 (Base mainnet)
Schemeexact
Pays to0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F
Payment timeout300 seconds (maxTimeoutSeconds)
Response formatapplication/json
Seller docsapp.suedeai.ai/developers
Seller listing updated2026-11-21
Price sourceThis 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.

FieldTypeRequiredDetails
promptstringYesDescribe 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'.
stylestringNoSpecific musical style or genre tag (e.g., 'Hip Hop', 'Ambient', 'Rock'). Helping the AI focus on a specific sound.
custom_modebooleanNoSet to true to use your own lyrics provided in the 'lyrics' field.
lyricsstringNoYour custom lyrics. Required if custom_mode is true.
make_instrumentalbooleanNoIf true, generates a track without vocals.
vocal_genderstringNoPreferred gender for the vocalist ('m' for male, 'f' for female). One of m, f.
tagsstringNoComma-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

  1. Send the request unpaid. POST the JSON body to https://app.suedeai.ai/create-music. The endpoint answers 402 Payment Required with a PAYMENT-REQUIRED header: a base64-encoded JSON object whose accepts list states the scheme, network, amount, asset and payTo it takes.
  2. Sign the payment. Choose the exact entry on eip155:8453. On EVM networks the exact scheme uses an EIP-3009 transferWithAuthorization signature for exactly 500000 units ($0.50) to 0x10FF767043A1723E0BB5B9207bC37D3442cC9E4F.
  3. Retry with the signature. Send the same request again with a PAYMENT-SIGNATURE header: the base64-encoded payment payload, carrying the requirements you accepted and the signed authorization.
  4. Read the result. The server verifies and settles the payment and returns the result. A successful response carries a PAYMENT-RESPONSE header 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