moonshot-v1-128k is no longer served. This page now documents moonshot-v1-32k, the current model in the same family. See the full directory for every available ID.Moonshot v1 128K handles long documents and extended conversations with ease. Ideal for RAG pipelines and document analysis.
| Provider | Moonshot AI |
|---|---|
| Input Price | $0.950 per 1M tokens |
| Output Price | $2.85 per 1M tokens |
| Context Window | 128K tokens |
| AIWave Endpoint | moonshot-v1-32k |
curl https://aiwave.live/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{"model":"moonshot-v1-128k","messages":[{"role":"user","content":"Hello!"}]}'
These figures come straight from the live rate above — monthly token volume multiplied by the per-million price. Adjust the volumes to match your own traffic.
| Workload | Assumption | Monthly tokens | Monthly cost |
|---|---|---|---|
| Chatbot | ~50k short conversations | 5.0M in / 1.5M out | $9.03 |
| Coding assistant | one developer, full-time | 20.0M in / 4.0M out | $30.40 |
| RAG / document Q&A | long retrieved contexts | 50.0M in / 2.0M out | $53.20 |
Rates are pulled from the live pricing endpoint. Token accounting is returned in the usage field of every non-streaming response.
The endpoint is OpenAI-compatible, so the official SDKs work once you change base_url. Nothing else in your code needs to move.
from openai import OpenAI
client = OpenAI(
api_key="sk-YOUR_KEY",
base_url="https://aiwave.live/v1",
)
response = client.chat.completions.create(
model="moonshot-v1-32k",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)
print(response.usage) # exact token counts for cost tracking
Streaming uses the same server-sent-event format as OpenAI:
stream = client.chat.completions.create(
model="moonshot-v1-32k",
messages=[{"role": "user", "content": "Explain vector search"}],
stream=True,
)
for chunk in stream:
delta = chunk.choices[0].delta.content
if delta:
print(delta, end="", flush=True)
Node.js, LangChain, LlamaIndex, the Vercel AI SDK, Cursor and Cline all accept a custom base URL, so they work with this model without a dedicated provider plugin. Full parameter reference lives in the Chat Completions docs.
Same provider, same API surface — the practical difference is price and capability. Because every model here speaks the OpenAI wire format, switching between them is a one-word change to the model field.
| Model ID | Input / 1M | Output / 1M |
|---|---|---|
moonshot-v1-8k | $0.3 | $2.2 |
moonshot-v1-8k-vision-preview | $0.3 | $2.301 |
kimi-k2.5 | $0.66 | $3.3 |
moonshot-v1-32k (this model) | $0.95 | $2.85 |
moonshot-v1-32k-vision-preview | $1.15 | $3.45 |
kimi-k3 | $4.5 | $22.5 |