# MoonshotAI Kimi Latest — Use via Hanzo AI API > This model always redirects to the latest model in the MoonshotAI Kimi family. Access via Hanzo's OpenAI-compatible API. Context: 1M. Get started free. [Models](https://hanzo.ai/models)/[~moonshotai](https://hanzo.ai/models/~moonshotai)/kimi-latest # MoonshotAI Kimi Latest [~moonshotai](https://hanzo.ai/models/~moonshotai) This model always redirects to the latest model in the MoonshotAI Kimi family. text [Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat) ## Specifications Context Window 1M Modalities text Input $3.12 / M tokens Output $15.60 / M tokens Status available Category third-party Model ID ~moonshotai/kimi-latest ## Quick Start TypeScript ``` import OpenAI from 'openai' const client = new OpenAI({ apiKey: process.env.HANZO_API_KEY, baseURL: 'https://api.hanzo.ai/v1' }) const response = await client.chat.completions.create({ model: '~moonshotai/kimi-latest', messages: [{ role: 'user', content: 'Hello!' }] }) console.log(response.choices[0].message.content) ``` Python ``` from openai import OpenAI client = OpenAI( api_key=os.environ["HANZO_API_KEY"], base_url="https://api.hanzo.ai/v1" ) response = client.chat.completions.create( model="~moonshotai/kimi-latest", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content) ``` cURL ``` curl https://api.hanzo.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $HANZO_API_KEY" \ -d '{ "model": "~moonshotai/kimi-latest", "messages": [{"role": "user", "content": "Hello!"}] }' ``` Go ``` package main import ( "context" "fmt" "os" "github.com/sashabaranov/go-openai" ) func main() { cfg := openai.DefaultConfig(os.Getenv("HANZO_API_KEY")) cfg.BaseURL = "https://api.hanzo.ai/v1" client := openai.NewClientWithConfig(cfg) resp, _ := client.CreateChatCompletion(context.Background(), openai.ChatCompletionRequest{ Model: "~moonshotai/kimi-latest", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) } ``` ## Use MoonshotAI Kimi Latest via Hanzo AI One API key. Every major model. OpenAI-compatible. Start free. [Get Free API Key](https://hanzo.ai/signup)[Browse All Models](https://hanzo.ai/models)