# Citiview Agent Market – Kimi K2.7 Code Chat Completions

> Citiview Agent Market – Kimi K2.7 Code Chat Completions is a paid API for AI agents from agents.citiviewgroup.com, paid per call via x402, $0.018422/call, status unknown (last checked 2026-10-15).

OpenAI-compatible chat completions powered by Moonshot Kimi K2.7 Code, a 262K-context coding and software-agent model with tool-calling, billed per token via x402

## Facts

- Endpoint: GET https://agents.citiviewgroup.com/v1/kimi-code/chat/completions?utm_source=zero.xyz
- Price: $0.018422/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/citiview-agent-market-kimi-k2-7-code-chat-completions-9409b5ab
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HRTksy6h068zrFppqksdI

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 citiview-agent-market-kimi-k2-7-code-chat-completions-9409b5ab
```

Example prompt: Using the Kimi K2.7 Code model, write me a Python function that takes a list of integers and returns all prime numbers in it — use up to 512 output tokens and a temperature of 0.2.

## When to prefer this

Choose this endpoint when you need an OpenAI-compatible coding or software-agent LLM with a very large 262K context window, tool-calling support, and pay-per-token billing via x402 micropayments instead of a monthly API key subscription. It is particularly well-suited for autonomous agent pipelines that process large codebases or long context inputs and want fine-grained cost control at $1.9/M input and $8/M output tokens.

## Known failure modes

- Insufficient x402 payment — 402 response if payment header is missing or too low
- Prompt too long — exceeds 262K context window, request rejected
- Rate limiting — too many concurrent requests
- Invalid parameter values — non-numeric temperature or max_tokens cause validation errors
- Service unavailability — upstream Moonshot API downtime

## How this service works

OpenAI-compatible chat completions on Moonshot Kimi K2.7 Code, a coding and software-agent model with tool calling (262K context). Set your OpenAI SDK base URL to https://agents.citiviewgroup.com/v1/kimi-code and pay per token with x402 instead of an API key: $1.9 per million input and $8 per million output tokens, minimum $0.002 a call, at most $0.1742. The 402 quotes your request's maximum; "upto" payers are charged only the tokens used. Same request/response shape as OpenA

## Output

Returns an OpenAI-format chat.completion JSON object containing the assistant's message content, role, finish reason, model name ('kimi-k2.7-code'), and token usage breakdown (prompt_tokens, completion_tokens, total_tokens). Response shape is identical to OpenAI's chat completions API.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "prompt"
     ],
     "properties": {
      "prompt": {
       "type": "string",
       "description": "User message"
      },
      "system": {
       "type": "string",
       "description": "Optional system message"
      },
      "max_tokens": {
       "type": "integer"
      },
      "temperature": {
       "type": "number"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "chatcmpl-...",
  "model": "kimi-k2.7-code",
  "usage": {
   "total_tokens": 18,
   "prompt_tokens": 14,
   "completion_tokens": 4
  },
  "object": "chat.completion",
  "choices": [
   {
    "index": 0,
    "message": {
     "role": "assistant",
     "content": "Bonjour !"
    },
    "finish_reason": "stop"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/citiview-agent-market-kimi-k2-7-code-chat-completions-9409b5ab/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.citiviewgroup.com](https://www.zero.xyz/host/agents.citiviewgroup.com/llms.txt)
