Quick start
Make a first paid call in one command. You need a wallet that can pay USDC on Base (x402) or USDC.e on Tempo (MPP), and a client that handles HTTP 402.
1. Pick a route
| Service | Route | Price per call | Limits |
|---|---|---|---|
| Chat - nano | chat/nano (MPP) / chat-nano (x402) | $0.001 | up to 1,000 input / 256 output tokens |
| Chat - small | chat/small (MPP) / chat-small (x402) | $0.002 | up to 8,000 input / 1,024 output tokens |
| Cited brief | brief | $0.002 | a brief that cites only the quotes you supply |
2. x402 on Base
N=$(openssl rand -base64 24 | tr '+/' '-_' | tr -d '=')
npx agentcash fetch https://pay.omnidev.tech/x402/chat-nano \
--method POST --header 'content-type: application/json' \
--header "X-Omni-Client-Nonce: $N" \
--body '{"prompt":"hello"}' --payment-protocol x402
3. MPP on Tempo
N=$(openssl rand -base64 24 | tr '+/' '-_' | tr -d '=')
npx mppx --method POST -H 'content-type: application/json' \
-H "X-Omni-Client-Nonce: $N" -d '{"prompt":"hello"}' \
https://pay.omnidev.tech/v1/chat/nano
Request bodies
- Chat routes:
{"messages":[{"role":"user","content":"..."}], "max_tokens": 128}or{"prompt":"..."}. - Brief route:
{"query":"...","citations":[{"url":"https://...","quote":"..."}]}. The brief cites only the quotes you supply.
Every paid request must carry X-Omni-Client-Nonce. See Payments and nonces.
Full contract: openapi.json · API llms.txt.