> ## Documentation Index
> Fetch the complete documentation index at: https://veniceai-feat-models-redesign.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Kimi K2.7 Code API

> Kimi K2.7 Code API on Venice: 250K context, $0.75 input and $3.50 output per 1M tokens. Private, with zero data retention. Pricing, specs and code examples.

export const HubMount = ({view, children, ...props}) => {
  const [hub, setHub] = useState(null);
  const [failed, setFailed] = useState(false);
  useEffect(() => {
    let alive = true;
    const w = window;
    if (!w.__veniceModelHub) {
      const urls = w.location.hostname === 'localhost' ? ['http://localhost:3333/data/model-hub.bundle.json', '/data/model-hub.bundle.json'] : ['/data/model-hub.bundle.json'];
      const load = i => fetch(urls[i], {
        cache: 'no-cache'
      }).then(res => {
        if (!res.ok) throw new Error(`bundle ${res.status}`);
        return res.json();
      }).catch(err => i + 1 < urls.length ? load(i + 1) : Promise.reject(err));
      const Frag = <></>.type;
      const h = (type, props, ...kids) => {
        const T = type;
        const {key, ...rest} = props || ({});
        if (!kids.length) return <T key={key} {...rest} />;
        if (kids.length === 1) return <T key={key} {...rest}>{kids[0]}</T>;
        return <T key={key} {...rest}>{kids.map((kid, i) => <Frag key={i}>{kid}</Frag>)}</T>;
      };
      w.__veniceModelHub = load(0).then(bundle => new Function(`return (${bundle.code})`)()({
        h,
        Fragment: Frag,
        useState,
        useEffect,
        useRef,
        useMemo,
        useCallback
      }));
    }
    w.__veniceModelHub.then(instance => {
      if (alive) setHub(instance);
    }).catch(() => {
      w.__veniceModelHub = null;
      if (alive) setFailed(true);
    });
    return () => {
      alive = false;
    };
  }, []);
  const View = hub ? hub[view] : null;
  if (View) return <View {...props}>{children}</View>;
  if (failed) {
    return <div className="vx-mount is-failed">
        <p className="vx-mount-note">The interactive model catalog could not load. The full data is below.</p>
        {children}
      </div>;
  }
  return <div className="vx-mount" aria-busy="true">
      <div className="vx-mount-skeleton" aria-hidden="true"><span /><span /><span /></div>
      <div className="vx-mount-source">{children}</div>
    </div>;
};

