Skip to content
onelayer.
All tools

Tool detail

Chat completions - metered (pay

Runs an OpenAI-compatible chat completion and settles the exact price quoted for that request based on tokens used.

Categories: LLM inference

Use when

  • run an LLM chat completion and pay only for the tokens sent and used
  • send a large or variable-length prompt without a flat per-call price

Not for

  • not a fixed price per call — settlement is quoted per request and varies with size

Inputs

POST JSON body: { messages: array } (required); optional model, max_tokens, max_completion_tokens, reasoning (effort enum), tools, cache_control, zdr

Inputs undocumented: untyped schema node

Endpoint

Method
POST
URL
https://agent402.tools/v1/metered/chat/completions

Payment

Protocol
x402
Listed price
from 0.001 USDC per call on Base; final charge scales with tokens used
Payment method
exact
Network
eip155:8453
Asset
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.

Source

Record
POST https://agent402.tools/v1/metered/chat/completions
Retrieved
2026-09-30T20:37:07.382Z
Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524
Catalog built
2026-09-30T22:31:58.034Z