Skip to content

Providers / Alibaba · All access methods for moonshotai/kimi-k2.7-code

Kimi K2.7 Code

alibaba/kimi-k2.7-code API key models.dev2026-11-17

Type chat · Released 2026-06-12

Input window
262,144 tokensdocumented
models.dev · 2026-11-17
Input and output together
Context window
262,144 tokens
Exposed by this provider
Maximum output
262,144 tokens
Per response; not a default
Cache lifetime, short
Unknown
Not documented or measured
Cache lifetime, long
Unknown
Not documented or measured

Limits

Input window

LimitValueSource
Input window
input_window: the most input one request can carry on this entry, in tokens as the provider counts them.
262,144 tokensdocumentedInput and output togethermodels.dev2026-11-17
Documented
The figure the source documents, and the field it is in.
262,144 tokenslimit.contextmodels.dev2026-11-17
Measured
What each limit evaluation that counts gives, one line per evaluation.
Not measured–

How the input window is worked out, and what it does not say

Documented

LimitValueSource
Context window
limit.context: what this provider accepts for the model, input and output together.
262,144 tokensmodels.dev
Largest input
limit.input: stated where the input limit is lower than the context window.
Unknown–
Maximum output
limit.output: the most one response can hold. A maximum, not what you get by default.
262,144 tokensmodels.dev

Measured tokens

DateMeasured throughContextInput acceptedInput refusedOutput limitRequested output acceptedEvidence
No limits were measured on this entry.

Price

Base chargeRate
Input$0.95 / 1M tokens
Output$4 / 1M tokens
Reasoning outputUnknown
Cache read$0.19 / 1M tokens
Cache writeUnknown

Conditional rates

ConditionChargeRateApplies to
No conditional rates recorded.

Source: models.dev 2026-11-17

Other prices in the source, not shown above (0)

None

Request controls

ControlSupportRequest fieldAccepted valuesDefaultConditions
Service tierUnknownUnknownUnknownUnknownUnknown

Source: Unknown

Prompt caching

Lifetimes

Every cache lifetime of this entry, by retention
LifetimeDocumented for, or measured throughTime since the prompt was cached · served from the cache, in percent, with hits/checks
At once2.5 min5 min7.5 min10 min15 min20 min25 min30 min40 min50 min1 h1 h 151 h 302 h4 h8 h12 h24 h
Short retention
Safe lifetime
Unknown
Documented
Not documented
Measured
Not measured
Inside the documented lifetime
Not applicable
Long retention
Safe lifetime
Unknown
Documented
Not documented
Measured
Not measured
Inside the documented lifetime
Not applicable

Checks served from the cache, in percent and as hits/checks, by time since the prompt was cached100 All67 Half or more33 Fewer0 None· Not checked at that ageMethodology

Cache modes

ModeSupportedMin. tokensBreakpointsTargets
Automatic implicit Supported 1,024 Not applicable Not applicable
Manual explicit Unknown Unknown Unknown Unknown

Source: models.dev · Cache modes

Retention

ControlSupportRequest fieldAccepted valuesDefaultConditions
Cache retentionUnknownUnknownUnknownUnknownUnknown

Source: Unknown

Provenance

ProvenanceValue
Sourcemodels.dev2026-11-17
Inherited fromNone
CorrectionsNone
EvidenceNone

Data

GET /api/v1/entries/alibaba/kimi-k2.7-code

