GPT Mini API
llm_gpt_miniGPT 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"messages": "<messages>"
},
"name": "llm_gpt_mini"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | OpenAI-format chat messages: [{role, content}, ...]. | |
| max_tokens | No | Max completion tokens, capped at 4096 - also bounds the price ceiling. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| model | No | ||
| usage | Yes | ||
| choices | Yes | ||
| x402_receipt | No |