Skip to content
Dashboard

KAT-Coder-Pro V1

KAT-Coder-Pro V1 is KwaiPilot's agentic coding model. It achieves a 73.4% resolve rate on SWE-Bench Verified with a context window of 256K tokens, parallel tool calling, and multi-turn support.

View API reference
Input and output price
Input $0.30, Output $1.20, Per 1M tokens
24h uptime
Loading AI Gateway uptime
import { streamText } from 'ai'
const result = streamText({
model: 'kwaipilot/kat-coder-pro-v1',
prompt: 'Why is the sky blue?'
})
Read docs

Copy link to headingPlayground

Try out KAT-Coder-Pro V1 by KwaiPilot. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

kwaipilot logo
kwaipilot logo

KAT-Coder-Pro V1

Copy link to headingProviders

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Max Output
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Free Tier
Release Date
256K32K
$0.30/M
$1.20/M
Read$0.06/M
11/09/2025

Copy link to headingUptime

Direct request success rate on AI Gateway and per-provider. Visit the docs for more info.

Copy link to headingThroughput

P50 throughput on live AI Gateway traffic, in tokens per second (TPS). Visit the docs for more info.

Copy link to headingLatency

P50 time to first token (TTFT) on live AI Gateway traffic, in milliseconds. View the docs for more info.

Getting started

Call KAT-Coder-Pro V1 through AI Gateway with the AI SDK generateText and streamText functions, or through the OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages APIs by changing the base URL. AI Gateway authenticates the request and routes it to an available provider.

Install the AI SDK (pnpm add ai dotenv), create an API key from the API Keys page, and set it as AI_GATEWAY_API_KEY in your environment. Full setup is covered in the text generation quickstart.

index.ts
import { generateText } from 'ai';
import 'dotenv/config';
async function main() {
const result = await generateText({
model: 'kwaipilot/kat-coder-pro-v1',
prompt: 'Why is the sky blue?',
});
console.log(result.text);
}
main().catch(console.error);

Top-level parameters

The same KAT-Coder-Pro V1 request in each API format AI Gateway supports.

top-level-params.ts
import { generateText } from 'ai';
import 'dotenv/config';
async function main() {
const result = await generateText({
model: 'kwaipilot/kat-coder-pro-v1',
system: 'You are a concise technical assistant.',
prompt: 'Summarize the tradeoffs between static generation and SSR.',
maxOutputTokens: 1024,
temperature: 0.5,
});
console.log(result.text);
}
main().catch(console.error);

Standard parameters like prompt, messages, temperature, and tools work as documented in the AI SDK docs. These are the parameters with model-specific behavior.

ParameterTypeRequiredDescription
modelstringYesModel ID in the form creator/model, e.g. kwaipilot/kat-coder-pro-v1. AI Gateway routes the request to an available provider.
maxOutputTokensnumberNoHard cap on generated tokens. KAT-Coder-Pro V1 supports up to 32,000 output tokens.
providerOptionsRecord<string, JSONValue>NoAI Gateway routing options under gateway, plus any provider-native options under the provider’s own namespace — see the table below.

Input limits

InputFormatsSourcesMax countMax sizeLimits
TextPrompt and response share the 256K-token context window

Provider options

Set AI Gateway routing options under providerOptions.gateway. For provider-specific options, pass them under the provider’s namespace as documented by the AI SDK.

Learn more in the AI SDK provider docs.

provider-options.ts
import { generateText } from 'ai';
import 'dotenv/config';
async function main() {
const result = await generateText({
model: 'kwaipilot/kat-coder-pro-v1',
prompt: 'Why is the sky blue?',
providerOptions: {
gateway: {
only: ['novita'],
},
},
});
console.log(result.text);
}
main().catch(console.error);

These AI Gateway routing options apply to every model. Provider-specific options pass through under the provider’s own namespace (for example providerOptions.anthropic) exactly as documented by the AI SDK.

ParameterTypeRequiredDescription
providerOptions.gateway.onlystring[]NoRestrict routing to these provider slugs. Requests fail over only within the listed providers.
providerOptions.gateway.orderstring[]NoPreferred provider order. Listed providers are tried first; unlisted providers remain available as fallbacks.
providerOptions.gateway.sort'cost' | 'ttft' | 'tps'NoRank candidate providers by price, time to first token, or tokens per second instead of the default routing order.
providerOptions.gateway.zeroDataRetentionbooleanNoRoute only to providers with a zero-data-retention policy for this model.

Routing across providers

