{"uid":"cap_bCP3yYQEAh6A8sqdt9kI2","slug":"momoai-chat-pay-per-call-llm-api-80ee71af","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://momoai-cyan.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_nemsVE6XYL7XuMkqI6AW_","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":"Accepts a conversation message array and returns an LLM-generated response, billed at $0.01 USDC per call via x402 on Base.","exampleAgentPrompt":"Send this message array to momoAI's chat endpoint — max 512 tokens, temperature 0.7 — and return the response: [{\"role\":\"user\",\"content\":\"Summarize the following contract clause in plain English: 'The licensor grants a non-exclusive, royalty-free, worldwide license...' \"}]","exampleUseCases":null,"resultDescription":"Returns a JSON object containing the LLM-generated text in data.content, the model used, prompt/completion/total token counts, finish reason, and metadata including price, endpoint, and timestamp. Also includes a top-level success boolean.","failureModes":["Payment not included or insufficient USDC — 402 Payment Required response","Missing required 'messages' field — 400 Bad Request","Model overload or upstream LLM timeout — 503 or 504 error","Invalid temperature or max_tokens value — 400 validation error","Malformed messages array format — 400 Bad Request"],"whenToPreferThis":"Choose this endpoint when you need a simple pay-per-call LLM chat interface billed in USDC on Base via x402, with no subscription or API key required — ideal for agents that want to pay only for what they use and need flexibility across chat, summarization, translation, code review, and data extraction tasks in a single endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:45:05.003Z","isFirstParty":false}