82trust / 100
Metered Responses
by Responses metered (OpenAI in AI models & inference
x402 APIPassing, checked 2 h ago
The OpenAI Responses wire priced from the request itself: each 402 quotes this exact body, from $0.001, and upto buyers settle actual usage under it. Use it when an agent built on the Responses API or the OpenAI Agents SDK wants per-call payment sized to what it sends.
POST https://agent402.tools/v1/metered/responses
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 188 ms typical, 188 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/v1/metered/responses" \
-H "content-type: application/json" \
-d '{"input":"Summarize x402 in one sentence.","model":"anthropic/claude-haiku-4.5"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fv1%2Fmetered%2Fresponses
const res = await pay("https://agent402.tools/v1/metered/responses", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"input":"Summarize x402 in one sentence.","model":"anthropic/claude-haiku-4.5"}),
});
console.log(await res.json());Example input
{
"input": "Summarize x402 in one sentence.",
"model": "anthropic/claude-haiku-4.5"
}Example output
{
"id": "resp_…",
"model": "openai/gpt-4o-mini",
"object": "response",
"output": [
{
"content": [
{
"annotations": [],
"text": "x402 is an HTTP-native way for agents to pay per request with USDC.",
"type": "output_text"
}
],
"id": "msg_…",
"role": "assistant",
"status": "completed",
"type": "message"
}
],
"status": "completed",
"usage": {
"input_tokens": 14,
"output_tokens": 18,
"total_tokens": 32
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 199 ms | $0.0067 |
| 7 h ago | Passed | 402 | 188 ms | $0.0067 |