Skip to main content
Kimi K2.6 is an open-source, multimodal agentic model from Moonshot AI. It accepts both text and image inputs and integrates visual and language understanding with strong agentic capabilities. K2.6 supports both instant and thinking modes and excels at multi-turn function calling with images interleaved between tool calls.

How to use Kimi K2.6

Get started with this model in a few lines of code. The model ID is moonshotai/Kimi-K2.6 and it supports a 256K context window.

Thinking mode

K2.6 supports both instant mode (fast responses) and thinking mode (step-by-step reasoning). When enabling thinking mode, you’ll receive both a reasoning field and a content field. By default, the model uses thinking mode.
Use the right temperature: Set temperature=1.0 for thinking mode and temperature=0.6 for instant mode. The wrong temperature can significantly degrade output quality.

Vision capabilities

K2.6 accepts image inputs alongside text, so it can answer questions about visual content, reason across text and images, and ground tool calls in what it sees.

Use cases

K2.6 excels in scenarios requiring combined visual understanding and agentic execution:
  • Coding from visual specs: Generate code from UI designs, wireframes, or video workflows, then autonomously orchestrate tools for implementation.
  • Visual data processing pipelines: Analyze charts, diagrams, or screenshots and chain tool calls to extract, transform, and act on visual data.
  • Multi-modal agent workflows: Build agents that maintain coherent behavior across extended sequences of tool calls interleaved with image analysis.
  • Document intelligence: Process complex documents with mixed text and visuals, extracting information and taking actions based on what’s seen.
  • UI testing and automation: Analyze screenshots, identify elements, and generate test scripts or automation workflows.
  • Cross-modal reasoning: Solve problems that require understanding relationships between visual and textual information.

Agent swarm capability

K2.6 can decompose a complex task into parallel sub-tasks and coordinate them as a swarm of domain-specific sub-agents. You enable this by exposing two tools and prompting the model to delegate: one tool to spawn a sub-agent with a focused task, and one for sub-agents to report results back to the orchestrator. Given those tools and a high-level goal, K2.6 plans the decomposition, fans out the work in parallel, and aggregates the results. This pattern shows up in coding agents like OpenCode, where the model issues several tool calls in parallel to solve a problem faster.
The exact tool schema for sub-agent spawning is up to your harness. Check the Kimi GitHub repo for the latest implementation guidance.

Prompting tips

Multi-turn tool calling with images

K2.6 can perform multi-turn tool calls with images interleaved between the calls, maintaining coherent tool use across long sequences while processing visual inputs at each step. This makes K2.6 ideal for visual workflows where the model needs to analyze images, call tools based on what it sees, receive results, analyze new images, and continue iterating. The example below demonstrates a four-turn conversation where the model:
  1. Calls the weather tool for multiple cities in parallel.
  2. Follows up with restaurant recommendations based on weather context.
  3. Identifies a company from an image and fetches its stock price.
  4. Processes a new city image to get weather and restaurant info.
Python

Sample output

Here’s what the conversation looks like in practice:
Notice how K2.6 maintains context across all turns: it identifies Google from the logo image to call the stock price tool (Turn 3), and recognizes New York City from the skyline image to call the appropriate weather and restaurant tools (Turn 4).