Skip to content
NewKimi K3.1 Pro is live
Moonshot AINew

Kimi K3.1 Pro

kimi-k3.1-pro

The standard Kimi K3.1 Pro, with its original safety behavior. For products where you want the guardrails the model comes with.

Input
Context
1M
Max output
131K
Tool calling
Streaming
Throughput
33 tok/s
Quantization
MXFP4
Reasoning effort
low, high, max
API formats
OpenAI, Anthropic, Responses

Price comparison with other providers

Input / output, per 1M tokens

ModelLibremodelMoonshot AIFireworks AITogether AIDeepInfraVeniceFeatherless
Kimi K3.1 ProLibremodelInput: $1.00 / Output: $6.00Moonshot AIInput: $2.00 / Output: $10.00+100% more than Libremodel / +67% more than LibremodelFireworks AIInput: $2.00 / Output: $10.00+100% more than Libremodel / +67% more than LibremodelTogether AIInput: $2.00 / Output: $10.00+100% more than Libremodel / +67% more than LibremodelDeepInfraInput: $1.90 / Output: $9.50+90% more than Libremodel / +58% more than LibremodelVeniceInput: $2.00 / Output: $10.00+100% more than Libremodel / +67% more than LibremodelFeatherlessInput: $2.00 / Output: $10.00+100% more than Libremodel / +67% more than Libremodel

Public prices from each provider as of November 28, 2026, per million tokens and before taxes. They may change. See the full comparison

Quickstart

Set it up in your coding agent: copy the instructions and your agent gets it ready, or do it by hand.

  1. 1

    Add Libremodel to your OpenCode config

    Paste it into any coding agent: it sets up OpenCode for you and tells you how to save the key, without writing it in the file.

    Or do it by hand

    • macOS and Linux:~/.config/opencode/opencode.json
    • Windows:%USERPROFILE%\.config\opencode\opencode.json
    {  "$schema": "https://opencode.ai/config.json",  "model": "libremodel/kimi-k3.1-pro",  "provider": {    "libremodel": {      "npm": "@ai-sdk/openai-compatible",      "name": "Libremodel",      "options": {        "baseURL": "https://api.libremodel.ai/v1",        "apiKey": "{env:LIBREMODEL_API_KEY}"      },      "models": {        "kimi-k3.1-pro-uncensored": {          "name": "Kimi K3.1 Pro Uncensored",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 131072          },          "cost": {            "input": 3,            "output": 9,            "cache_read": 0.3          },          "variants": {            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        },        "deepseek-v4.1-flash-1017-uncensored": {          "name": "DeepSeek V4.1 Flash Uncensored",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 131072          },          "cost": {            "input": 0.25,            "output": 0.9,            "cache_read": 0.04          },          "variants": {            "off": {              "reasoningEffort": "off"            },            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        },        "glm-5.3-flash-uncensored": {          "name": "GLM 5.3 Flash Uncensored",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 131072          },          "cost": {            "input": 0.3,            "output": 1.2,            "cache_read": 0.06          },          "variants": {            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        },        "kimi-k3.1-pro": {          "name": "Kimi K3.1 Pro",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 131072          },          "cost": {            "input": 1,            "output": 6,            "cache_read": 0.25          },          "variants": {            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        },        "deepseek-v4.1-flash-1017": {          "name": "DeepSeek V4.1 Flash",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 262144          },          "cost": {            "input": 0.04,            "output": 0.3,            "cache_read": 0.004          },          "variants": {            "off": {              "reasoningEffort": "off"            },            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        },        "minimax-m3.1-flash": {          "name": "MiniMax M3.1 Flash",          "tool_call": true,          "interleaved": {            "field": "reasoning_content"          },          "modalities": {            "input": [              "text",              "image"            ],            "output": [              "text"            ]          },          "limit": {            "context": 1048576,            "output": 131072          },          "cost": {            "input": 0.05,            "output": 0.2,            "cache_read": 0.005          },          "variants": {            "low": {              "reasoningEffort": "low"            },            "high": {              "reasoningEffort": "high"            },            "max": {              "reasoningEffort": "max"            }          }        }      }    }  }}

    New file: copy the whole file. Already have one: copy only the highlighted block and paste it in the same place of yours, keeping everything else.

  2. 2

    Connect your key

    The config reads the key from LIBREMODEL_API_KEY, so it never sits in the file. Use a key from your API keys page (it starts with sk-libremodel-) and open a new terminal.

    export LIBREMODEL_API_KEY="sk-libremodel-..."
  3. 3

    Pick the model and say hi

    opencode --model libremodel/kimi-k3.1-pro

    Send “Say ok.” to check it works. All 6 models are in the config, so you can switch any time.

Or call it from your code

from openai import OpenAI

client = OpenAI(
    base_url="https://api.libremodel.ai/v1",
    api_key="sk-libremodel-...",
)

response = client.chat.completions.create(
    model="kimi-k3.1-pro",
    messages=[
        {"role": "user", "content": "Hello, Libremodel"},
    ],
)
print(response.choices[0].message.content)

Performance

Median over the last 24 hours.

Latency · Time to first token

2.45 s

Uptime

Requests answered without errors over the last 24 hours.

100.00 %

Frequently asked questions

01What is Kimi K3.1 Pro?

The standard Kimi K3.1 Pro, with its original safety behavior. For products where you want the guardrails the model comes with.

02How much does Kimi K3.1 Pro cost?

Kimi K3.1 Pro costs $1.00 per million input tokens and $6.00 per million output tokens, with cached input at $0.25.

03What is the context length of Kimi K3.1 Pro?

Kimi K3.1 Pro has a context window of 1M tokens and writes up to 131K tokens per response.

04Does Kimi K3.1 Pro support tool calling?

Yes. Pass your functions in tools, as with the OpenAI SDK, and Kimi K3.1 Pro answers with the calls to make. The tool calling guide has an example.

05What inputs and outputs does Kimi K3.1 Pro support?

Kimi K3.1 Pro takes text and images, and answers with text.

06Can I set how much Kimi K3.1 Pro reasons?

Yes. Set the reasoning effort to low, high, max. If the request doesn't set one, it uses high.

Try Kimi K3.1 Pro

Create an account, add credit by card, and call it with your own key. You pay per token.

Other models

Moonshot AI
Uncensored

Kimi K3.1 Pro Uncensored

The heavy lifter, without the refusals.

Input
$3.00
Output
$9.00
Cached
$0.30

$ per 1M tokens

kimi-k3.1-pro-uncensored
DeepSeek
Uncensored

DeepSeek V4.1 Flash Uncensored

Fast, cheap, and it answers.

Input
$0.25
Output
$0.90
Cached
$0.04

$ per 1M tokens

deepseek-v4.1-flash-1017-uncensored
Z.ai
UncensoredNew

GLM 5.3 Flash Uncensored

GLM for a fraction of the price.

Input
$0.30
Output
$1.20
Cached
$0.06

$ per 1M tokens

glm-5.3-flash-uncensored
DeepSeek
Standard

DeepSeek V4.1 Flash

Cents per million tokens.

Input
$0.04
Output
$0.30
Cached
$0.004

$ per 1M tokens

deepseek-v4.1-flash-1017
MiniMax
Standard

MiniMax M3.1 Flash

Agents and code, for cents.

Input
$0.05
Output
$0.20
Cached
$0.005

$ per 1M tokens

minimax-m3.1-flash