
LLM
Kimi K2.7 Code API by Moonshot
moonshotai/kimi-k2.7-code
Kimi-k2.7-code
Powerful coding model for programming, debugging, and AI developer workflows.

Powerful coding model for programming, debugging, and AI developer workflows.
import os
from openai import OpenAI
# Vision Understanding Example
# Image: Use base64 encoding (data:image/png;base64,...)
client = OpenAI(
api_key=os.getenv("ATLASCLOUD_API_KEY"),
base_url="https://api.atlascloud.ai/v1"
)
response = client.chat.completions.create(
model="moonshotai/kimi-k2.7-code",
messages=[
{
"role": "user",
"content": [
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,<BASE64_IMAGE_DATA>"
}
},
{
"type": "text",
"text": "Please describe the content of this image"
}
]
}
],
max_tokens=1024,
temperature=0.7
)
print(response.choices[0].message.content)āļāļīāļāļāļąāđāļāđāļāđāļāđāļāļāļāļĩāđāļāļģāđāļāđāļ
pip install requestsāļāļģāļāļ API āļāļąāđāļāļŦāļĄāļāļāđāļāļāļĄāļĩāļāļēāļĢāļĒāļ·āļāļĒāļąāļāļāļąāļ§āļāļāļāđāļēāļ API key āļāļļāļāļŠāļēāļĄāļēāļĢāļāļĢāļąāļ API key āđāļāđāļāļēāļāđāļāļāļāļāļĢāđāļ Atlas Cloud
export ATLASCLOUD_API_KEY="your-api-key-here"import os
API_KEY = os.environ.get("ATLASCLOUD_API_KEY")
headers = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY}"
}āļāļĒāđāļēāđāļāļīāļāđāļāļĒ API key āļāļāļāļāļļāļāđāļāđāļāđāļāļāļąāđāļāđāļāļĨāđāļāļāļāđāļŦāļĢāļ·āļāļāļĩāđāđāļāđāļāļāđāļāļĄāļđāļĨāļŠāļēāļāļēāļĢāļāļ° āđāļŦāđāđāļāđāļāļąāļ§āđāļāļĢāļŠāļ āļēāļāđāļ§āļāļĨāđāļāļĄāļŦāļĢāļ·āļāļāļĢāđāļāļāļāļĩāļāļąāđāļāđāļāļīāļĢāđāļāđāļ§āļāļĢāđāđāļāļ
import requests
url = "https://api.atlascloud.ai/v1/chat/completions"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer $ATLASCLOUD_API_KEY"
}
data = {
"model": "your-model",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 1024
}
response = requests.post(url, headers=headers, json=data)
print(response.json())āļāļēāļĢāļēāļĄāļīāđāļāļāļĢāđāļāđāļāđāļāļāļĩāđāļĒāļāļĄāļĢāļąāļāđāļāđāļāļ·āđāļāļŦāļēāļāļģāļāļ
{
"model": "moonshotai/kimi-k2.7-code",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 1024,
"temperature": 0.7,
"stream": false
}API āļāļ°āļŠāđāļāļāļ·āļāļāļēāļĢāļāļāļāļāļĨāļąāļāļāļĩāđāđāļāđāļēāļāļąāļāđāļāđāļāļąāļ ChatCompletion
{
"id": "chatcmpl-abc123",
"object": "chat.completion",
"created": 1700000000,
"model": "model-name",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 20,
"total_tokens": 30
}
}Atlas Cloud Skills āđāļāļ·āđāļāļĄāļāđāļāđāļĄāđāļāļĨ AI āļāļ§āđāļē 400+ āđāļāđāļēāļāļąāļāļāļđāđāļāđāļ§āļĒāđāļāļĩāļĒāļāđāļāđāļ AI āļāļāļāļāļļāļāđāļāļĒāļāļĢāļ āļāļīāļāļāļąāđāļāļāđāļ§āļĒāļāļģāļŠāļąāđāļāđāļāļĩāļĒāļ§ āļāļēāļāļāļąāđāļāđāļāđāļ āļēāļĐāļēāļāļĢāļĢāļĄāļāļēāļāļīāđāļāļ·āđāļāļŠāļĢāđāļēāļāļĢāļđāļāļ āļēāļ āļ§āļīāļāļĩāđāļ āđāļĨāļ°āļŠāļāļāļāļēāļāļąāļ LLM
npx skills add AtlasCloudAI/atlas-cloud-skillsāļĢāļąāļ API key āļāļēāļāđāļāļāļāļāļĢāđāļ Atlas Cloud āđāļĨāļ°āļāļąāđāļāļāđāļēāđāļāđāļāļāļąāļ§āđāļāļĢāļŠāļ āļēāļāđāļ§āļāļĨāđāļāļĄ
export ATLASCLOUD_API_KEY="your-api-key-here"āđāļĄāļ·āđāļāļāļīāļāļāļąāđāļāđāļĨāđāļ§ āļāļļāļāļŠāļēāļĄāļēāļĢāļāđāļāđāļ āļēāļĐāļēāļāļĢāļĢāļĄāļāļēāļāļīāđāļāļāļđāđāļāđāļ§āļĒ AI āļāļāļāļāļļāļāđāļāļ·āđāļāđāļāđāļēāļāļķāļāđāļĄāđāļāļĨ Atlas Cloud āļāļąāđāļāļŦāļĄāļ
Atlas Cloud MCP Server āđāļāļ·āđāļāļĄāļāđāļ IDE āļāļāļāļāļļāļāļāļąāļāđāļĄāđāļāļĨ AI āļāļ§āđāļē 400+ āļāđāļēāļ Model Context Protocol āđāļāđāļāļēāļāđāļāđāļāļąāļāđāļāļĨāđāļāļāļāđāļāļĩāđāļĢāļāļāļĢāļąāļ MCP āļāļļāļāļāļąāļ§
npx -y atlascloud-mcpāđāļāļīāđāļĄāļāļēāļĢāļāļģāļŦāļāļāļāđāļēāļāđāļāđāļāļāļĩāđāļĨāļāđāļāđāļāļĨāđāļāļąāđāļāļāđāļē MCP āļāļāļ IDE āļāļāļāļāļļāļ
{
"mcpServers": {
"atlascloud": {
"command": "npx",
"args": [
"-y",
"atlascloud-mcp"
],
"env": {
"ATLASCLOUD_API_KEY": "your-api-key-here"
}
}
}
}