# momoAI Chat — Pay-per-Call LLM API

> momoAI Chat — Pay-per-Call LLM API is a paid API for AI agents from momoai-cyan.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Accepts a conversation message array and returns an LLM-generated response, billed at $0.01 USDC per call via x402 on Base.

## Facts

- Endpoint: POST https://momoai-cyan.vercel.app/api/chat
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/momoai-chat-pay-per-call-llm-api-80ee71af
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bCP3yYQEAh6A8sqdt9kI2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability momoai-chat-pay-per-call-llm-api-80ee71af -d '<json body>'
```

Example prompt: 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...' "}]

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-use LLM API. Chat, reasoning, code review, translation, summarization, data extraction, and more. Pay with USDC on Base.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "messages"
 ],
 "properties": {
  "messages": {
   "type": "array"
  },
  "max_tokens": {
   "type": "integer"
  },
  "temperature": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/momoai-chat-pay-per-call-llm-api-80ee71af/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from momoai-cyan.vercel.app](https://www.zero.xyz/host/momoai-cyan.vercel.app/llms.txt)
