Overview
Base GPT wrapper API using x402 payments. Default direct call: model gpt-5-mini, max_output_tokens=2000, fixed price 0.01 USDC for up to 1000 input tokens. For all other settings the price is computed per model as (input_tokens * input_price_per_million + max_output_tokens * output_price_per_million) / 1,000,000, with a minimum of 0.001 USDC and always rounded up to 6 decimals. Optional max_input_tokens lets you cap the input tokens used for pricing; if the message is longer than this cap the server returns an error instead of under-pricing. Optional action=message (or omitting action) performs a direct GPT call with the given message. Optional action=create creates a custom agent with the given message as preprompt for 0.001 USDC (no OpenAI call), stores a base_price_usdc using (max_input_tokens_for_agent or 1000) + preprompt + max_output_tokens, and returns a custom_id. Optional action=list lists up to 100 recent custom agents for the paying wallet for 0.001 USDC without calling OpenAI. Custom agents can be called via POST /base/llm/gpt with custom_id, or POST /base/llm/gpt/{custom_id}. Each custom agent has a fixed price per call based on its stored preprompt, model, max_output_tokens and max_input_tokens; if the runtime message is longer than max_input_tokens the server returns an error. This specific request uses model gpt-5-mini with max_output_tokens=2000. Pricing mode: default. Prepaid price (x402) for this request: 0.010000 USDC.
Protocol
x402
Price
$0.01
Payment Asset
USD Coin
Payment Network
Base
Category
crypto/wallet
Provider
x402factory
Source
bazaar
Indexed
2026-03-02 01:12:43
Health
Status
healthy
Latency (p50)
428ms
Uptime (30d)
100.0%
Reliability Score
95/100
Last Checked
2026-03-20 17:59:20
Last Healthy
2026-03-20 17:59:20
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
Valid
Asset Verified
—
Facilitator
—
Input Schema
{
"bodyFields": {
"action": {
"description": "Optional action. Use 'message' (or omit action) for a direct GPT call, 'create' to create a custom agent with a preprompt, or 'list' to list your custom agents without calling OpenAI.",
"enum": [
"message",
"create",
"list"
],
"required": false,
"type": "string"
},
"custom_id": {
"description": "Optional custom agent ID returned from action=create. When set, the preprompt + model from that agent are used. Can also be provided via URL: /base/llm/gpt/{custom_id}.",
"required": false,
"type": "string"
},
"max_input_tokens": {
"description": "Optional hard ceiling on input tokens used for pricing. For normal calls this caps the user message tokens. For custom agents this caps the user message tokens on top of the fixed preprompt. If the actual message is longer than this value, the server returns an error instead of under-pricing.",
"required": false,
"type": "number"
},
"max_output_tokens": {
"description": "Maximum number of output tokens. Default 2000. Higher limits increase the prepaid price because x402 payments are upfront.",
"required": false,
"type": "number"
},
"message": {
"description": "User message for the LLM. Required for normal GPT calls. For action=create this becomes the preprompt that is stored for the custom agent.",
"required": false,
"type": "string"
},
"model": {
"description": "Logical model name. One of: gpt-5.1, gpt-5-mini (default), gpt-5-nano, gpt-5-pro. Pricing is per model using per-million token rates.",
"enum": [
"gpt-5.1",
"gpt-5-mini",
"gpt-5-nano",
"gpt-5-pro"
],
"required": false,
"type": "string"
}
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"action": {
"description": "Action performed: 'call' for direct GPT calls, 'call_custom' for custom agents, 'create' for new custom agents, 'list' for listing your custom agents.",
"type": "string"
},
"agents": {
"description": "For action=list: up to 100 recent custom agents for the paying wallet. Each entry includes custom_id, model, max_output_tokens, base_price_usdc, max_input_tokens, preprompt_preview (first 250 chars), created_at and updated_at.",
"type": "array"
},
"base_price_usdc": {
"description": "For action=create, the stored base price for the agent (max_input_tokens_for_agent + preprompt + max_output_tokens) using the selected model.",
"type": "number"
},
"custom_id": {
"description": "Custom agent ID used for this call, if any. For action=create this is the newly created agent ID.",
"type": "string"
},
"estimated_input_tokens": {
"description": "Estimated number of input tokens used for pricing. For custom agents this includes both preprompt and the agent's configured max_input_tokens.",
"type": "number"
},
"max_output_tokens": {
"description": "Maximum output tokens used for this call (after applying any defaults and limits).",
"type": "number"
},
"model": {
"description": "Model used for this call",
"type": "string"
},
"ok": {
"description": "True on success",
"type": "boolean"
},
"preprompt": {
"description": "For action=create, the stored preprompt text. For custom calls, the preprompt used for the agent.",
"type": "string"
},
"price_usdc": {
"description": "Price charged for this call in USDC (6 decimals, rounded up). Minimum is 0.001 USDC. Default direct calls cost 0.01 USDC for up to 1000 input tokens with gpt-5-mini and max_output_tokens=2000.",
"type": "number"
},
"reply": {
"description": "For GPT calls, the assistant reply text from OpenAI.",
"type": "string"
}
}
Recent Health Checks
| Time |
Status |
HTTP |
Latency |
Error |
| 2026-03-20 17:59:20 |
healthy |
402 |
424ms |
|
| 2026-03-20 17:21:22 |
healthy |
402 |
390ms |
|
| 2026-03-20 16:15:09 |
healthy |
402 |
428ms |
|
| 2026-03-20 15:39:05 |
healthy |
402 |
348ms |
|
| 2026-03-20 14:35:43 |
degraded |
402 |
969ms |
|
| 2026-03-20 14:04:45 |
healthy |
402 |
500ms |
|
| 2026-03-20 13:07:51 |
healthy |
402 |
499ms |
|
| 2026-03-20 11:48:41 |
healthy |
402 |
412ms |
|
| 2026-03-20 11:06:28 |
healthy |
402 |
505ms |
|
| 2026-03-20 09:49:38 |
healthy |
402 |
382ms |
|
| 2026-03-20 08:35:17 |
degraded |
402 |
1020ms |
|
| 2026-03-20 08:02:16 |
healthy |
402 |
360ms |
|
| 2026-03-20 06:56:29 |
healthy |
402 |
481ms |
|
| 2026-03-20 05:54:10 |
healthy |
402 |
476ms |
|
| 2026-03-20 04:34:38 |
healthy |
402 |
418ms |
|
| 2026-03-20 03:51:35 |
healthy |
402 |
288ms |
|
| 2026-03-20 02:56:27 |
healthy |
402 |
522ms |
|
| 2026-03-20 02:05:37 |
healthy |
402 |
430ms |
|
| 2026-03-20 00:51:14 |
healthy |
402 |
412ms |
|
| 2026-03-19 23:57:30 |
healthy |
402 |
373ms |
|