Moonshot
Every Moonshot model on Synthorai: one endpoint, live prices.
2 models · chat / code / reasoning / tools · from $0.574/M input
Why Moonshot via Synthorai
- Pay-as-you-go, no subscription. One key, every model; no Moonshot account required.
- Zero prompt retention. Zero prompt retention at the gateway by default; Moonshot's API data policies apply upstream. Details →
- Prompt caching. Automatic caching with hit/miss pricing: cached input tokens bill at the discounted cache-hit rate, no cache management required. Cache reads from $0.115/M.
Moonshot models & pricing
| Model | Input /M | Output /M | Cache read /M | Context |
|---|---|---|---|---|
| Kimi K2.7 Code | $0.95 | $4 | $0.19 | 256K |
| Kimi K2.5 | $0.574 | $3.011 | $0.115 | 262K |
Provider list prices: no platform markup. Prices refresh live on each model's page. These are official list prices. Logged-in customers may see effective prices including workspace discounts on /console/pricing.
Use Moonshot models in 30 seconds
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "kimi-k2.7-code",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "kimi-k2.7-code",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "kimi-k2.7-code",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("kimi-k2.7-code")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));About Moonshot
Moonshot AI's Kimi models are known for very long context windows and strong agentic coding and tool-use performance. Synthorai serves Kimi behind the same OpenAI-compatible endpoint as the rest of the catalogue, with pay-as-you-go pricing and no separate Moonshot account required.
FAQ
How do I get a Moonshot API key without a subscription?
You don't need a Moonshot account: sign up on Synthorai, create one API key, and every Moonshot model on this page works through the OpenAI-compatible endpoint: pay-as-you-go, no subscription (models marked "invited beta" additionally need an approved application).
What does the Moonshot API cost?
Token-billed models start at $0.574/M input tokens; every model's live per-unit price is in the table above. These are provider list prices with no platform markup.
Can I use my own Moonshot key (BYOK)?
BYOK isn't available for Moonshot yet; requests run on Synthorai's managed channels at the listed rates.
What is Moonshot's data-retention policy via API?
Zero prompt retention at the gateway by default; Moonshot's API data policies apply upstream.