Chat completions - metered (pay · agent402.tools
OpenAI-compatible chat completions priced
OpenAI-compatible chat completions priced from the request itself: the 402 quotes this exact body, from $0.001, and a buyer on the upto scheme settles the tokens actually used under that quote. Use it when an agent sends large or variable prompts and wants to pay for what it sends, not a flat tier.
Sample input
input4 keys
body3 keys
max_tokens5
messages[…]1 item
model"openai/gpt-4o-mini"
bodyType"json"
method"POST"
type"http"
inputobject, 4 keysSample response
response6 keys
choices1 item
0{ finish_reason, index, message }3 keys
created1750000000
id"gen-…"
model"openai/gpt-4o-mini"
object"chat.completion"
usage3 keys
completion_tokens1
prompt_tokens12
total_tokens13
responseobject, 6 keysTrack record
- Paid calls, last 30 days
- 590
- Buyers, last 30 days
- 8
- Last paid call
Reported by the x402 directory.