AI Gateway serves the same model through multiple providers and fails over automatically. order expresses a preference while keeping every provider eligible; only is a hard allowlist — if none of the listed providers are available the request fails instead of falling back.

Options under a provider's own namespace (for example providerOptions.anthropic) are forwarded to that provider with the request. Providers ignore option namespaces that don't apply to them, so it is safe to set provider options alongside gateway routing options.

Tool calling

Expose tools the model can call. Define each tool’s inputs with a Zod schema.

tool-calling.ts
import { generateText, tool } from 'ai';
import { z } from 'zod';
import 'dotenv/config';
async function main() {
const result = await generateText({
model: 'kwaipilot/kat-coder-pro-v1',
prompt: 'What is the weather in San Francisco?',
tools: {
getWeather: tool({
description: 'Get the current weather for a location',
inputSchema: z.object({ location: z.string() }),
execute: async ({ location }) => ({ location, temperatureC: 18 }),
}),
},
});
console.log(result.text);
}
main().catch(console.error);

Copy link to headingMore models by KwaiPilot

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
256K
$0.15/M
$0.60/M
Read$0.03/M
+1
streamlake logo
07/10/2026
256K
$0.74/M
$2.96/M
Read$0.15/M
+1
streamlake logo
07/10/2026
256K
$0.30/M
$1.20/M
Read$0.06/M
streamlake logo
03/27/2026

Copy link to headingAbout KAT-Coder-Pro V1

KAT-Coder-Pro V1 is the first production release from KwaiPilot's KAT-Coder series, designed for agentic software engineering at repository scale. On SWE-Bench Verified, a standard benchmark for autonomous issue resolution, it achieves a 73.4% resolve rate.

The model's agentic design centers on two capabilities. Parallel tool calling lets the model issue multiple tool calls simultaneously instead of waiting sequentially. Multi-turn support enables sustained coding sessions. That efficiency gain matters for agent loops billed per token or per call.

KAT-Coder-Pro V1 covers eight task types: feature implementation, feature enhancement, bug fixing, refactoring, performance optimization, test case generation, code understanding, and configuration and deployment. The context window of 256K tokens lets it ingest large codebases, multi-file diffs, and extended conversation history in a single pass. Full technical details appear at https://novita.ai.

Copy link to headingWhat To Consider When Choosing a Provider

  • Configuration: KAT-Coder-Pro V1 targets multi-turn agentic sessions. Factor context window consumption and session state into your integration planning. See https://novita.ai for methodology and benchmark details from KwaiPilot.
  • Zero Data Retention: Zero Data Retention is offered on a per-provider and model basis. See the documentation for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen to Use KAT-Coder-Pro V1

Best for

  • Automated issue resolution: Pull request generation in real repositories end-to-end
  • Multi-file refactoring: Refactoring workflows that span many files in one session
  • Parallel tool pipelines: Agent pipelines where parallel tool calling reduces total completion time
  • Scale test generation: Test case generation across existing codebases

Consider alternatives when

  • General reasoning needs: Writing or multimodal input sits outside a coding-tuned model's scope
  • Simple completions: A lighter model suffices with minimal context
  • LiveCodeBench benchmark: Competitive programming is the primary evaluation criterion

KAT-Coder-Pro V1 pairs a 73.4% SWE-Bench Verified resolve rate with parallel tool calling and multi-turn support. Use it for software engineering automation across real repository tasks. Route requests through AI Gateway for access via Novita AI.

Copy link to headingFrequently Asked Questions

  • What is KAT-Coder-Pro V1's SWE-Bench Verified score?

    73.4% resolve rate on SWE-Bench Verified, which tests autonomous resolution of real GitHub issues.

  • What does parallel tool calling mean in practice?

    The model issues multiple tool calls in a single inference step instead of waiting for each response sequentially. That cuts latency when several operations can run at once.

  • What is the context window size?

    KAT-Coder-Pro V1 has a context window of 256K tokens. You can fit large codebases, multi-file diffs, and extended conversation history in a single context.

  • What types of software engineering tasks does it support?

    Eight task types: feature implementation, feature enhancement, bug fixing, refactoring, performance optimization, test case generation, code understanding, and configuration and deployment.

  • What is the pricing for KAT-Coder-Pro V1?

    Current pricing is shown on this page. AI Gateway routes across providers, and rates may vary by provider.

  • How do I try KAT-Coder-Pro V1?

    Call the model through AI Gateway with your provider credentials.

Your use is subject to KwaiPilot's Terms & Privacy Policies.