# Kwaipilot: KAT-Coder-Pro V2 — Use via Hanzo AI API > KAT-Coder-Pro V2 is the latest high-performance model in KwaiKAT’s KAT-Coder series, designed for complex enterprise-grade software engineer... Access via Hanzo's OpenAI-compatible API. Context: 262K. Get started free. [Models](https://hanzo.ai/models)/[KwaiPilot](https://hanzo.ai/models/kwaipilot)/kat-coder-pro-v2 # Kwaipilot: KAT-Coder-Pro V2 [KwaiPilot](https://hanzo.ai/models/kwaipilot) KAT-Coder-Pro V2 is the latest high-performance model in KwaiKAT’s KAT-Coder series, designed for complex enterprise-grade software engineering and SaaS integration. It builds on the agentic coding strengths of earlier versions,... text [Get API Key](https://hanzo.ai/signup)[View Docs](https://docs.hanzo.ai)[Try in Chat](https://hanzo.ai/chat) ## Specifications Context Window 262K Modalities text Input $0.360 / M tokens Output $1.44 / M tokens Status available Category third-party Model ID kwaipilot/kat-coder-pro-v2 ## 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: 'kwaipilot/kat-coder-pro-v2', 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="kwaipilot/kat-coder-pro-v2", 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": "kwaipilot/kat-coder-pro-v2", "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: "kwaipilot/kat-coder-pro-v2", Messages: []openai.ChatCompletionMessage{ {Role: openai.ChatMessageRoleUser, Content: "Hello!"}, }, }, ) fmt.Println(resp.Choices[0].Message.Content) } ``` ## More from KwaiPilot [Kwaipilot: KAT-Coder-Air V2.5256KKAT-Coder-Air V2.5 is a flagship-level Agentic Coding model that can directly hand over an entire issue or an entire business workflow to it, allowing it to autonomously locate and make...](https://hanzo.ai/models/kwaipilot/kat-coder-air-v2.5)[Kwaipilot: KAT-Coder-Pro V2.5256KKAT-Coder-Pro V2.5 is a flagship-level Agentic Coding model that can directly hand over an entire issue or an entire business workflow to it, allowing it to autonomously locate and make...](https://hanzo.ai/models/kwaipilot/kat-coder-pro-v2.5) [View all KwaiPilot models →](https://hanzo.ai/models/kwaipilot) ## Use Kwaipilot: KAT-Coder-Pro V2 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)