{"protocolVersion":"0.2.1","name":"MapleAI","description":"Pay-per-request AI API on Base mainnet: GPT chat, image generation/editing, Jev structured decisions, free embeddings and prepaid token packs. Skilled via the OpenAI-compatible HTTP interface in additionalInterfaces; every paid endpoint answers HTTP 402 with a x402 payment challenge first.","url":"https://base.mapleai.shop","version":"1.0.0","capabilities":{"streaming":true,"extensions":[{"uri":"https://github.com/coinbase/x402","description":"x402 v2 pay-per-request: the first attempt returns HTTP 402 with PAYMENT-REQUIRED; retry with a signed PAYMENT-SIGNATURE header.","required":true}]},"additionalInterfaces":[{"url":"https://base.mapleai.shop/v1","transport":"HTTP","description":"OpenAI-compatible API (chat completions, embeddings, models)"},{"url":"https://base.mapleai.shop/api/v1","transport":"HTTP","description":"OpenAI-compatible API plus images and responses aliases"},{"url":"https://mapleai.shop/v1","transport":"HTTP","description":"OpenAI-compatible API scoped to prepaid oms_buy_ bearer keys"}],"securitySchemes":{"x402":{"type":"apiKey","in":"header","name":"PAYMENT-SIGNATURE","description":"x402 payment payload obtained from the 402 challenge (PAYMENT-REQUIRED header)"}},"security":[{"x402":[]}],"defaultInputModes":["application/json"],"defaultOutputModes":["application/json"],"skills":[{"id":"chat-completion","name":"GPT chat completions","description":"OpenAI-compatible chat completions with 14 chat models, priced per token. Exact quote in the 402 challenge.","tags":["chat","llm"],"examples":["POST https://base.mapleai.shop/v1/chat/completions {\"model\":\"openai/gpt-5.6-sol\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}]}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"responses-api","name":"OpenAI Responses API","description":"OpenAI Responses API (alpha) translated to chat completions upstream.","tags":["chat","responses"],"examples":["POST https://base.mapleai.shop/api/v1/responses {\"model\":\"openai/gpt-5.6-sol\",\"input\":\"Hello\"}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"anthropic-message","name":"Anthropic Messages API (Claude)","description":"Native Anthropic Messages API for the Claude family (haiku/sonnet/opus, see GET /v1/models): system prompt, content blocks, SSE events, required max_tokens. Same per-token x402 pricing.","tags":["chat","anthropic","claude"],"examples":["POST https://base.mapleai.shop/v1/messages {\"model\":\"claude-sonnet-5\",\"max_tokens\":64,\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}]}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"embed-text","name":"Free embeddings","description":"2048-dim embeddings via nvidia/nemotron-3-embed-1b; free, no payment, up to 128 strings per call.","tags":["embeddings","free","search"],"examples":["POST https://base.mapleai.shop/v1/embeddings {\"input\":\"Hello\",\"input_type\":\"query\"}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"text-to-speech","name":"Text-to-speech synthesis","description":"OpenAI-compatible TTS (tts-1, tts-1-hd, orpheus-english, orpheus-arabic); WAV audio, $0.0150 per request.","tags":["audio","tts","speech"],"examples":["POST https://base.mapleai.shop/v1/audio/speech {\"model\":\"tts-1\",\"input\":\"Hello\",\"voice\":\"alloy\"}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"speech-to-text","name":"Audio transcription","description":"OpenAI-compatible transcription (whisper-1 id, Gemini backend); multipart file or JSON base64, $0.0060 per request.","tags":["audio","stt","transcription"],"examples":["POST https://base.mapleai.shop/v1/audio/transcriptions -F file=@audio.mp3 -F model=whisper-1"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"chat-free-gptoss","name":"Free gpt-oss-20b chat","description":"Free nvidia/gpt-oss-20b chat completions; rate-limited 10/10min + 100/day per agent IP, max 2048 output tokens. No payment required.","tags":["chat","free","gpt-oss"],"examples":["POST https://base.mapleai.shop/v1/free/chat/completions {\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}],\"stream\":false}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"image-generation","name":"Image generation","description":"Image generation with 7 models, priced per image and size.","tags":["image"],"examples":["POST https://base.mapleai.shop/api/v1/images/generations {\"model\":\"gpt-image-2\",\"size\":\"1024x1024\",\"prompt\":\"A maple leaf\"}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"image-editing","name":"Image editing","description":"Edit a PNG, JPEG or WebP supplied as a base64 data URI (maximum 10 MB).","tags":["image","editing"],"examples":["POST https://base.mapleai.shop/api/v1/images/image2image {\"model\":\"gpt-image-2\",\"size\":\"1024x1024\",\"prompt\":\"Make the leaf green\",\"image\":\"data:image/png;base64,...\"}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"jev-decision","name":"Structured decisions","description":"Structured decisions via jev-latest: named questions (noul/choice/score) with instructions in, JSON answers out. $0.06/1M input tokens.","tags":["decision","structured"],"examples":["POST https://base.mapleai.shop/jev {\"model\":\"jev-latest\",\"state\":\"...\",\"questions\":{\"billing\":{\"type\":\"noul\",\"instructions\":\"Is this about billing?\"}}}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"buy-prepaid-key","name":"Buy a prepaid API key","description":"Issues a prepaid bearer key for one GPT or Claude model (100000-1000000 token budget). Spend it with no x402 at https://base.mapleai.shop/prepaid/v1/chat/completions (Bearer).","tags":["prepaid","budget"],"examples":["POST https://base.mapleai.shop/prepaid/codes/auto {}"],"inputModes":["application/json"],"outputModes":["application/json"]},{"id":"prepaid-key-status","name":"Check prepaid key status","description":"Free validity and token-budget check for an oms_buy_ key: GET https://base.mapleai.shop/prepaid/status (or https://mapleai.shop/v1/prepaid/status) with the key as Bearer.","tags":["prepaid","free"],"examples":["GET https://base.mapleai.shop/prepaid/status -H \"Authorization: Bearer oms_buy_...\""],"inputModes":["application/json"],"outputModes":["application/json"]}],"provider":{"organization":"MapleAI","url":"https://base.mapleai.shop"}}