{"id":"bedc2fd1-917c-43ea-9d55-da29d4b8df0e","shortId":"p4VK7C","kind":"x402","title":"Pay-per-use GPT endpoint on Base via x402 — no API keys, just USDC micropayments.","tagline":"Pay-per-use GPT endpoint on Base via x402 — no API keys, just USDC micropayments.","description":"x402Factory's GPT endpoint exposes OpenAI GPT models (gpt-5.1, gpt-5-mini, gpt-5-nano, gpt-5-pro) behind an x402 payment wall on the Base network. Callers pay in USDC per request with no accounts or API keys required — the payment itself serves as authentication. The default call uses gpt-5-mini with up to 1000 input tokens and 2000 max output tokens for a fixed price of 0.01 USDC. For non-default configurations, pricing is computed as (input_tokens × input_price_per_million + max_output_tokens × output_price_per_million) / 1,000,000, with a minimum of 0.001 USDC, always rounded up to 6 decimals.\n\nBeyond simple message calls, the endpoint supports three actions: `message` (or omit action) for a direct GPT completion, `create` to store a custom agent with a preprompt for 0.001 USDC, and `list` to retrieve up to 100 recent custom agents for the paying wallet for 0.001 USDC. Custom agents are reusable — once created, they can be invoked via `custom_id` in the request body or as a URL path parameter (`/base/llm/gpt/{custom_id}`), each call priced based on the agent's stored preprompt, model, max_output_tokens, and max_input_tokens.\n\nThe endpoint returns a well-defined JSON schema including fields like `ok`, `action`, `model`, `price_usdc`, `reply`, and `custom_id`. An optional `max_input_tokens` parameter lets callers cap input token pricing; if the actual message exceeds this cap, the server returns an error rather than under-pricing. The x402 challenge is live on Base (chain ID 8453) and payments settle to address 0x402FaCcC3fAeb72351CC2b68C7966faF5f22B0d4 using the USDC contract at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913.","tags":[],"capabilities":["llm-completion","gpt-5-mini","gpt-5.1","gpt-5-nano","gpt-5-pro","custom-agent-creation","custom-agent-listing","x402-payment","usdc-micropayment","base-network","per-request-pricing","no-api-key"],"categories":["llm","payments"],"synonyms":["GPT API","OpenAI wrapper","pay-per-use LLM","x402 GPT","micropayment LLM","USDC GPT","Base chain LLM","agent-ready GPT","serverless GPT","x402factory"],"warnings":["No dedicated documentation pages found — /docs, /api, /pricing, /README all return 404","No OpenAPI specification available","Response example is inferred from the outputSchema, not from an actual successful call","Model names reference 'gpt-5' variants which may be internal aliases; actual OpenAI model mappings are not documented"],"endpointUrl":"https://x402factory.ai/base/llm/gpt","protocol":"x402","transport":"http","auth":{"type":"x402","details":[{"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","extra":{"kind":"llm-gpt","name":"USD Coin","eip712":{"name":"USD Coin","version":"2"},"chainId":8453,"iconUrl":"https://x402factory.ai/x402factoryfavoicon.jpg","pricing":{"mode":"default","model":"gpt-5-mini","amount":0.01,"network":"Base","currency":"USDC","minAmount":0.001,"isAgentCall":false,"defaultAmount":0.01,"isCreateAction":false,"maxOutputTokens":2000},"version":"2","decimals":6,"avatarUrl":"https://x402factory.ai/x402factoryfavoicon.jpg","serviceUrl":"https://x402factory.ai","serviceName":"x402Factory","serviceDescription":"x402Factory Base endpoints for agents (notes, LLMs, TTS, Telegram, coin prices, payments)."},"payTo":"0x402FaCcC3fAeb72351CC2b68C7966faF5f22B0d4","scheme":"exact","network":"base","mimeType":"application/json","resource":"https://x402factory.ai/base/llm/gpt","description":"Base 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 /base/llm/gpt with custom_id, or POST /base/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=2000. Pricing mode: default. Prepaid price (x402) for this request: 0.010000 USDC.","outputSchema":{"input":{"type":"http","method":"POST","bodyType":"json","bodyFields":{"model":{"enum":["gpt-5.1","gpt-5-mini","gpt-5-nano","gpt-5-pro"],"type":"string","required":false,"description":"Logical model name. One of: gpt-5.1, gpt-5-mini (default), gpt-5-nano, gpt-5-pro. Pricing is per model using per-million token rates."},"action":{"enum":["message","create","list"],"type":"string","required":false,"description":"Optional action. Use 'message' (or omit action) for a direct GPT call, 'create' to create a custom agent with a preprompt, or 'list' to list your custom agents without calling OpenAI."},"message":{"type":"string","required":false,"description":"User message for the LLM. Required for normal GPT calls. For action=create this becomes the preprompt that is stored for the custom agent."},"custom_id":{"type":"string","required":false,"description":"Optional custom agent ID returned from action=create. When set, the preprompt + model from that agent are used. Can also be provided via URL: /base/llm/gpt/{custom_id}."},"max_input_tokens":{"type":"number","required":false,"description":"Optional hard ceiling on input tokens used for pricing. For normal calls this caps the user message tokens. For custom agents this caps the user message tokens on top of the fixed preprompt. If the actual message is longer than this value, the server returns an error instead of under-pricing."},"max_output_tokens":{"type":"number","required":false,"description":"Maximum number of output tokens. Default 2000. Higher limits increase the prepaid price because x402 payments are upfront."}}},"output":{"ok":{"type":"boolean","description":"True on success"},"model":{"type":"string","description":"Model used for this call"},"reply":{"type":"string","description":"For GPT calls, the assistant reply text from OpenAI."},"action":{"type":"string","description":"Action performed: 'call' for direct GPT calls, 'call_custom' for custom agents, 'create' for new custom agents, 'list' for listing your custom agents."},"agents":{"type":"array","description":"For action=list: up to 100 recent custom agents for the paying wallet. Each entry includes custom_id, model, max_output_tokens, base_price_usdc, max_input_tokens, preprompt_preview (first 250 chars), created_at and updated_at."},"custom_id":{"type":"string","description":"Custom agent ID used for this call, if any. For action=create this is the newly created agent ID."},"preprompt":{"type":"string","description":"For action=create, the stored preprompt text. For custom calls, the preprompt used for the agent."},"price_usdc":{"type":"number","description":"Price charged for this call in USDC (6 decimals, rounded up). Minimum is 0.001 USDC. Default direct calls cost 0.01 USDC for up to 1000 input tokens with gpt-5-mini and max_output_tokens=2000."},"base_price_usdc":{"type":"number","description":"For action=create, the stored base price for the agent (max_input_tokens_for_agent + preprompt + max_output_tokens) using the selected model."},"max_output_tokens":{"type":"number","description":"Maximum output tokens used for this call (after applying any defaults and limits)."},"estimated_input_tokens":{"type":"number","description":"Estimated number of input tokens used for pricing. For custom agents this includes both preprompt and the agent's configured max_input_tokens."}}},"maxAmountRequired":"10000","maxTimeoutSeconds":60}]},"qualityScore":"0.780","qualityRationale":"The x402 challenge is live and returns a detailed outputSchema with full input/output field descriptions and pricing logic. However, there are no separate docs, no OpenAPI spec, and the crawled /docs, /api, /pricing, and /README pages all return 404, so documentation beyond the challenge payload is absent.","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"anthropic/claude-opus-4.6","enrichmentVersion":2,"enrichedAt":"2026-04-18T19:30:34.209Z","embedding":[-0.039611816,-0.024337769,0.057403564,-0.00737381,0.007873535,-0.044830322,-0.025909424,0.05404663,0.057250977,-0.083740234,0.027816772,-0.034057617,-0.02319336,-0.056793213,-0.048095703,-0.024780273,-0.021881104,-0.03555298,-0.035705566,0.036254883,0.0546875,0.010726929,-0.015701294,0.020965576,-0.02468872,-0.015853882,0.00274086,0.020019531,-0.011512756,-0.030227661,0.040802002,-0.018966675,-0.04901123,-0.021621704,-0.0037136078,0.0024986267,0.025772095,0.059661865,0.027160645,0.012969971,0.01499939,-0.044921875,0.0067329407,0.0029354095,-0.04714966,0.015182495,0.02330017,-0.011878967,-0.023666382,-0.008346558,-0.008323669,0.045288086,-0.0060577393,-0.005710602,-0.012229919,-0.013000488,-0.030273438,-0.021057129,0.04800415,-0.0019273758,-0.029342651,-0.046417236,0.008583069,0.005180359,0.0035095215,0.028701782,-0.043151855,0.058624268,-0.012054443,0.07116699,0.024154663,0.02468872,-0.006164551,-0.009689331,-0.0054092407,-0.01739502,0.005050659,0.061187744,0.0015144348,-0.052520752,0.00030183792,-0.04360962,-0.03164673,-0.019821167,-0.011650085,-0.029205322,-0.037109375,0.017349243,-0.046417236,0.0024375916,-0.0619812,-0.017089844,-0.024261475,0.0006608963,0.021255493,-0.011962891,-0.0025577545,0.018127441,0.018478394,0.028076172,0.018295288,-0.034698486,0.021865845,0.0025787354,0.062927246,0.037597656,0.011940002,0.028335571,-0.044036865,0.00095033646,-0.07720947,0.0141067505,-0.017791748,-0.02041626,0.017196655,-0.003458023,-0.016403198,0.023147583,-0.021026611,-0.009819031,-0.028808594,0.06561279,0.03286743,-0.022094727,0.012718201,-0.028366089,-0.0067253113,-0.009315491,0.00031781197,-0.0055770874,-0.009468079,0.030090332,0.032409668,-0.02468872,-0.008880615,0.020629883,-0.03250122,-0.0052261353,-0.07409668,-0.018356323,0.014160156,-0.041503906,0.010917664,0.048614502,-0.09094238,-0.0000885725,-0.07421875,0.008407593,-0.04714966,0.006542206,0.014953613,-0.013366699,-0.020980835,-0.03074646,-0.018493652,-0.043121338,-0.032043457,0.06677246,0.00819397,-0.0063438416,0.00035333633,0.038757324,0.04046631,0.005592346,0.0024909973,0.060150146,0.0014543533,-0.03225708,-0.0725708,-0.03237915,0.013786316,-0.00737381,-0.04272461,0.024520874,-0.006591797,-0.073913574,-0.05709839,0.014602661,-0.034942627,-0.056640625,-0.022369385,-0.022827148,-0.021377563,-0.004917145,-0.056365967,-0.013786316,-0.027954102,0.030807495,0.00027632713,0.019180298,0.040618896,-0.01979065,0.07635498,0.03805542,-0.013221741,-0.019577026,0.03765869,-0.0259552,0.052764893,-0.0003888607,0.02130127,-0.0068893433,0.039489746,0.03656006,-0.0028381348,-0.019241333,0.009361267,-0.026443481,-0.031555176,-0.0071640015,0.04095459,-0.00073480606,-0.0009832382,-0.020339966,-0.048553467,-0.02468872,-0.01058197,-0.0018339157,-0.0011310577,0.066467285,-0.007949829,0.016052246,0.013412476,0.018569946,-0.03451538,0.04324341,0.020904541,0.0019550323,-0.00023365021,-0.013259888,-0.0116119385,-0.005836487,-0.03692627,-0.025543213,-0.028137207,0.014053345,0.008766174,-0.0056266785,0.0025482178,-0.04397583,-0.0026187897,-0.03729248,0.0025177002,-0.014434814,0.023483276,-0.0037460327,-0.03842163,-0.06341553,0.05291748,0.020217896,0.025436401,-0.008903503,-0.017486572,-0.011222839,-0.008987427,-0.032562256,0.037109375,0.04525757,-0.022079468,-0.017669678,0.04916382,-0.0211792,-0.03543091,0.010215759,0.010116577,-0.0009255409,-0.00919342,0.02355957,-0.032073975,-0.032043457,0.04046631,0.013465881,0.031219482,-0.021209717,-0.03302002,-0.024780273,-0.0072364807,-0.00073957443,-0.03930664,-0.0011281967,-0.0181427,0.008674622,0.06286621,-0.0044288635,0.0050201416,0.0009675026,0.03152466,0.0016593933,-0.00078725815,-0.0017271042,0.012184143,0.03567505,0.04107666,-0.053619385,0.029205322,0.004962921,0.06652832,-0.029174805,0.013687134,-0.0014190674,0.00982666,0.030380249,-0.02229309,-0.08392334,-0.0028018951,0.037719727,0.023895264,0.015609741,0.02418518,-0.004486084,-0.005519867,0.058929443,-0.034820557,0.0044822693,0.030227661,0.016220093,0.04345703,0.010787964,-0.04473877,-0.025665283,0.010551453,-0.018447876,0.008979797,-0.026947021,0.022735596,0.01360321,0.030639648,-0.02949524,-0.0011758804,-0.0068359375,0.016479492,0.0035324097,-0.0036239624,0.013557434,0.014312744,0.025344849,0.0035037994,0.002779007,0.005126953,0.029708862,-0.027664185,0.0023899078,-0.018661499,-0.031341553,-0.03225708,0.0029125214,0.04675293,0.03390503,0.020126343,0.013511658,-0.02229309,0.009231567,-0.0015172958,-0.007209778,0.040222168,-0.015930176,0.007835388,-0.049743652,-0.043029785,-0.029281616,-0.062927246,0.06665039,0.009475708,-0.005256653,0.04071045,0.02204895,-0.008850098,-0.021530151,-0.011390686,-0.025268555,-0.0027675629,0.025909424,-0.023529053,-0.022094727,0.013648987,-0.008895874,-0.0028190613,0.03125,0.034332275,0.006454468,0.06304932,0.04660034,0.04196167,0.011505127,0.011390686,0.022338867,0.022644043,0.007358551,-0.029464722,-0.015090942,0.05178833,-0.043426514,-0.0049552917,-0.027740479,0.03945923,0.045806885,0.07965088,0.006286621,0.009170532,0.051452637,-0.019592285,0.011138916,-0.024414062,-0.02255249,-0.03201294,-0.044189453,0.027999878,0.024597168,0.005241394,0.0015144348,0.02810669,0.02708435,0.001156807,-0.044555664,0.05105591,-0.003993988,-0.007293701,0.012718201,0.022994995,0.049835205,0.025741577,-0.038757324,-0.0056114197,0.0060691833,-0.04827881,-0.0077590942,0.00409317,-0.02142334,-0.019210815,-0.04977417,-0.016555786,0.0134887695,0.015060425,-0.07922363,0.0040512085,-0.030014038,0.035186768,0.030807495,-0.022247314,0.0075683594,-0.0057792664,-0.007820129,-0.03692627,0.008476257,-0.068847656,-0.024978638,0.00699234,-0.04598999,0.016571045,-0.0340271,-0.0102005005,-0.014259338,0.03845215,0.0003387928,-0.025115967,-0.04269409,0.0619812,0.016723633,0.026901245,-0.00045990944,0.054626465,0.0105896,0.004737854,0.013000488,0.0042915344,-0.00037574768,-0.037902832,0.03111267,-0.013183594,0.0059890747,0.008354187,-0.033935547,-0.011940002,-0.03125,-0.009880066,-0.0287323,0.019454956,-0.010154724,-0.018569946,0.01108551,-0.0059509277,-0.033447266,-0.050964355,-0.012336731,-0.012512207,0.10522461,0.0022449493,-0.008834839,-0.032806396,-0.0066719055,0.010856628,-0.013412476,0.009719849,-0.015129089,0.03463745,0.009277344,0.005214691,-0.030960083,-0.040252686,0.019088745,-0.025299072,-0.015777588,-0.011306763,0.019882202,-0.018997192,0.009132385,0.0046844482,0.0007901192,-0.0011062622,0.04119873,-0.029022217,0.022720337,-0.008514404,-0.007686615,-0.026229858,0.031585693,-0.026397705,0.03543091,-0.029647827,0.008255005,0.016174316,0.033203125,-0.011001587,-0.021255493,0.0093688965,-0.011932373,-0.034332275,-0.08874512,0.023834229,-0.0014753342,0.02734375,0.009307861,0.0014877319,-0.0003569126,-0.040161133,-0.00011664629,0.014091492,-0.021011353,-0.033569336,-0.033477783,-0.035980225,0.0069389343,-0.0020809174,-0.006336212,0.011955261,0.00038576126,0.033233643,-0.00466156,-0.02508545,0.031982422,0.036071777,-0.03375244,0.036010742,-0.0013341904,0.036376953,0.01020813,-0.005432129,-0.011146545,0.033569336,0.015701294,0.012962341,0.014442444,0.04550171,0.001326561,-0.00409317,-0.0046653748,0.012794495,-0.0043296814,-0.026168823,0.004890442,-0.000151515,0.0423584,0.015060425,-0.015716553,0.012619019,-0.0039634705,-0.025894165,0.010574341,0.0025539398,0.0103302,-0.03717041,-0.0013437271,0.029312134,0.041931152,-0.031707764,-0.020965576,-0.030181885,0.04824829,0.013946533,0.045166016,-0.01033783,-0.014205933,-0.0124053955,0.012390137,-0.02041626,-0.018463135,0.014129639,0.016601562,-0.0055007935,-0.0009698868,0.013694763,-0.015945435,-0.05441284,0.019378662,-0.015609741,-0.020889282,0.01499939,0.024658203,0.00881958,-0.013015747,0.0040626526,0.008583069,-0.01940918,-0.030914307,-0.030639648,0.028778076,-0.02897644,0.0027561188,0.023605347,0.037475586,0.041931152,-0.019256592,-0.007896423,0.01184845,-0.0090789795,-0.012359619,-0.052856445,-0.025253296,-0.022003174,0.05569458,0.0020866394,-0.0069351196,0.062072754,0.0012607574,-0.0026302338,0.01675415,0.010017395,-0.008300781,-0.011604309,-0.051757812,-0.014945984,-0.000893116,-0.0109939575,-0.027557373,0.0022201538,0.013031006,-0.014579773,-0.007320404,0.005142212,-0.015464783,-0.01109314,-0.010360718,0.079956055,0.009254456,0.01977539,-0.011833191,-0.013648987,-0.028137207,0.024337769,0.0077667236,-0.060028076,0.023239136,-0.009941101,0.011138916,0.002904892,0.009941101,-0.008476257,0.033569336,-0.010284424,-0.004043579,-0.03955078,0.06896973,-0.017822266,-0.00687027,0.008880615,-0.013336182,-0.0044555664,-0.06756592,-0.00554657,0.021148682,-0.02192688,0.011222839,-0.044433594,-0.016708374,-0.0033512115,-0.03933716,0.009025574,0.008857727,0.050842285,-0.019348145,0.0031089783,-0.023391724,-0.011512756,-0.014160156,0.009170532,-0.026275635,-0.0041236877,0.04776001,0.0015583038,-0.024993896,-0.035858154,-0.004436493,0.009284973,-0.03048706,-0.030181885,-0.008926392,-0.022583008,0.014419556,-0.015625,-0.014625549,-0.025863647,-0.0003027916,-0.0118637085,0.014289856,-0.0051727295,0.020629883,0.011741638,-0.007083893,0.009552002,-0.0018396378,-0.03186035,0.04244995,0.023330688,0.03314209,-0.06109619,-0.026641846,-0.0035591125,0.0012493134,-0.025131226,-0.026565552,0.016860962,-0.024505615,-0.022827148,-0.009391785,-0.009132385,0.018341064,-0.0021095276,-0.019256592,-0.048034668,-0.0019931793,-0.012634277,0.019348145,-0.015045166,0.008155823,0.0259552,0.014442444,0.02432251,0.00062179565,-0.011909485,-0.039154053,-0.008255005,0.010551453,0.012298584,0.01902771,0.024505615,-0.00004720688,0.0010919571,-0.019317627,-0.0074539185,0.013160706,0.006755829,0.00223732,-0.025009155,0.0006322861,0.009552002,-0.02784729,-0.028396606,0.0028476715,0.082336426,0.015808105,-0.008743286,-0.0067253113,-0.00062942505,0.016967773,0.028869629,-0.070129395,0.019012451,-0.017181396,0.03475952,-0.020050049,0.019729614,0.016967773,0.024871826,-0.02293396,-0.038208008,-0.016326904,-0.015975952,0.006084442,-0.08129883,-0.019577026,-0.035614014,0.007648468,-0.0046195984,-0.0024299622,-0.0062408447,-0.0023498535,-0.013786316,-0.09863281,-0.0069885254,0.03692627,-0.02281189,0.021896362,-0.019226074,0.019683838,0.029159546,-0.016738892,-0.013687134,0.028869629,-0.05029297,-0.0071487427,-0.019683838,0.036895752,-0.024627686,-0.024047852,-0.019699097,0.021759033,-0.0069999695,-0.022369385,-0.0061073303,-0.019592285,0.011070251,-0.00856781,0.009613037,-0.0058555603,0.034942627,0.04333496,-0.031707764,-0.009223938,0.03111267,0.01727295,0.013366699,0.006416321,0.0423584,-0.02986145,-0.013473511,0.021499634,-0.0017814636,0.02949524,-0.03326416,0.022598267,0.0003912449,-0.0055618286,-0.015312195,-0.0044174194,-0.0030002594,-0.05279541,-0.032104492,0.026733398,0.011764526,-0.004585266,0.013618469,0.028411865,0.008422852,0.026687622,0.0017871857,-0.010025024,-0.009681702,-0.013877869,0.004219055,-0.0069618225,0.0015258789,-0.022399902,0.008773804,0.023757935,0.042663574,-0.011383057,-0.01260376,-0.027999878,0.037017822,0.005584717,0.013687134,0.029205322,0.021850586,0.005962372,0.047332764,0.015060425,-0.008201599,-0.011894226,-0.027709961,-0.0052452087,-0.0038280487,-0.0050354004,-0.003250122,0.022018433,0.00856781,-0.00541687,-0.019546509,0.019378662,-0.049713135,-0.022735596,-0.0005097389,-0.00041031837,0.01953125,-0.03173828,0.010856628,-0.018829346,-0.0037612915,0.047027588,0.013450623,-0.05593872,0.03326416,0.030075073,0.014389038,-0.0023155212,-0.007522583,-0.0059280396,-0.022918701,0.0289917,-0.022750854,0.0076141357,0.048858643,-0.039245605,0.013130188,0.041381836,0.02279663,0.015571594,0.004924774,-0.0026988983,-0.006755829,-0.009185791,0.032318115,-0.038238525,0.018447876,-0.021728516,0.017303467,-0.01436615,-0.023773193,-0.03540039,0.034454346,0.009925842,-0.019226074,-0.011428833,-0.017944336,0.021759033,-0.017028809,-0.022506714,-0.0011873245,-0.0053977966,-0.041748047,0.0023231506,-0.024978638,-0.0034942627,0.011276245,-0.0072669983,0.018539429,-0.036376953,-0.00029110909,0.02822876,-0.008468628,-0.012840271,-0.010482788,-0.0034637451,-0.004047394,-0.0104904175,0.0066833496,-0.01008606,0.027999878,0.031463623,0.035949707,0.027267456,0.02180481,0.013137817,-0.053527832,-0.016052246,-0.011909485,-0.001042366,0.027755737,-0.02822876,0.03717041,0.030838013,-0.0041046143,0.05847168,0.02267456,0.045928955,-0.0026569366,-0.010139465,0.000071167946,0.004787445,-0.0006699562,0.00983429,-0.023880005,0.038208008,-0.061035156,0.015655518,0.02041626,0.0063056946,0.023071289,0.0317688,0.044281006,0.026870728,0.0138168335,0.020477295,-0.0052108765,0.031402588,-0.015792847,-0.038146973,0.024551392,0.0016241074,0.042663574,0.01890564,0.008407593,-0.006252289,0.02178955,-0.014038086,-0.022399902,0.015220642,0.043670654,0.010627747,-0.009277344,-0.002878189,0.008018494,-0.042510986,-0.019302368,-0.011810303,0.015914917,-0.0077667236,-0.026733398,-0.03540039,-0.015281677,0.012123108,0.0019836426,0.019927979,-0.006034851,0.028259277,0.032470703,-0.012359619,0.013877869,-0.0033226013,0.013542175,-0.027633667,-0.021255493,0.011116028,0.018463135,-0.02468872,-0.0060043335,-0.004383087,0.015464783,0.045562744,0.049316406,0.0004968643,0.002040863,0.03491211,0.008125305,0.0072746277,0.04864502,0.01574707,0.0018978119,0.047912598,0.03616333,0.025039673,-0.03845215,0.0029735565,0.010299683,0.019332886,0.017242432,-0.0064735413,-0.0009784698,-0.021347046,0.039093018,0.009933472,-0.007221222,0.006752014,-0.0021705627,0.01374054,-0.0028266907,0.021347046,0.019592285,-0.019424438,-0.0024642944,0.014785767,-0.0070648193,0.02760315,0.006061554,0.030258179,-0.029541016,0.0256958,0.027130127,-0.042999268,0.01914978,-0.007282257,-0.043548584,0.013473511,-0.01436615,0.010391235,-0.035247803,0.02180481,0.030090332,0.0016889572,0.029022217,0.0141067505,-0.0065689087,0.011306763,0.024108887,0.032226562,0.0023612976,-0.0090408325,-0.033172607,0.03237915,0.0236969,-0.008377075,-0.023788452,-0.010879517,-0.0053977966,0.017715454,-0.016189575,0.007926941,0.008087158,-0.030075073,-0.020568848,0.02406311,0.026016235,0.03189087,0.030914307,-0.029174805,-0.022003174,-0.0011129379,0.033996582,0.0006136894,-0.010696411,-0.007484436,0.007045746,-0.00932312,0.03955078,0.05014038,0.01914978,0.040222168,-0.009162903,0.0056419373,-0.01008606,-0.0021152496,0.0041923523,-0.049926758,0.0012388229,-0.01448822,0.0035743713,-0.009025574,-0.03878784,0.014656067,-0.014434814,-0.020187378,-0.01121521,0.017059326,0.010543823,0.014015198,0.017181396,0.041381836,-0.021057129,0.049438477,-0.006462097,0.012672424,0.0071754456,-0.0036697388,0.068481445,0.025482178,0.02180481,0.011352539,-0.0061836243,-0.018554688,0.0038471222,0.017990112,0.0063285828,0.020904541,0.008224487,-0.011924744,0.002708435,0.018859863,0.02279663,-0.007888794,0.016815186,0.010299683,-0.023498535,-0.0073661804,-0.0012550354,0.00080394745,0.009635925,0.0446167,-0.015510559,-0.008392334,-0.028701782,-0.009719849,0.037109375,-0.017059326,0.0036773682,0.00058317184,-0.009880066,0.0034866333,-0.00687027,-0.013206482,0.02218628,0.01828003,-0.03074646,-0.006614685,0.0037136078,0.03250122,-0.036499023,0.01600647,0.002035141,0.0047454834,0.002981186,0.0335083,-0.012031555,0.04486084,-0.021987915,0.01272583,0.034118652,-0.011665344,0.008613586,-0.028030396,0.0033302307,-0.018936157,0.019302368,-0.0018367767,-0.026611328,-0.00087976456,-0.008010864,-0.008995056,0.029647827,0.004272461,-0.007675171,0.009048462,-0.015853882,0.0049934387,-0.0016727448,-0.014259338,-0.014892578,0.010528564,0.026824951,-0.0019874573,0.010101318,0.037017822,0.013175964,-0.04486084,0.0050849915,0.027023315,0.0022392273,-0.035980225,0.009262085,0.035217285,0.0046844482,0.015792847,0.015975952,-0.009307861,0.0015363693,-0.020446777,0.0076675415,0.009552002,0.026489258,0.03640747,-0.014640808,0.0012521744,0.018081665,-0.006919861,0.00233078,-0.009147644,0.028778076,0.02748108,0.034118652,-0.011703491,-0.020828247,0.000028431416,0.009857178,0.021072388,0.01209259,0.0029296875,0.046051025,0.0074043274,-0.010421753,0.00025701523,0.0134887695,-0.0033912659,0.011497498,-0.012672424,0.035186768,0.041625977,-0.025939941,0.00083732605,-0.007007599,0.017440796,0.012069702,0.0049819946,-0.01374054,0.029129028,0.023956299,-0.014160156,-0.031204224,0.006717682,0.013412476,-0.014442444,0.03152466,-0.023376465,-0.014144897,0.005004883,0.0154800415,0.002784729,-0.025863647,-0.005054474,-0.028289795,-0.0042800903,0.006668091,0.0044021606,0.0048675537,-0.02432251,0.005596161,0.0058403015,-0.024871826,-0.026153564,0.010482788,-0.0131073,-0.036132812,-0.03704834,0.017120361,-0.013153076,0.011405945,-0.011482239,0.03289795,-0.008766174,-0.008544922,0.013160706,-0.0049743652,-0.0067100525,0.010482788,0.027236938,-0.01776123,0.027313232,0.0047836304,-0.012001038,-0.025100708,-0.008735657,-0.016326904,0.014907837,-0.02432251,0.012023926,-0.0038795471,-0.0018730164,0.010299683,-0.013923645,-0.017059326,-0.007575989,-0.02658081,-0.038024902,0.010734558,0.01966858,0.012069702,-0.0016155243,0.021591187,0.0037155151,-0.014717102,0.021759033,0.006515503,-0.006843567,0.02748108,-0.0118637085,0.008415222,-0.004337311,-0.004119873,-0.009155273,0.0074768066,0.015388489,0.00046992302,-0.0038146973,-0.0013685226,0.031463623,-0.022369385,0.0015163422,0.0074043274,0.01701355,-0.018310547,0.017242432,0.015602112,0.013015747,-0.0024032593,-0.012741089,-0.01586914,0.036468506,-0.011222839,0.0056037903,0.012023926,0.0072669983,-0.025939941,0.033966064,0.032928467,-0.014221191,-0.026641846,-0.006515503,-0.053466797,0.012207031,-0.0045280457,-0.017623901,0.00894165,0.00573349,-0.004173279,-0.03265381,0.011367798,0.025009155,0.005809784,-0.010879517,0.0013666153,0.049072266,0.035705566,-0.024734497,-0.0070381165,-0.020904541,-0.026046753,-0.020095825,-0.014144897,0.00831604,0.016647339,-0.010948181,-0.00070381165,0.015655518,0.008926392,-0.00592041,0.040161133,-0.024810791,-0.014801025,0.022567749,0.007713318,-0.0033626556,0.012077332,-0.013870239,-0.009346008,0.02029419,0.009025574,0.0041046143,-0.022644043,0.046051025,-0.014656067,-0.0152282715,0.03152466,0.0025405884,0.00060272217,-0.013748169,-0.0032901764,0.016677856,0.0023422241,0.025299072,-0.018432617,-0.038604736,-0.00017273426,0.0006661415,-0.03439331,0.031829834,0.034820557,0.024658203,-0.016677856,0.008277893,0.0050811768,-0.010818481,0.011260986,0.026733398,-0.01776123,0.017410278,0.023513794,0.007709503,0.016021729,-0.017837524,0.016067505,-0.018676758,-0.014274597,-0.0018005371,0.0025634766,0.007545471,0.026473999,0.0058288574,0.03488159,-0.00046944618,0.014984131,0.022476196,0.017990112,0.031982422,-0.008056641,0.041778564,0.006046295,-0.030853271,0.008636475,0.026977539,-0.017089844,0.020370483,-0.010322571,0.0049858093,-0.029724121,-0.013648987,0.007385254,0.0048103333,-0.011695862,0.008041382,-0.008361816,-0.019821167,-0.045928955,-0.013542175,-0.0076942444,-0.0028820038,0.03869629,0.017486572,-0.0064048767,-0.0061950684,-0.004096985,0.009986877,0.03842163,-0.002527237,-0.031219482,-0.0028972626,0.0066833496,-0.005630493,0.0059013367,-0.00699234,-0.023773193,-0.026260376,-0.019378662,0.026504517,0.025527954,0.006290436,0.009208679,0.0154418945,-0.027374268,-0.008430481,0.020401001,-0.02116394,0.003232956,0.012039185,-0.018554688,0.01739502,0.049591064,-0.038513184,-0.0028858185,0.041381836,-0.036865234,0.049835205,-0.021347046,0.0063705444,-0.02357483,0.0061035156,-0.038208008,-0.026351929,0.011650085,0.008163452],"createdAt":"2026-04-18T18:31:32.788Z","updatedAt":"2026-04-24T08:01:12.673Z","lastSeenAt":"2026-04-24T08:01:12.673Z","tsv":"'-5':44,47,50,85 '-5.1':42 '/base/llm/gpt':212 '0.001':134,170,187 '0.01':103 '000':128,129 '0x402faccc3faeb72351cc2b68c7966faf5f22b0d4':298 '0x833589fcd6edb6e08f4c7c32d4f71b54bda02913':304 '1':127 '100':178 '1000':90 '2000':94 '6':140 '8453':292 'Base chain LLM' 'GPT API' 'OpenAI wrapper' 'USDC GPT' 'account':69 'action':150,154,246 'actual':268 'address':297 'agent':165,181,190,221 'agent-ready GPT' 'alway':136 'api':12,28,71 'authent':79 'base':8,24,59,218,289 'base-network' 'behind':52 'beyond':142 'bodi':205 'call':82,145,216 'caller':61,261 'cap':262,272 'chain':290 'challeng':285 'complet':159 'comput':112 'configur':109 'contract':302 'creat':160,194 'custom':164,180,189,200,213,252 'custom-agent-creation' 'custom-agent-listing' 'decim':141 'default':81,108 'defin':239 'direct':157 'endpoint':6,22,36,147,234 'error':277 'exceed':270 'expos':37 'field':243 'fix':100 'gpt':5,21,35,39,41,43,46,49,84,158 'gpt-5-mini' 'gpt-5-nano' 'gpt-5-pro' 'gpt-5.1' 'id':201,214,253,291 'includ':242 'input':91,114,116,231,257,263 'invok':198 'json':240 'key':13,29,72 'let':260 'like':244 'list':173 'live':287 'llm-completion' 'max':95,120,226,230,256 'messag':144,151,269 'micropay':16,32 'micropayment LLM' 'million':119,126 'mini':45,86 'minimum':132 'model':40,225,247 'nano':48 'network':60 'no-api-key' 'non':107 'non-default':106 'ok':245 'omit':153 'openai':38 'option':255 'output':96,121,123,227 'paramet':211,259 'path':210 'pay':2,18,62,184 'pay-per-us':1,17 'pay-per-use LLM' 'payment':55,75,294 'per':3,19,65,118,125 'per-request-pricing' 'preprompt':168,224 'price':101,110,117,124,217,248,265,282 'pro':51 'rather':278 'recent':179 'repli':250 'request':66,204 'requir':73 'retriev':175 'return':235,275 'reusabl':192 'round':137 'schema':241 'serv':77 'server':274 'serverless GPT' 'settl':295 'simpl':143 'store':162,223 'support':148 'three':149 'token':92,97,115,122,228,232,258,264 'under-pr':280 'url':209 'usdc':15,31,64,104,135,171,188,249,301 'usdc-micropayment' 'use':4,20,83,299 'via':9,25,199 'wall':56 'wallet':185 'well':238 'well-defin':237 'x402':10,26,54,284 'x402 GPT' 'x402-payment' 'x402factory':33","prices":[{"id":"32182892-fb83-46ef-8f55-95f4061eab43","listingId":"bedc2fd1-917c-43ea-9d55-da29d4b8df0e","amountUsd":null,"unit":"per_call","nativeCurrency":"USD COIN","nativeAmount":"10000","chain":"base","payTo":"0x402FaCcC3fAeb72351CC2b68C7966faF5f22B0d4","paymentMethod":"x402-usd coin","isPrimary":true,"details":{"scheme":"exact","mime_type":"application/json","accepts_all":[{"asset":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","extra":{"kind":"llm-gpt","name":"USD Coin","eip712":{"name":"USD Coin","version":"2"},"chainId":8453,"iconUrl":"https://x402factory.ai/x402factoryfavoicon.jpg","pricing":{"mode":"default","model":"gpt-5-mini","amount":0.01,"network":"Base","currency":"USDC","minAmount":0.001,"isAgentCall":false,"defaultAmount":0.01,"isCreateAction":false,"maxOutputTokens":2000},"version":"2","decimals":6,"avatarUrl":"https://x402factory.ai/x402factoryfavoicon.jpg","serviceUrl":"https://x402factory.ai","serviceName":"x402Factory","serviceDescription":"x402Factory Base endpoints for agents (notes, LLMs, TTS, Telegram, coin prices, payments)."},"payTo":"0x402FaCcC3fAeb72351CC2b68C7966faF5f22B0d4","scheme":"exact","network":"base","mimeType":"application/json","resource":"https://x402factory.ai/base/llm/gpt","description":"Base 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 /base/llm/gpt with custom_id, or POST /base/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=2000. Pricing mode: default. Prepaid price (x402) for this request: 0.010000 USDC.","outputSchema":{"input":{"type":"http","method":"POST","bodyType":"json","bodyFields":{"model":{"enum":["gpt-5.1","gpt-5-mini","gpt-5-nano","gpt-5-pro"],"type":"string","required":false,"description":"Logical model name. One of: gpt-5.1, gpt-5-mini (default), gpt-5-nano, gpt-5-pro. Pricing is per model using per-million token rates."},"action":{"enum":["message","create","list"],"type":"string","required":false,"description":"Optional action. Use 'message' (or omit action) for a direct GPT call, 'create' to create a custom agent with a preprompt, or 'list' to list your custom agents without calling OpenAI."},"message":{"type":"string","required":false,"description":"User message for the LLM. Required for normal GPT calls. For action=create this becomes the preprompt that is stored for the custom agent."},"custom_id":{"type":"string","required":false,"description":"Optional custom agent ID returned from action=create. When set, the preprompt + model from that agent are used. Can also be provided via URL: /base/llm/gpt/{custom_id}."},"max_input_tokens":{"type":"number","required":false,"description":"Optional hard ceiling on input tokens used for pricing. For normal calls this caps the user message tokens. For custom agents this caps the user message tokens on top of the fixed preprompt. If the actual message is longer than this value, the server returns an error instead of under-pricing."},"max_output_tokens":{"type":"number","required":false,"description":"Maximum number of output tokens. Default 2000. Higher limits increase the prepaid price because x402 payments are upfront."}}},"output":{"ok":{"type":"boolean","description":"True on success"},"model":{"type":"string","description":"Model used for this call"},"reply":{"type":"string","description":"For GPT calls, the assistant reply text from OpenAI."},"action":{"type":"string","description":"Action performed: 'call' for direct GPT calls, 'call_custom' for custom agents, 'create' for new custom agents, 'list' for listing your custom agents."},"agents":{"type":"array","description":"For action=list: up to 100 recent custom agents for the paying wallet. Each entry includes custom_id, model, max_output_tokens, base_price_usdc, max_input_tokens, preprompt_preview (first 250 chars), created_at and updated_at."},"custom_id":{"type":"string","description":"Custom agent ID used for this call, if any. For action=create this is the newly created agent ID."},"preprompt":{"type":"string","description":"For action=create, the stored preprompt text. For custom calls, the preprompt used for the agent."},"price_usdc":{"type":"number","description":"Price charged for this call in USDC (6 decimals, rounded up). Minimum is 0.001 USDC. Default direct calls cost 0.01 USDC for up to 1000 input tokens with gpt-5-mini and max_output_tokens=2000."},"base_price_usdc":{"type":"number","description":"For action=create, the stored base price for the agent (max_input_tokens_for_agent + preprompt + max_output_tokens) using the selected model."},"max_output_tokens":{"type":"number","description":"Maximum output tokens used for this call (after applying any defaults and limits)."},"estimated_input_tokens":{"type":"number","description":"Estimated number of input tokens used for pricing. For custom agents this includes both preprompt and the agent's configured max_input_tokens."}}},"maxAmountRequired":"10000","maxTimeoutSeconds":60}],"asset_contract":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","max_timeout_seconds":60},"createdAt":"2026-04-18T18:31:32.788Z"}],"sources":[{"listingId":"bedc2fd1-917c-43ea-9d55-da29d4b8df0e","source":"x402_bazaar","sourceId":"https://x402factory.ai/base/llm/gpt","sourceUrl":"https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources","isPrimary":true,"firstSeenAt":"2026-04-18T18:31:32.788Z","lastSeenAt":"2026-04-24T08:01:12.673Z"}],"details":{"listingId":"bedc2fd1-917c-43ea-9d55-da29d4b8df0e","quickStartSnippet":"curl -X POST https://x402factory.ai/base/llm/gpt \\\n  -H \"Content-Type: application/json\" \\\n  -H \"X-PAYMENT: <x402-payment-header>\" \\\n  -d '{\"message\": \"What is the x402 protocol?\", \"model\": \"gpt-5-mini\", \"max_output_tokens\": 2000}'","exampleRequest":{"model":"gpt-5-mini","action":"message","message":"Explain the x402 payment protocol in two sentences.","max_output_tokens":2000},"exampleResponse":{"ok":true,"model":"gpt-5-mini","reply":"The x402 protocol enables pay-per-use API access by embedding USDC micropayments directly into HTTP requests. It eliminates the need for API keys or accounts — your wallet is your identity.","action":"call","price_usdc":0.01,"max_output_tokens":2000,"estimated_input_tokens":12},"schema":{"input":{"type":"http","method":"POST","bodyType":"json","bodyFields":{"model":{"enum":["gpt-5.1","gpt-5-mini","gpt-5-nano","gpt-5-pro"],"type":"string","required":false,"description":"Logical model name. One of: gpt-5.1, gpt-5-mini (default), gpt-5-nano, gpt-5-pro. Pricing is per model using per-million token rates."},"action":{"enum":["message","create","list"],"type":"string","required":false,"description":"Optional action. Use 'message' (or omit action) for a direct GPT call, 'create' to create a custom agent with a preprompt, or 'list' to list your custom agents without calling OpenAI."},"message":{"type":"string","required":false,"description":"User message for the LLM. Required for normal GPT calls. For action=create this becomes the preprompt that is stored for the custom agent."},"custom_id":{"type":"string","required":false,"description":"Optional custom agent ID returned from action=create. When set, the preprompt + model from that agent are used. Can also be provided via URL: /base/llm/gpt/{custom_id}."},"max_input_tokens":{"type":"number","required":false,"description":"Optional hard ceiling on input tokens used for pricing. For normal calls this caps the user message tokens. For custom agents this caps the user message tokens on top of the fixed preprompt. If the actual message is longer than this value, the server returns an error instead of under-pricing."},"max_output_tokens":{"type":"number","required":false,"description":"Maximum number of output tokens. Default 2000. Higher limits increase the prepaid price because x402 payments are upfront."}}},"output":{"ok":{"type":"boolean","description":"True on success"},"model":{"type":"string","description":"Model used for this call"},"reply":{"type":"string","description":"For GPT calls, the assistant reply text from OpenAI."},"action":{"type":"string","description":"Action performed: 'call' for direct GPT calls, 'call_custom' for custom agents, 'create' for new custom agents, 'list' for listing your custom agents."},"agents":{"type":"array","description":"For action=list: up to 100 recent custom agents for the paying wallet. Each entry includes custom_id, model, max_output_tokens, base_price_usdc, max_input_tokens, preprompt_preview (first 250 chars), created_at and updated_at."},"custom_id":{"type":"string","description":"Custom agent ID used for this call, if any. For action=create this is the newly created agent ID."},"preprompt":{"type":"string","description":"For action=create, the stored preprompt text. For custom calls, the preprompt used for the agent."},"price_usdc":{"type":"number","description":"Price charged for this call in USDC (6 decimals, rounded up). Minimum is 0.001 USDC. Default direct calls cost 0.01 USDC for up to 1000 input tokens with gpt-5-mini and max_output_tokens=2000."},"base_price_usdc":{"type":"number","description":"For action=create, the stored base price for the agent (max_input_tokens_for_agent + preprompt + max_output_tokens) using the selected model."},"max_output_tokens":{"type":"number","description":"Maximum output tokens used for this call (after applying any defaults and limits)."},"estimated_input_tokens":{"type":"number","description":"Estimated number of input tokens used for pricing. For custom agents this includes both preprompt and the agent's configured max_input_tokens."}}},"openapiUrl":null,"agentsTxtUrl":null,"citations":[{"claim":"Endpoint is live and returns HTTP 402 with x402 challenge on POST","source_url":"https://x402factory.ai/base/llm/gpt"},{"claim":"Supported models: gpt-5.1, gpt-5-mini, gpt-5-nano, gpt-5-pro","source_url":"https://x402factory.ai/base/llm/gpt"},{"claim":"Default price is 0.01 USDC for gpt-5-mini with up to 1000 input tokens and 2000 max output tokens","source_url":"https://x402factory.ai/base/llm/gpt"},{"claim":"Payments settle on Base (chain ID 8453) using USDC at 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","source_url":"https://x402factory.ai/base/llm/gpt"},{"claim":"x402Factory describes itself as pay-per-use API endpoints for the agent economy on Solana and Base","source_url":"https://x402factory.ai"}],"useCases":["AI agents that need on-demand GPT completions without managing API keys","Creating reusable custom agents with stored system prompts for repeated tasks","Prototyping LLM-powered workflows with instant USDC micropayments on Base","Autonomous agents discovering and consuming LLM endpoints via x402 protocol","Building chatbot backends where each query is individually metered and paid"],"bestFor":["Autonomous AI agents needing keyless, pay-per-call GPT access","Developers who want to avoid OpenAI account management and billing complexity","Micropayment-based LLM consumption on Base/USDC","Creating persistent custom agents with fixed preprompts for repeated use"],"notFor":["High-volume production workloads where OpenAI direct billing is cheaper","Use cases requiring streaming responses (no streaming mentioned in schema)","Applications needing non-GPT models (Claude, Gemini, open-source LLMs)"],"kindDetails":{"x402_version":1,"resource_type":"http","bazaar_last_updated":"2026-02-17T23:15:07.698Z"},"updatedAt":"2026-04-24T08:01:12.673Z"}}