{"uid":"cap_JdquPdBqHFJxLE7R3zNGm","slug":"mapleai-gpt-api-x402-pay-per-request-920da9f1","name":"MapleAI GPT API (x402 Pay-Per-Request)","description":"OpenAI-compatible chat completion, priced by counted input tokens + max output tokens at per-model rates","url":"https://base.mapleai.shop/v1/chat/completions?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"type":"string","description":"Model ID from GET /v1/models"},"messages":{"type":"array","items":{"type":"object","required":["role","content"],"properties":{"role":{"enum":["system","user","assistant","tool"],"type":"string"},"content":{"type":"string"}}}},"max_tokens":{"type":"integer","minimum":1}}},"responseSchema":{"type":"json","example":{"id":"chatcmpl_example","object":"chat.completion","choices":[{"index":0,"message":{"role":"assistant","content":"Hello!"},"finish_reason":"stop"}]}},"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":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cXe8ks3t6JJqApZs_lIWl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Provides OpenAI-compatible chat completions via four GPT models (GPT-5.6 Sol, GPT-5.6 Terra, GPT-6 Luna, GPT-6 Sol) with per-request USDC micropayment billing on Base.","exampleAgentPrompt":"Using MapleAI's GPT-6 Luna model, send this conversation — system: 'You are a concise assistant', user: 'Summarize the concept of quantum entanglement in two sentences' — and give me the response, keeping it under 200 tokens.","exampleUseCases":[{"title":"One-off AI writing task","prompt":"Use MapleAI with GPT-6 Sol to write me a three-sentence product description for a bamboo water bottle — I just need this once, don't want a subscription."},{"title":"Agent reasoning step with GPT-6","prompt":"Send this to MapleAI's GPT-6 Luna: system message 'You are a helpful coding assistant', user message 'Explain what a binary search tree is in plain English', max 150 tokens."},{"title":"Crypto-native LLM integration","prompt":"I'm building a dApp and need to call a GPT model paying per request in USDC on Base — use MapleAI's GPT-5.6 Terra model to answer the user message 'What is a smart contract?' and return the reply."}],"resultDescription":"Returns a standard OpenAI-format chat completion object containing a choices array with the assistant's message content, the finish reason (e.g. 'stop'), and a completion ID. The response is ready to parse with any OpenAI SDK.","failureModes":["Payment failure if USDC balance or x402 payment header is missing or insufficient — endpoint returns 402 Payment Required","Invalid model ID returns an error; valid IDs must be fetched from GET /v1/models","Malformed messages array (missing role or content) causes a 400 Bad Request","max_tokens set too low may result in truncated or empty responses","Network latency on Base blockchain settlement may occasionally delay request processing"],"whenToPreferThis":"Choose this endpoint when you need OpenAI-compatible chat completions on a pay-per-request basis without committing to a subscription, especially in crypto-native or Web3 contexts where paying in USDC on Base is preferred. It is ideal for sporadic or one-off LLM calls, agent workflows that need to control per-call costs, or applications that want access to GPT-6-class models with micropayment billing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:18:27.486Z","isFirstParty":false,"canonicalSlug":"mapleai-gpt-api-x402-pay-per-request-00d375bd"}