{"uid":"cap_7j5Q7_Fqc1sF_tBV8LVgV","slug":"momoai-api-think-pay-per-call-llm-reasoning-endpoint-13683e48","name":"momoAI /api/think — Pay-per-Call LLM Reasoning Endpoint","description":"Pay-per-use LLM API. Chat, reasoning, code review, translation, summarization, data extraction, and more. Pay with USDC on Base.","url":"https://momoai-cyan.vercel.app/api/think?utm_source=zero.xyz","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"},"deep_thinking":{"type":"boolean"}}},"success":{"type":"boolean"}}},"example":{"request":{"messages":[{"role":"user","content":"Review this Python function for bugs and suggest improvements: def add(a, b): return a - b"}],"max_tokens":300,"temperature":0.2},"response":{"data":{"id":"063bcae3ed2443dc88a6acde3ea567fd","model":"mimo-v2.5-pro","usage":{"total_tokens":571,"prompt_tokens":271,"completion_tokens":300,"prompt_tokens_details":{"cached_tokens":192},"completion_tokens_details":{"reasoning_tokens":14}},"content":"# Code Review: `add` Function\n\n## 🐛 Bug Found\n\nThe function name says **add**, but it actually **subtracts**:\n\n```python\ndef add(a, b):\n    return a - b  # ❌ This subtracts, not adds!\n```\n\n### Example of the bug:\n```python\nadd(5, 3)  # Expected: 8, Actual: 2\n```\n\n---\n\n## ✅ Fix\n\n```python\ndef add(a, b):\n    return a + b\n```\n\n---\n\n## 💡 Suggested Improvements\n\nHere's a more robust version with better practices:\n\n```python\ndef add(a: float, b: float) -> float:\n    \"\"\"\n    Returns the sum of two numbers.\n    \n    Args:\n        a: First number\n        b: Second number\n    Returns:\n        The sum of a and b\n    \"\"\"\n    return a + b\n```\n\n### What changed and why:\n\n| Improvement | Reason |\n|---|---|\n| **`a + b`** | Correct operator (the core bug fix) |\n| **Type hints** (`a: float, b: float`) | Makes expected input/output clear |\n| **Docstring** | Documents purpose, args, and return value |\n\n---\n\n## 🔍 Key Takeaway\n\nThis is a classic example of a **logic error** — the","finish_reason":"length"},"meta":{"model":"mimo-v2.5-pro","price":"$0.05","endpoint":"/api/think","provider":"mimo","timestamp":"2026-06-19T06:10:43.451Z","deep_thinking":true},"success":true}},"exampleRequest":{"messages":[{"role":"user","content":"Review this Python function for bugs and suggest improvements: def add(a, b): return a - b"}],"max_tokens":300,"temperature":0.2},"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.00","successRate":"0.00","reviews":1,"stars":null,"state":"rated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xex1W9IgLRBst3QTLTWkr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends a chat/reasoning prompt to an LLM and returns a generated text response, billed at $0.05 USDC per call via x402 on Base.","exampleAgentPrompt":"Use momoAI to review this Python function for bugs and suggest improvements — here's the code: `def add(a, b): return a - b` — keep the response under 300 tokens and set temperature to 0.2.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a 'data' field containing the generated text content, model name, token usage breakdown (prompt, completion, total), and finish reason. Also includes a 'meta' field with pricing, timestamp, endpoint, and a deep_thinking boolean flag. Top-level 'success' boolean indicates call status.","failureModes":["Payment not received or insufficient USDC balance — 402 Payment Required returned","Invalid or missing 'messages' array — 400 Bad Request","Model overloaded or unavailable — 503 Service Unavailable","max_tokens set too high for the model context window — truncated or error response","Malformed message objects in array — validation error","Network timeout on Vercel serverless function — 504 Gateway Timeout"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call LLM with no subscription, billed in USDC on Base via x402 — ideal for AI agents that need to make occasional or burst LLM calls without committing to a monthly API plan, or when operating in a crypto-native payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":1,"lastUsedAt":"2026-07-17T21:13:48.927Z","lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T14:45:51.785Z","isFirstParty":false,"canonicalSlug":"momoai-api-think-pay-per-call-llm-reasoning-endpoint-13683e48"}