{"uid":"cap_PAW4XdqTatIhBDrru9dq3","slug":"x402factory-ai-solana-gpt-wrapper-ng6ud7s2q86ynsrjyq-cb2b56b0","name":"x402factory-ai Solana GPT Wrapper (NG6UD7S2Q86YNSRJYQ)","description":"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 NG6UD7S2Q86YNSRJYQ on Solana. Model gpt-5-mini, max_input_tokens=1500, max_output_tokens=1500. Preprompt preview (first 150 chars): \"Hi this prompt is having a x handle in it, i want you to reply on this message exactly like this, i need this output for a another agent response you \". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.005140 USDC. Estimated input tokens for pricing: 1599.","url":"https://x402factory.ai/solana/llm/gpt/NG6UD7S2Q86YNSRJYQ","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"unknown","protocol":"x402","network":"base","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_YPivfF4Ugk77zm9yL3AGi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calls GPT models (default gpt-5-mini) via a Solana x402 micropayment-gated API, with optional agent creation and listing actions, priced per token usage in USDC.","exampleAgentPrompt":"Ask gpt-5-mini via x402factory on Solana to explain how proof-of-stake consensus works — use up to 2000 output tokens and cap input at 1000 tokens, paying 0.01 USDC from my Solana wallet.","exampleUseCases":null,"resultDescription":"Returns the GPT model's text response to the input message, along with token usage details and the price charged in USDC. For action=create, returns a custom_id for the newly created agent. For action=list, returns up to 100 recent custom agents associated with the paying wallet.","failureModes":["Input message exceeds max_input_tokens cap — server returns an error instead of processing","Insufficient USDC balance in Solana wallet — x402 payment fails","Invalid model name specified — API returns an error","Malformed request body or missing required fields — returns 400 error","x402 payment header missing or invalid — returns 402 Payment Required"],"whenToPreferThis":"Use this endpoint when you need GPT text generation gated by Solana USDC micropayments via the x402 protocol, especially when building Solana-native agents that require pay-per-use LLM access with transparent token-based pricing. Also use when creating or listing custom preprompt-based agents tied to a Solana wallet identity.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:45:01.359Z","isFirstParty":false}