{"uid":"cap_X33B8D5bBnsuHpmXY3JzD","slug":"x402factory-ai-solanallmgpth32kzaugyy5mphex62-e31688df","name":"x402factory Solana GPT API (H32KZAUGYY5MPHEX62)","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 H32KZAUGYY5MPHEX62 on Solana. Model gpt-5.1, max_input_tokens=5000, max_output_tokens=5000. Preprompt preview (first 150 chars): \"You are a professional voice-over scriptwriter for short audio newsflashes.  Task: Read the provided list of crypto-related topics and generate a conc\". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.085632 USDC. Estimated input tokens for pricing: 5316.","url":"https://x402factory.ai/solana/llm/gpt/H32KZAUGYY5MPHEX62","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_FlpU58sLEpF0ocUfFgoVg","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 OpenAI GPT models on Solana via x402 micropayments, with support for direct completions, custom agent creation, and agent listing","exampleAgentPrompt":"Using x402factory on Solana, send this message to GPT-5-mini with max 2000 output tokens and a 1000 token input cap: 'Summarize the key risks of DeFi yield farming in 3 bullet points.' Pay with my Solana wallet via USDC.","exampleUseCases":null,"resultDescription":"Returns the GPT model's text completion for the given message, along with token usage details and the USDC amount charged. For action=create, returns a custom_id for the new agent. For action=list, returns up to 100 recently created custom agents associated with the paying wallet.","failureModes":["Input message exceeds max_input_tokens cap — server returns error instead of under-pricing","Insufficient USDC balance in Solana wallet for x402 payment — payment rejected","Invalid model name specified — OpenAI returns model not found error","custom_id not found for action=use — agent lookup failure","Rate limiting or OpenAI API downtime causing completion failure","Malformed request body causing 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need to call OpenAI GPT models and want to pay per-request in USDC via a Solana wallet using the x402 protocol, without managing your own OpenAI API key. Ideal for agents operating on Solana that need dynamic LLM completions billed as micropayments, or for creating and reusing custom preprompted agents stored on x402factory.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:56:04.093Z","isFirstParty":false}