https://x402factory.ai/solana/llm/gpt
by x402factory.ai
Solana 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 /solana/llm/gpt with custom_id, or POST /solana/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=5200. Pricing mode: create. Prepaid price (x402) for this request: 0.001000 USDC. Estimated input tokens for pricing: 5061. For the created agent, base price (1000 input tokens + preprompt + max_output_tokens) is 0.017625 USDC.
Payment Options
| Network | Price | Scheme | Pay To |
|---|---|---|---|
| solana | 1000 | exact | AGENTxr77msTPAmGk4DwdumueVAa3SvtyrpTf6tWMeWD |
Usage
curl -X GET "https://x402factory.ai/solana/llm/gpt" \
-H "X-402-Payment: <payment_proof>"const response = await fetch("https://x402factory.ai/solana/llm/gpt", {
headers: {
"X-402-Payment": paymentProof,
},
});
const data = await response.json();Details
- Type
- http
- x402 Version
- 1
- MIME Type
- application/json
- Last Seen
- 2/12/2026
- Indexed
- 2/12/2026
Facilitator
PayAI
https://facilitator.payai.network