<HubMount view="ModelPage" data={{"family":{"slug":"kimi-k2-7-code","name":"Kimi K2.7 Code","modality":"text","task":"chat","provider":"moonshot","description":"Kimi K2.7 Code is Moonshot AI's coding-focused agentic model built on Kimi K2.6, with 1T total parameters and 32B active parameters. It always operates in thinking mode, supports text and image input, and targets long-horizon software engineering, agentic task decomposition, and multi-turn coding workflows with 256K context.","primary":"kimi-k2-7-code","variants":["kimi-k2-7-code"],"created":1781308800,"updated":1781308800,"privacy":["private"],"openWeights":true},"models":[{"id":"kimi-k2-7-code","name":"Kimi K2.7 Code","type":"text","modality":"text","task":"chat","variant":"standard","provider":"moonshot","created":1781308800,"description":"Kimi K2.7 Code is Moonshot AI's coding-focused agentic model built on Kimi K2.6, with 1T total parameters and 32B active parameters. It always operates in thinking mode, supports text and image input, and targets long-horizon software engineering, agentic task decomposition, and multi-turn coding workflows with 256K context.","source":"https://huggingface.co/moonshotai/Kimi-K2.7-Code","privacy":"private","openWeights":true,"text":{"context":256000,"maxOutput":65536,"quantization":"int4","reasoning":{"supported":true,"effort":["low","medium","high"],"defaultEffort":"high"},"caps":{"tools":true,"structured":true,"vision":true,"maxImages":10,"webSearch":true,"code":true}},"pricing":{"input":0.75,"output":3.5,"cacheRead":0.16,"blended":1.4375},"headline":{"value":1.4375,"unit":"per 1M tokens","basis":"blended"},"endpoints":[{"id":"chat","method":"POST","path":"/chat/completions","name":"Chat Completions","status":"stable","recommended":true},{"id":"responses","method":"POST","path":"/responses","name":"Responses","status":"alpha"}],"family":"kimi-k2-7-code"}],"related":{"similar":[{"slug":"qwen-3-6-plus-uncensored","name":"Qwen 3.6 Plus Uncensored","provider":"alibaba","modality":"text","privacy":["anonymized"],"created":1775433600,"headline":{"value":1.40625,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"nvidia-nemotron-3-ultra","name":"NVIDIA Nemotron 3 Ultra","provider":"nvidia","modality":"text","privacy":["private"],"created":1780531200,"headline":{"value":1.25,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"seed-2-1-turbo","name":"Seed 2.1 Turbo","provider":"bytedance","modality":"text","privacy":["anonymized"],"created":1782604800,"headline":{"value":1.25,"unit":"per 1M tokens","basis":"blended"},"variants":1},{"slug":"grok-build-0-1","name":"Grok Build 0.1","provider":"xai","modality":"text","privacy":["private"],"created":1779321600,"headline":{"value":1.25,"unit":"per 1M tokens","basis":"blended"},"variants":1}],"versions":[]},"providers":{"moonshot":{"slug":"moonshot","name":"Moonshot AI","logo":"/images/icons/models/kimi.svg"},"alibaba":{"slug":"alibaba","name":"Alibaba Qwen","logo":"/images/icons/models/qwen.svg"},"nvidia":{"slug":"nvidia","name":"NVIDIA","logo":"/images/icons/models/nvidia.svg"},"bytedance":{"slug":"bytedance","name":"ByteDance Seed","logo":"/images/icons/models/bytedance.svg"},"xai":{"slug":"xai","name":"xAI","logo":"/images/icons/models/grok.svg"}},"faq":[{"q":"How much does the Kimi K2.7 Code API cost?","a":"$0.75 per 1M input tokens and $3.50 per 1M output tokens, with cached input at $0.16 per 1M. Prices are in USD and can be paid in DIEM at parity."},{"q":"What is the Kimi K2.7 Code model ID?","a":"Use `kimi-k2-7-code` as the `model` parameter."},{"q":"Is the Kimi K2.7 Code API private?","a":"Kimi K2.7 Code is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training."},{"q":"What is the context window of Kimi K2.7 Code?","a":"250K tokens of context, with up to 64K output tokens per response."},{"q":"What does Kimi K2.7 Code support?","a":"Kimi K2.7 Code supports function calling, structured outputs, reasoning, image input, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: low, medium and high (default high)."},{"q":"Which endpoint does the Kimi K2.7 Code API use?","a":"Call `POST /chat/completions`. `/responses` (Alpha) is also supported."}]}} />

<div className="vx-static">
  <Accordion title="Plain-text specification">
    # Kimi K2.7 Code API

    Kimi K2.7 Code is a large language model by Moonshot AI, available on the Venice API as `kimi-k2-7-code`. It runs privately, with zero data retention.

    Kimi K2.7 Code is Moonshot AI's coding-focused agentic model built on Kimi K2.6, with 1T total parameters and 32B active parameters. It always operates in thinking mode, supports text and image input, and targets long-horizon software engineering, agentic task decomposition, and multi-turn coding workflows with 256K context.

    ## Kimi K2.7 Code API pricing

    | Model ID | Variant | Privacy | Price |
    | - | - | - | - |
    | `kimi-k2-7-code` | Standard | Private | $0.75 input / $3.50 output per 1M tokens |

    ## Kimi K2.7 Code specifications

    | Spec | Value |
    | - | - |
    | Provider | Moonshot AI |
    | Released | Jun 13, 2026 |
    | Privacy | Private |
    | Open weights | Yes |
    | Context window | 250K tokens |
    | Max output | 64K tokens |
    | Reasoning effort | low, medium, high |
    | Served precision | INT4 |

    ## How to use the Kimi K2.7 Code API

    Send requests to `POST https://api.venice.ai/api/v1/chat/completions` with `"model": "kimi-k2-7-code"` and your API key.

    ```bash theme={null}
    curl https://api.venice.ai/api/v1/chat/completions \
      -H "Authorization: Bearer $VENICE_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "kimi-k2-7-code",
        "messages": [{ "role": "user", "content": "Explain TEE attestation in two sentences." }],
        "reasoning_effort": "high"
      }'
    ```

    ## Kimi K2.7 Code API FAQ

    ### How much does the Kimi K2.7 Code API cost?

    $0.75 per 1M input tokens and $3.50 per 1M output tokens, with cached input at \$0.16 per 1M. Prices are in USD and can be paid in DIEM at parity.

    ### What is the Kimi K2.7 Code model ID?

    Use `kimi-k2-7-code` as the `model` parameter.

    ### Is the Kimi K2.7 Code API private?

    Kimi K2.7 Code is private: requests run on infrastructure Venice controls with zero data retention, and prompts and outputs are never stored or used for training.

    ### What is the context window of Kimi K2.7 Code?

    250K tokens of context, with up to 64K output tokens per response.

    ### What does Kimi K2.7 Code support?

    Kimi K2.7 Code supports function calling, structured outputs, reasoning, image input, web search and prompt caching. Reasoning effort is adjustable with `reasoning_effort`: low, medium and high (default high).

    ### Which endpoint does the Kimi K2.7 Code API use?

    Call `POST /chat/completions`. `/responses` (Alpha) is also supported.

    ## Related models

    * [Qwen 3.6 Plus Uncensored API](/models/qwen-3-6-plus-uncensored): $0.63 input / $3.75 output per 1M tokens
    * [NVIDIA Nemotron 3 Ultra API](/models/nvidia-nemotron-3-ultra): $0.63 input / $3.13 output per 1M tokens
    * [Seed 2.1 Turbo API](/models/seed-2-1-turbo): $0.63 input / $3.13 output per 1M tokens
    * [Grok Build 0.1 API](/models/grok-build-0-1): $1.00 input / $2.00 output per 1M tokens
  </Accordion>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.