Kimi K3 API
Moonshot AI native multimodal agentic model with a 1M-token context window, built for long-horizon coding, knowledge work, and reasoning.
- Input / 1M tokens
- $3.3
- Output / 1M tokens
- $16.5
- Cache read / 1M tokens
- $0.33
- Context window
- 1.05M tokens
Privacy & execution
This model supports private inference inside a hardware-isolated Trusted Execution Environment (TEE), protecting data while it is processed. HTTPS protects data in transit; client-to-model end-to-end encryption depends on the model and integration.
Attestation provides cryptographic evidence of the execution environment’s identity and configuration. Where response signatures are available, you can also verify the integrity of the request and response.
Verification documentationMake your first request
Call /v1/chat/completions over HTTPS.
Get an API key and set the NEARAI_API_KEY environment variable.
This HTTP example uses HTTPS. Use the SDK below to verify Gateway and model attestations, then response signatures.
Build and Verify with the SDK
Verify the Gateway, and model attestations where supported by the language SDK.
Verification guideSet NEARAI_API_KEY before running an example.
Kimi K3 API FAQ
- How much does the Kimi K3 API cost?
- $3.30 per 1M input tokens and $16.50 per 1M output tokens on NEAR AI Cloud, and $0.33 per 1M cached input tokens.
- What is the context window of Kimi K3?
- 1.05M tokens.
- How do I call the Kimi K3 API?
- Create an API key on NEAR AI Cloud, then send requests to https://cloud-api.near.ai/v1/chat/completions with the model ID moonshotai/kimi-k3. The endpoint is OpenAI-compatible, so OpenAI SDKs work by setting the base URL to https://cloud-api.near.ai/v1.
- Is Kimi K3 private on NEAR AI?
- It runs in a third-party provider's attested secure enclave (TEE). Verification tools differ by provider.