{"uid":"cap_ptKES68xY577uj7DFUupG","slug":"momoai-chat-pay-per-call-llm-api-2cf5cbe5","name":"momoAI Chat — Pay-per-call LLM API","description":"Pay-per-use LLM API. Chat, reasoning, code review, translation, summarization, data extraction, and more. Pay with USDC on Base.","url":"https://aimomo.vercel.app/api/chat","method":"POST","headers":{},"bodySchema":{"type":"object","required":["messages"],"properties":{"messages":{"type":"array"},"max_tokens":{"type":"integer"},"temperature":{"type":"number"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string"},"model":{"type":"string"},"usage":{"type":"object","properties":{"total_tokens":{"type":"integer"},"prompt_tokens":{"type":"integer"},"completion_tokens":{"type":"integer"}}},"content":{"type":"string"},"finish_reason":{"type":"string"}}},"meta":{"type":"object","properties":{"model":{"type":"string"},"price":{"type":"string"},"endpoint":{"type":"string"},"timestamp":{"type":"string"}}},"success":{"type":"boolean"}}},"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_AyARfruATi6snmdJnf8ZU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat message array to a hosted LLM and returns a text completion, paying $0.01 USDC per call via x402 on Base.","exampleAgentPrompt":"Use momoAI's pay-per-call chat API to summarize the following article in 3 bullet points, keeping temperature at 0.3 and max_tokens at 300: 'Central banks worldwide are raising interest rates to combat inflation, but economists warn of recession risks...'","exampleUseCases":[{"title":"Review code changes for quality issues","prompt":"Use momoAI to review this pull request diff for potential bugs, security vulnerabilities, and style improvements. Keep it concise—max 500 tokens, temperature 0.2, and just flag the top 3 concerns."},{"title":"Extract customer data from support tickets","prompt":"Call momoAI to extract the customer name, issue type, and requested action from these 10 support emails. Return the results as JSON, use temperature 0.1 for accuracy, and keep total tokens under 400."},{"title":"Translate messages to multiple languages","prompt":"Use momoAI to translate this customer message into Spanish, French, and German. Set temperature to 0.0 for consistency and max_tokens to 200 per translation."}],"resultDescription":"Returns a JSON object with a 'data' field containing the completion text, model name, token usage breakdown (prompt, completion, total tokens), and finish reason, plus a 'meta' field with price, endpoint, and timestamp, and a top-level 'success' boolean.","failureModes":["Payment not included or insufficient USDC — returns 402 Payment Required","Invalid messages array format — returns 400 validation error","Model overloaded or unavailable — returns 503 or timeout","max_tokens set too high for model context window — truncation or error","temperature out of valid range — returns 400 validation error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-call LLM API that bills in USDC on Base via the x402 protocol, avoiding subscription commitments. Ideal for AI agents that want to pay only for what they use, for low-volume or bursty workloads, or for pipelines that need programmable crypto-native payments for each LLM call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T00:34:52.973Z","isFirstParty":false}