# Kimi (Moonshot AI) LLM via x402 Gateway

> Kimi (Moonshot AI) LLM via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-12, last successful call 2026-05-15).

Calls Moonshot AI's Kimi flagship model for strong reasoning and long-context text generation tasks, billed per call via x402 micropayment.

## Facts

- Endpoint: POST https://x402-gateway-production.up.railway.app/api/llm/kimi?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Last successful call: 2026-05-15
- Success rate: 100% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-5d8409bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0nsmDLOmYt9Wdsy4tFqcD

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 x402-gateway-production-up-railway-app-5d8409bf -d '<json body>'
```

Example prompt: Use Kimi to analyze this 50-page contract and identify all clauses that could expose us to liability — it needs a model with strong reasoning and long-context handling.

## When to prefer this

Choose this endpoint when you need Moonshot AI's Kimi model specifically — particularly for tasks requiring strong multi-step reasoning or very long context windows (e.g. long document analysis, complex Q&A). Prefer over cheaper models when reasoning quality matters; prefer over GPT or Claude routes when Kimi's specific capabilities or cost profile is desired.

## Known failure modes

- Payment failure: x402 micropayment of $0.03 USDC not processed or wallet underfunded
- Invalid prompt or malformed request body returns 400 error
- Model timeout on extremely long contexts
- Rate limiting if too many concurrent requests
- Service downtime on the Railway-hosted gateway

## How this service works

Moonshot AI's flagship model — strong reasoning and long-context capabilities

## Output

Returns a text completion or chat response generated by Moonshot AI's Kimi model, which is optimized for deep reasoning and handling very long context windows.

## Example request

```json
{
 "model": "kimi",
 "messages": [
  {
   "role": "user",
   "content": "Summarize the key principles of effective communication in a professional setting."
  }
 ]
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "messages"
     ],
     "properties": {
      "seed": {
       "type": "integer",
       "description": "Model-supported seed; see /docs/llm-capabilities.md."
      },
      "stop": {
       "oneOf": [
        {
         "type": "string"
        },
        {
         "type": "array",
         "items": {
          "type": "string"
         },
         "maxItems": 4
        }
       ],
       "description": "Model-supported stop; see /docs/llm-capabilities.md."
      },
      "min_p": {
       "type": "number",
       "description": "Model-supported min_p; see /docs/llm-capabilities.md."
      },
      "tools": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "function"
        ],
        "properties": {
         "type": {
          "enum": [
           "function"
          ],
          "type": "string"
         },
         "function": {
          "type": "object",
          "properties": {
           "name": {
            "type": "string"
           },
           "strict": {
            "type": "boolean"
           },
           "parameters": {
            "type": "object"
           },
           "description": {
            "type": "string"
           }
          }
         }
        }
       },
       "description": "Client-executed function definitions; return results using role=tool and tool_call_id."
      },
      "top_k": {
       "type": "integer",
       "description": "Model-supported top_k; see /docs/llm-capabilities.md."
      },
      "top_p": {
       "type": "number",
       "description": "Model-supported top_p; see /docs/llm-capabilities.md."
      },
      "stream": {
       "type": "boolean",
       "description": "Return live OpenAI-compatible SSE after payment settlement."
      },
      "logprobs": {
       "type": "boolean",
       "description": "Model-supported logprobs; see /docs/llm-capabilities.md."
      },
      "messages": {
       "type": "array",
       "items": {
        "type": "object",
        "anyOf": [
         {
          "required": [
           "content"
          ]
         },
         {
          "required": [
           "tool_calls"
          ]
    
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-5d8409bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
