{"uid":"cap_YJE1bEETe6CQ2q1anDdL3","slug":"mapleai-prepaid-api-code-purchase-f6ad470b","name":"MapleAI Prepaid API Code Purchase","description":"Buy a prepaid API code for one GPT model and a token budget","url":"https://base.mapleai.shop/prepaid/codes?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"model":{"enum":["openai/gpt-5.6-sol","openai/gpt-5.6-terra","openai/gpt-6-luna","openai/gpt-6-sol"],"type":"string"},"tokens":{"type":"integer","maximum":1000000,"minimum":100000,"multipleOf":100000}}},"responseSchema":{"type":"json","example":{"code":"oms_buy_example","model":"openai/gpt-6-luna","object":"prepaid_code","tokens":{"total":100000,"remaining":100000},"api_base":"https://mapleai.shop/v1","status_url":"https://mapleai.shop/v1/prepaid/status"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-JWe_DnfqvCpElagDKdIE","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchase a prepaid code granting access to a specific GPT model with a fixed token budget, paid in USDC via x402","exampleAgentPrompt":"Buy me a prepaid MapleAI API code for the gpt-6-luna model with 100,000 tokens so I can use it for LLM calls.","exampleUseCases":[{"title":"Agent fleet LLM budget allocation","prompt":"Set up a prepaid MapleAI code for gpt-6-sol with 500,000 tokens so my agent fleet has a capped budget for the next job run."},{"title":"One-off GPT-5.6 experiment","prompt":"I want to run a quick experiment with MapleAI's gpt-5.6-terra — can you buy me a prepaid code for 100,000 tokens?"},{"title":"Isolated token budget for a project","prompt":"Purchase a MapleAI prepaid code for gpt-6-luna with 300,000 tokens so my project has its own isolated API budget I can track separately."}],"resultDescription":"Returns a JSON object containing a unique prepaid code string, the selected model name, the API base URL (https://mapleai.shop/v1), a status URL for checking remaining tokens, and token counts (total and remaining). The code can then be used as an API key against the MapleAI OpenAI-compatible endpoint.","failureModes":["Invalid model enum value — returns validation error if model is not one of the four supported GPT identifiers","Token count out of range or not a multiple of 100,000 — returns schema validation error","Insufficient USDC balance or x402 payment failure — call is rejected with payment error","Network or provider downtime — HTTP 5xx or timeout with no code issued"],"whenToPreferThis":"Use this endpoint when you need to pre-allocate a fixed token budget for a specific MapleAI GPT model before making LLM calls — ideal for cost-capping agent runs, isolating per-project spend, or distributing API access without sharing a master key. Prefer this over per-call billing when you want predictable spending or need to hand off a limited-use credential to a sub-agent.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:29:40.032Z","isFirstParty":false,"canonicalSlug":"mapleai-prepaid-api-code-purchase-f6ad470b"}