# MapleAI > Pay-per-use GPT and Claude models via x402 micropayments on Base mainnet. AI API access with pay-per-request pricing: 14 chat models behind one OpenAI-compatible endpoint (Anthropic Messages API at /v1/messages). No accounts, no subscriptions, no API keys — an agent pays per request in USDC over the x402 protocol. ## Payment - Protocol: x402 - Network: eip155:8453 (Base mainnet) - Currency: USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) - Recipient: 0x63db6eaf635a31bbc6714fe37bdc85243864f611 - Facilitator: https://facilitator.payai.network - Minimum charge: $0.0010 per paid request (about $0.001 rounded) - Contact: contact@mapleai.shop ## Endpoints POST https://base.mapleai.shop/v1/chat/completions OpenAI-compatible chat completions (paid). Returns HTTP 402 with a PAYMENT-REQUIRED header when payment is required. Price = input_tokens * input_rate + max_tokens * output_rate. POST https://base.mapleai.shop/api/v1/chat/completions Alias of the above, for agent crawlers (paid). POST https://base.mapleai.shop/api/v1/responses OpenAI-compatible Responses API, alpha (paid). POST https://base.mapleai.shop/v1/messages Anthropic Messages API for Claude models (paid). Native Anthropic shape: system prompt, content blocks, anthropic-version header, SSE events; max_tokens required. Price = input_tokens (incl. system) * input_rate + max_tokens * output_rate. GET https://base.mapleai.shop/v1/models List all available models with pricing (free). POST https://base.mapleai.shop/api/v1/images/generations Generate images (paid; per image and size). POST https://base.mapleai.shop/api/v1/images/image2image Edit a PNG, JPEG or WebP base64 data URI (paid; maximum 10 MB). POST https://base.mapleai.shop/v1/audio/speech Text-to-speech (paid; $0.015 per request): tts-1, tts-1-hd, orpheus-english, orpheus-arabic. WAV output. POST https://base.mapleai.shop/v1/audio/transcriptions Speech-to-text (paid; $0.006 per request): whisper-1, whisper-large-v3, whisper-large-v3-turbo. Multipart or JSON base64 input; whisper-large-v3* add word timestamps and srt/vtt. POST https://base.mapleai.shop/jev Jev structured decisions ($0.06/1M input tokens plus payment overhead). Send model=jev-latest, state and named questions with type and instructions. POST https://base.mapleai.shop/v1/x/search Live X/Twitter search via Grok x_search. Price = $0.015 + $0.0015 per requested max_result (+$0.01 with include_web), plus payment overhead; $0.030 at the default 10 results. Body: {query, max_results?: 1..25, include_web?: bool, instructions?: string, format?: text|json, hours_back?: 1..168}. Returns the Grok answer with direct post citations. POST https://base.mapleai.shop/v1/x/digest Digest of specific X handles: key posts with links, likes and reposts per handle, silent handles marked. Price = $0.020 + $0.005 per handle. Body: {handles, hours_back?: 1..168, max_posts_per_handle?: 1..5, include_media?: bool}. POST https://base.mapleai.shop/v1/x/sentiment X sentiment for a topic: verdict, -1..1 score, bullish/bearish/neutral distribution, drivers and evidence posts. Price = $0.025 + $0.0015 per example + $0.005 per extra day of window. Body: {topic, hours_back?: 1..168, max_examples?: 1..10, min_engagement?: int}. POST https://base.mapleai.shop/v1/x/factcheck Factcheck a claim against X posts and web sources: verdict (confirmed/refuted/mixed/unverified), confidence, evidence for and against. Price = $0.030 + $0.002 per source slot. Body: {claim, max_sources?: 1..10, days_back?: 1..30}. POST https://base.mapleai.shop/v1/x/profile Profile dossier for X handles: bio, followers, verification, topics, factual flags and recent posts. Price = $0.020 + $0.015 per handle. Body: {handles: 1..5, days_back?: 1..30, include_posts?: bool}. POST https://base.mapleai.shop/v1/x/media Media radar: image/video understanding of media attached to X posts matching a query. Price = $0.020 + $0.002 per analyzed post. Body: {query, hours_back?: 1..168, media_type?: image|video|both, max_results?: 1..15, mode?: top|latest}. POST https://base.mapleai.shop/v1/web/search Live web search via Grok web_search with source citations. Price = $0.015 + $0.0010 per requested max_result. Body: {query, max_results?: 1..25, instructions?: string, allowed_domains?: up to 5}. POST https://base.mapleai.shop/v1/agents/execute Autonomous agent execution with two engines (cheap agents/oss-20b, premium agents/gpt-6-sol): multi-step reasoning with calculator, fetch_url, web_search, data_analysis and code_exec (sandboxed python/javascript/typescript) tools; stream=true streams SSE step events. Ceiling = engine base ($0.002/$0.004) + per-step ($0.0005/$0.004) + code_exec $0.002/call (max 3 per task), default 8, max 20 steps, shown as charged_ceiling_usd. Step timeouts finalize as partial, never a bare 502. POST https://base.mapleai.shop/v1/embeddings Free NVIDIA embeddings with nvidia/nemotron-3-embed-1b. POST https://base.mapleai.shop/v1/free/chat/completions Free chat completions (no payment), model id nvidia/gpt-oss-20b (alias of nvidia/nemotron-3.5-bolt-e4b). Rate-limited: 10 requests/10min and 100 requests/day per agent IP; max_tokens capped at 2048. Returns 429 free_tier_exhausted with retry-after when the window is spent. GET https://base.mapleai.shop/v1/free/chat/completions/quota Current free-tier window usage for your IP (free). POST https://base.mapleai.shop/prepaid/codes Buy a prepaid API key for one GPT or Claude model (paid). Budget in 100000-token steps from 100000 to 1000000, priced at the model input rate plus settlement fee. The key works at https://mapleai.shop/v1 (OpenAI-compatible). POST https://base.mapleai.shop/prepaid/v1/chat/completions Spend a prepaid key on this gateway (Bearer oms_buy_, no x402); usage depletes the token budget. Any /prepaid/v1/* subpath forwards the same way. POST https://base.mapleai.shop/prepaid/v1/jev Prepaid Jev structured decisions (Bearer oms_buy_): debits input tokens only, output is free. GET https://base.mapleai.shop/prepaid/status Check prepaid key usage and status here (free), same as GET https://mapleai.shop/v1/prepaid/status. Send the prepaid key as the Bearer token; returns valid, reason and tokens total/used/reserved/remaining. ## Available Models - openai/gpt-5.6-sol GPT-5.6 Sol: $2.80/1M in, $14.00/1M out, 1.1M context - openai/gpt-5.6-terra GPT-5.6 Terra: $1.40/1M in, $8.40/1M out, 1.1M context - openai/gpt-6-luna GPT-6 Luna: $0.07/1M in, $0.35/1M out, 1.1M context - openai/gpt-6-sol GPT-6 Sol: $1.40/1M in, $7.00/1M out, 1.1M context - anthropic/claude-sonnet-5 Claude Sonnet 5: $1.00/1M in, $5.00/1M out, 1.1M context - anthropic/claude-opus-4-8 Claude Opus 4.8: $2.50/1M in, $12.50/1M out, 1.1M context - anthropic/claude-opus-5 Claude Opus 5: $2.50/1M in, $12.50/1M out, 1.1M context - anthropic/claude-haiku-4-5 Claude Haiku 4.5: $0.50/1M in, $2.50/1M out, 1.1M context - anthropic/claude-sonnet-4-5 Claude Sonnet 4.5: $1.50/1M in, $7.50/1M out, 1.1M context - anthropic/claude-sonnet-4-6 Claude Sonnet 4.6: $1.50/1M in, $7.50/1M out, 1.1M context - anthropic/claude-sonnet-5-5 Claude Sonnet 5.5: $1.00/1M in, $5.00/1M out, 1.1M context - anthropic/claude-opus-4-6 Claude Opus 4.6: $2.50/1M in, $12.50/1M out, 1.1M context - anthropic/claude-opus-4-7 Claude Opus 4.7: $2.50/1M in, $12.50/1M out, 1.1M context - anthropic/claude-opus-5-5 Claude Opus 5.5: $2.00/1M in, $10.00/1M out, 1.1M context ## Image Models - gpt-image-2 (1024x1024): $0.0200 per image - gpt-image-2.5 (1024x1024): $0.0400 per image - gpt-image-2.5-flare (1024x1024): $0.0400 per image - gpt-image-2.5-sunburst (1024x1024): $0.0400 per image - grok-imagine-image (1024x1024): $0.0450 per image - gpt-image-2-2k (2048x2048): $0.0900 per image - gpt-image-2.5-sunburst-2k (2048x2048): $0.2200 per image Send model, size, prompt and optional n (1-4). Edits also require image as a base64 data URI. The x402 challenge includes payment overhead. Successful responses contain data[].url or data[].b64_json. ## Jev - jev-latest: $0.06/1M input tokens; output tokens free - SystemOne only. POST /jev with model, state and named questions; each question needs type (noul, choice or score) and instructions. Read answers from the response. ## X Search - grok-4.6-search: $0.015 base + $0.0015 x max_results (default 10, max 25); include_web adds $0.01 - POST /v1/x/search with {query, max_results?: 1..25, include_web?: bool, instructions?: string}. Response is a Responses API object whose output_text summarizes the findings with direct post links. ## Agents - agents/oss-20b (cheap): $0.002 base + $0.0005 per step; agents/gpt-6-sol (premium): $0.004 base + $0.004 per step; code_exec $0.002 per call (max 3 per task); charged at the max_steps ceiling (default 8, max 20), shown as charged_ceiling_usd - POST /v1/agents/execute with model, task, optional context, max_steps, tools (calculator, fetch_url, web_search, data_analysis, code_exec) and stream=true for SSE step events (open, step, done). Answers include the full step trace, fetched sources and token usage; step timeouts finalize as partial. ## Usage 1. Make a request to https://base.mapleai.shop/v1/chat/completions without payment 2. Receive HTTP 402 with a PAYMENT-REQUIRED header describing price and payment options 3. Sign the transfer authorization with your wallet (x402 client libraries do this automatically) 4. Retry the request with the PAYMENT-SIGNATURE header 5. Receive the completion ## Discovery https://base.mapleai.shop/service-endpoints.json - one-shot machine-readable index of routes, access modes and pricing https://base.mapleai.shop/.well-known/x402 - x402 discovery document https://base.mapleai.shop/.well-known/agent-card.json - A2A agent card with skills https://base.mapleai.shop/openapi.json - OpenAPI 3.1 specification https://base.mapleai.shop/AI-AGENTS.md - integration guide for agents https://base.mapleai.shop/llms.txt - this file