Show the full entry as published
{
  "id": "kimi-k2.7-code",
  "name": "Kimi K2.7 Code",
  "description": "Coding-focused Kimi model, stronger on long-horizon repo work with less overthinking",
  "type": "chat",
  "family": "kimi-k2",
  "canonical_id": "moonshotai/kimi-k2.7-code",
  "release_date": "2026-06-12",
  "limit": {
    "context": 262144,
    "output": 262144
  },
  "capabilities": {
    "cache": {
      "implicit": {
        "min_tokens": 1024
      }
    },
    "temperature": false,
    "top_k": false,
    "top_p": false,
    "stream_usage": true,
    "system_updates": false,
    "effort_updates": false,
    "tools": {
      "supported": true
    },
    "reasoning": {
      "supported": true,
      "budget": {}
    }
  },
  "cost": {
    "text": {
      "input": {
        "price": 0.95,
        "cache": {
          "read": 0.19
        }
      },
      "output": {
        "price": 4
      }
    }
  },
  "modalities": {
    "input": [
      "text",
      "image/jpeg",
      "image/png",
      "image/gif",
      "image/webp",
      "image/bmp",
      "image/heic",
      "image/heif",
      "video/mp4",
      "video/mpeg",
      "video/mov",
      "video/avi",
      "video/x-flv",
      "video/mpg",
      "video/webm",
      "video/wmv",
      "video/3gpp"
    ],
    "output": [
      "text"
    ]
  },
  "api": {
    "chat-completions": {
      "base_url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
      "sdk": {
        "aisdk": "@ai-sdk/openai-compatible",
        "opencodeai": "@opencode/ai/providers/alibaba/chat"
      },
      "capabilities": {
        "system_updates": true,
        "tools": {
          "choice": [
            "auto",
            "none"
          ],
          "updates": false
        }
      },
      "compatibility": {
        "reasoning_field": "reasoning_content"
      }
    },
    "messages": {
      "base_url": "https://dashscope-intl.aliyuncs.com/apps/anthropic/v1",
      "sdk": {
        "aisdk": "@ai-sdk/anthropic",
        "opencodeai": "@opencode/ai/providers/alibaba/messages"
      },
      "capabilities": {
        "tools": {
          "choice": [
            "auto",
            "none"
          ],
          "updates": false
        }
      }
    }
  },
  "open_weights": true,
  "knowledge": "2025-01",
  "last_updated": "2026-06-12",
  "providers_dev": {
    "origin": "upstream",
    "access": "api",
    "provenance": [],
    "inherited": null,
    "cache": {
      "documented": {
        "support": "supported",
        "modes": {
          "implicit": {
            "support": "supported",
            "min_tokens": 1024,
            "max_breakpoints": null,
            "targets": null
          },
          "explicit": {
            "support": "unknown",
            "min_tokens": null,
            "max_breakpoints": null,
            "targets": null
          }
        }
      },
      "retention": {
        "support": "unknown",
        "parameter": null,
        "accepted_values": null,
        "default": null,
        "profiles": [],
        "conditions": [],
        "evidence": []
      },
      "lifetime": {
        "short": {
          "safe_s": null,
          "basis": "none",
          "source": null,
          "date": null,
          "documented_s": null,
          "measured_s": null,
          "documented_status": null,
          "clients": 0,
          "evaluations": 0,
          "checks": 0,
          "hits": 0,
          "checks_inside": null,
          "hits_inside": null,
          "tested_from_s": null,
          "first_miss_s": null
        },
        "long": {
          "safe_s": null,
          "basis": "none",
          "source": null,
          "date": null,
          "documented_s": null,
          "measured_s": null,
          "documented_status": null,
          "clients": 0,
          "evaluations": 0,
          "checks": 0,
          "hits": 0,
          "checks_inside": null,
          "hits_inside": null,
          "tested_from_s": null,
          "first_miss_s": null
        },
        "lifetimes": []
      },
      "evaluations": []
    },
    "pricing": {
      "coverage": "partial",
      "billing": "per_use",
      "reference_ref": null,
      "rules": [
        {
          "id": "cost.text.input.price",
          "when": null,
          "meter": "text.input",
          "operation": "set",
          "amount": 0.95,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.text.input.price",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.text.input.cache.read",
          "when": null,
          "meter": "text.cache_read",
          "operation": "set",
          "amount": 0.19,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.text.input.cache.read",
          "period": null,
          "resulting_rates": null
        },
        {
          "id": "cost.text.output.price",
          "when": null,
          "meter": "text.output",
          "operation": "set",
          "amount": 4,
          "currency": "USD",
          "unit": {
            "name": "token",
            "quantity": 1000000
          },
          "applies_to": "all_usage",
          "source_path": "cost.text.output.price",
          "period": null,
          "resulting_rates": null
        }
      ],
      "rule_order": "listed",
      "unparsed": [],
      "evidence": [
        {
          "kind": "documented",
          "url": "https://models.dev",
          "date": "2026-11-17",
          "note": "The cost models.dev records for this entry. Rules are in the order models.dev applies them: base prices, overrides in their order, then multipliers."
        }
      ]
    },
    "request_controls": {
      "coverage": "unknown",
      "items": [
        {
          "id": "cache.retention",
          "support": "unknown",
          "when": null,
          "bindings": null,
          "options": null,
          "default": null,
          "conditions": [],
          "evidence": []
        },
        {
          "id": "service_tier",
          "support": "unknown",
          "when": null,
          "bindings": null,
          "options": null,
          "default": null,
          "conditions": [],
          "evidence": []
        }
      ]
    },
    "limits": {
      "measured": [],
      "from_measurement": [],
      "input_window": {
        "tokens": 262144,
        "basis": "documented",
        "bound": "limit",
        "scope": "window",
        "source": "models.dev",
        "date": "2026-11-17",
        "documented_tokens": 262144,
        "documented_field": "limit.context",
        "documented_source": "models.dev",
        "documented_date": "2026-11-17",
        "documented_status": null,
        "measured_tokens": null,
        "measured_bound": null,
        "measured_kind": null,
        "measured_refused": null,
        "measured_date": null,
        "clients": 0,
        "evaluations": 0,
        "measurements": []
      }
    },
    "evidence": [],
    "verified": null
  }
}