image · x402 endpoint
Agent Image
AI image generation from a text prompt. Generate album and single cover art, podcast and video thumbnails, social and campaign graphics, concept art, storyboard frames, product shots, and article illustrations. Returns one hosted still image as PNG or JPEG in square, portrait, or widescreen framing (1:1, 4:5, 9:16, 16:9, 21:9). Async by default: poll the returned pollUrl for imageUrl, or pass ?async=false to block.
Call it at POST https://app.suedeai.ai/agent/image. Each call costs $0.15 in USDC on Base, paid with the x402 protocol inside the request itself.
At a glance
| Request | POST https://app.suedeai.ai/agent/image |
|---|---|
| Price per call | $0.15 |
| Amount | 150000 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:00:16.352Z |
Request body
Send a JSON body. prompt is required; the other fields are optional.
| Field | Type | Required | Details |
|---|---|---|---|
prompt | string | Yes | Visual prompt describing the image to generate. |
aspectRatio | string | No | Desired frame aspect ratio. One of 1:1, 9:16, 16:9, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9. |
outputFormat | string | No | Output image format. One of png, jpeg. |
The seller's input template, from its x402 document:
{
"prompt": "<prompt>",
"aspectRatio": "1:1",
"outputFormat": "png"
}
Response
Example response from the seller's x402 document:
{
"jobId": "image-job-example",
"status": "queued",
"provider": "suede",
"pollUrl": "https://app.suedeai.ai/agent/image/image-job-example"
}
Call it: 402, pay, retry
- Send the request unpaid. POST the JSON body to
https://app.suedeai.ai/agent/image. 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 exactly150000units ($0.15) 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/agent/image \
-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/agent/image", {
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
- Create Music with Suede:
POST https://app.suedeai.ai/create-music, $0.50 per call - Agent Video:
POST https://app.suedeai.ai/agent/video, $4.99 per call - Full x402 catalog