402x402.direct

https://x402factory.ai/solana/llm/gpt/KR92MHBFNW9Z7MST4E

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. Custom LLM agent KR92MHBFNW9Z7MST4E on Solana. Model gpt-5-mini, max_input_tokens=5000, max_output_tokens=5000. Preprompt preview (first 150 chars): "You writing a prompt for a image generator to create a thumbnail of a audio news flash that is based on the topics i send you, please always just answ". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.017028 USDC. Estimated input tokens for pricing: 5068.

aisolanascheme: exact$0.017028

Payment Options

NetworkPriceSchemePay To
solana17028exactAGENTxr77msTPAmGk4DwdumueVAa3SvtyrpTf6tWMeWD

Usage

cURL
curl -X GET "https://x402factory.ai/solana/llm/gpt/KR92MHBFNW9Z7MST4E" \ -H "X-402-Payment: <payment_proof>"
JavaScript
const response = await fetch("https://x402factory.ai/solana/llm/gpt/KR92MHBFNW9Z7MST4E", { 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

x402factory.ai — ai | x402.direct