Messages-format chat over x402, compatible with the Anthropic Messages wire form
Messages-format chat over x402, compatible with the Anthropic Messages wire format: point the Anthropic SDK (or Claude Code / the Agent SDK) at base_url https://agent402.tools/v1/nano and pay $0.003 per call in USDC, no API key, no signup. Same models, caps and price as this tier's /chat/completions route; any model here is served through the Messages wire (Claude natively, others translated). Depth: `effort` (low..max) on Claude 4.7+ and Haiku 5.5, thinking.budget_tokens on older Claude.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
POST https://agent402.tools/v1/nano/messages
| Category | Code and developer |
|---|---|
| Provider host | agent402.tools |
| Networks | algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k, eip155:10, eip155:1329, eip155:137, eip155:143, eip155:42161, eip155:42220, eip155:43114, eip155:4663, eip155:5042, eip155:57073, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp, stellar:pubnet |
| Payment schemes | exact, upto |
| Self-reported calls, 30 days | 65 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-26 | valid payment request | 402 | $0.003 | 344 ms |
| 2026-11-25 | valid payment request | 402 | $0.003 | 376 ms |
| 2026-11-24 | valid payment request | 402 | $0.003 | 366 ms |
| 2026-11-23 | valid payment request | 402 | $0.003 | 305 ms |
| 2026-11-22 | valid payment request | 402 | $0.003 | 302 ms |
| 2026-11-21 | valid payment request | 402 | $0.003 | 609 ms |
| 2026-11-20 | valid payment request | 402 | $0.003 | 312 ms |
| 2026-11-19 | valid payment request | 402 | $0.003 | 368 ms |
| 2026-11-18 | valid payment request | 402 | $0.003 | 316 ms |
| 2026-11-17 | valid payment request | 402 | $0.003 | 222 ms |
| 2026-11-16 | valid payment request | 402 | $0.003 | 361 ms |
| 2026-11-15 | valid payment request | 402 | $0.003 | 306 ms |
| 2026-11-14 | valid payment request | 402 | $0.003 | 318 ms |
| 2026-11-13 | valid payment request | 402 | $0.003 | 306 ms |
| 2026-11-12 | valid payment request | 402 | $0.003 | 298 ms |
| 2026-11-11 | valid payment request | 402 | $0.003 | 307 ms |
| 2026-11-10 | valid payment request | 402 | $0.003 | 320 ms |
| 2026-11-09 | valid payment request | 402 | $0.003 | 301 ms |
| 2026-11-08 | valid payment request | 402 | $0.003 | 318 ms |
| 2026-11-07 | valid payment request | 402 | $0.003 | 367 ms |
| 2026-11-06 | valid payment request | 402 | $0.003 | 415 ms |
| 2026-11-05 | valid payment request | 402 | $0.003 | 344 ms |
| 2026-11-04 | valid payment request | 402 | $0.003 | 393 ms |
| 2026-11-03 | valid payment request | 402 | $0.003 | 361 ms |
| 2026-11-02 | valid payment request | 402 | $0.003 | 376 ms |
| 2026-11-01 | valid payment request | 402 | $0.003 | 523 ms |
| 2026-10-31 | valid payment request | 402 | $0.003 | 464 ms |
| 2026-10-29 | valid payment request | 402 | $0.003 | 1145 ms |
Example input (from the provider)
{
"body": {
"max_tokens": 256,
"messages": [
{
"content": "Summarize x402 in one sentence.",
"role": "user"
}
],
"model": "google/gemini-3.1-flash-lite"
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"effort": {
"type": "string"
},
"max_tokens": {
"type": "integer"
},
"messages": {
"type": "array"
},
"model": {
"type": "string"
},
"stream": {
"type": "boolean"
},
"system": {
"type": "string"
},
"thinking": {
"type": "object"
},
"tools": {
"type": "array"
},
"zdr": {
"type": "boolean"
}
},
"required": [
"max_tokens",
"messages"
]
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}