{"uid":"cap_jttGoztWiyfqrAcZsB-ZW","slug":"x402factory-ai-solanallmgptj38t6zgancnb8slzjz-0a38b21b","name":"x402factory-ai Solana GPT (J38T6ZGANCNB8SLZJZ)","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=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 J38T6ZGANCNB8SLZJZ on Solana. Model gpt-5-mini, max_input_tokens=5000, max_output_tokens=5000. Preprompt preview (first 150 chars): \"can yes extract the atrifact url from this output, only reply with the image url nothing else\". Pricing mode: agent-per-token. Prepaid price (x402) for this request: 0.017013 USDC. Estimated input tokens for pricing: 5031.","url":"https://x402factory.ai/solana/llm/gpt/J38T6ZGANCNB8SLZJZ","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_dATxUe5rBPhuLKTIuW1YB","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":"Exposes a GPT LLM API endpoint on Solana, paid via x402 micropayments in USDC, supporting direct chat completions and custom agent creation/listing","exampleAgentPrompt":"Ask the x402factory Solana GPT endpoint to explain the benefits of proof-of-stake consensus using gpt-5-mini, with a max output of 500 tokens and a 1000-token input cap, and pay the USDC fee automatically via x402.","exampleUseCases":null,"resultDescription":"Returns a GPT text completion for direct calls, or a custom_id and stored base_price_usdc for action=create, or a list of up to 100 recent custom agents for action=list. Pricing details and token counts may also be returned.","failureModes":["Input tokens exceed optional max_input_tokens cap — server returns error instead of under-pricing","Insufficient USDC balance for x402 payment — payment rejected","Invalid or expired custom_id — agent not found","Unsupported model name — OpenAI API error propagated","Message too long for selected model context window","x402 facilitator unavailable — payment cannot be processed"],"whenToPreferThis":"Use this endpoint when you need pay-per-use GPT completions billed in USDC over Solana via x402 micropayments, especially when you want dynamic token-based pricing, want to create or invoke persistent custom preprompted agents identified by a custom_id, or are building Solana-native AI pipelines that require on-chain payment settlement.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:46:35.429Z","isFirstParty":false}