Base URL
The inference API is served by the Meridian facilitator:Endpoints
Chat Completion
POST /v1/inference/chat — paid, streams SSEList Models
GET /v1/inference/models — freeList Templates
GET /v1/inference/templates — freeHow payment works
POST /v1/inference/chat is protected by the standard x402 flow:
- Call the endpoint with no payment — you receive
402 Payment Requiredwith the accepted payment options (price, network, asset, receiver). - Sign an EIP-3009
TransferWithAuthorizationfor the quoted amount (a gasless signature — no transaction, no gas needed). - Retry the same request with the signed payment base64-encoded in the
X-PAYMENTheader. - The server verifies and settles the payment through the Meridian facilitator, then streams the completion.
x402-fetch / x402-axios examples that work against this API unchanged.
Models
Templates
Models and templates are sourced live from the upstream provider — always
fetch the current lists from
GET /v1/inference/models and GET /v1/inference/templates
rather than hardcoding them.