81trust / 100
Llm Gpt Mini
by gpt-mini-api in AI models & inference
x402 APIPassing, checked 3 h ago
GPT Mini API - pay per call, no API key. OpenAI-format chat completions on openai/gpt-5.4-mini, pinned to OpenAI's own OpenRouter endpoint for reliability. You sign a fixed price computed from your max_tokens; unused tokens are not refunded. 20s server-side timeout with an automatic 2nd-provider retry if the first is slow - never charged if both miss; set your client timeout to 30s. Try GET /llm/gpt-mini/sample.
POST https://x402.agentindex.world/llm/gpt-mini
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 59 ms typical, 59 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://x402.agentindex.world/llm/gpt-mini" \
-H "content-type: application/json" \
-d '{"max_tokens":150,"messages":[{"content":"Summarize in one sentence: The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It was designed by Gustave Eiffel's engineering company and built as the entrance arch for the 1889 World's Fair. Initially criticized by some of France's leading artists and intellectuals for its design, it has become a global cultural icon of France and one of the most recognizable structures in the world, attracting millions of visitors every year.","role":"user"}]}'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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fx402.agentindex.world%2Fllm%2Fgpt-mini
const res = await pay("https://x402.agentindex.world/llm/gpt-mini", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"max_tokens":150,"messages":[{"content":"Summarize in one sentence: The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It was designed by Gustave Eiffel's engineering company and built as the entrance arch for the 1889 World's Fair. Initially criticized by some of France's leading artists and intellectuals for its design, it has become a global cultural icon of France and one of the most recognizable structures in the world, attracting millions of visitors every year.","role":"user"}]}),
});
console.log(await res.json());Example input
{
"max_tokens": 150,
"messages": [
{
"content": "Summarize in one sentence: The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France. It was designed by Gustave Eiffel's engineering company and built as the entrance arch for the 1889 World's Fair. Initially criticized by some of France's leading artists and intellectuals for its design, it has become a global cultural icon of France and one of the most recognizable structures in the world, attracting millions of visitors every year.",
"role": "user"
}
]
}Example output
{
"choices": [
{
"finish_reason": "stop",
"index": 0,
"message": {
"content": "The Eiffel Tower, a wrought-iron tower in Paris built for the 1889 World's Fair, evolved from a controversial design into one of the world's most iconic landmarks.",
"role": "assistant"
}
}
],
"created": 1790781015,
"id": "gen-1790781015-abP5jUyNb5Xs9xjmdtPX",
"model": "openai/gpt-5.4-mini",
"object": "chat.completion",
"provider": "OpenAI",
"usage": {
"completion_tokens": 39,
"cost": 0.0002505,
"prompt_tokens": 100,
"total_tokens": 139
},
"x402_receipt": {
"latency_ms": 1700,
"model_served": "openai/gpt-5.4-mini",
"price_paid_usdc": 0.001,
"upstream": "llm/gpt-mini"
}
}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 |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 59 ms | $0.001 |