Kimi
Copied!
Try AIAdd to Compare
Text GenerationVisual UnderstandingReasoning
Overview
Text GenerationVisual UnderstandingReasoning
kimi-k2.7-code is Kimi's most intelligent coding model to date. It follows instructions more reliably over long contexts and completes programming tasks with higher success rates. It supports text, image, and video inputs, along with thinking mode, conversation, and agent tasks.
Input
TextImageVideo
Output
Text
Features
Prefix Completion
Enable Partial Mode when calling the Qwen API to make the model continue strictly from your provided prefix text.View docsFunction Calling
Use function calling to connect large language models with external tools and systems.View docsCache
Context Cache stores shared prefixes for long-context requests to reduce repeated computation, improve latency, and lower cost.View docsStructured Outputs
Structured Outputs help ensure the model returns a JSON string in the expected format.View docsBatches
feature.funeTuning
Pricing
- Input$0.95Per 1M tokens
- Output$4Per 1M tokens
- Input(Implicit Cache)$0.19Per 1M tokens
toc.rateLimitsAndContext
- Max Input229.37K
- Max Output16.38K
- RPMRequests Per Minute500
- TPMTokens Per Minute1M
- Context262.14K
API Reference
Get API KeyCopied!
12345678910111213141516
import os
import dashscope
dashscope.base_http_api_url = 'https://dashscope-intl.aliyuncs.comapi/v1'
messages = [
{
"role": "user",
"content": [
{"text": "Who are you?"}]
}]
response = dashscope.MultiModalConversation.call(
# If the environment variable is not set, replace it with your Model Studio API key: api_key = "sk-xxx",
api_key = os.getenv('DASHSCOPE_API_KEY'),
model = 'kimi-k2.7-code',
messages = messages
)
print(response.output.choices[0].message.content[0]["text"])