API des Modells kimi-k2.7-code bei LLM7, $0.35 / $1.46 pro Million Tokens, Kontext 256.000 Tokens. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
- Typ
- Modell
- Anbieter
- LLM7
- Modell-ID
kimi-k2.7-code- Preis
- Kostenpflichtig
- Preis Eingabe / Ausgabe
- $0.35 / $1.46 pro Million Tokens
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
LLM7_API_KEY- Basis-URL (OpenAI-kompatibel)
https://api.llm7.io/v1- Kontext
- 256.000 Tokens
- Eingaben
- Text
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://llm7.io
Codebeispiele
cURL
curl https://api.llm7.io/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LLM7_API_KEY" \
-d '{"model":"kimi-k2.7-code","messages":[{"role":"user","content":"Hallo, stell dich in einem Satz vor."}]}'Python
# pip install openai
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.llm7.io/v1", api_key=os.environ["LLM7_API_KEY"])
r = client.chat.completions.create(
model="kimi-k2.7-code",
messages=[{"role": "user", "content": "Hallo, stell dich in einem Satz vor."}],
)
print(r.choices[0].message.content)JavaScript
// npm install openai
import OpenAI from 'openai'
const client = new OpenAI({ baseURL: 'https://api.llm7.io/v1', apiKey: process.env.LLM7_API_KEY })
const r = await client.chat.completions.create({
model: 'kimi-k2.7-code',
messages: [{ role: 'user', content: 'Hallo, stell dich in einem Satz vor.' }],
})
console.log(r.choices[0].message.content)
Beliebte Suchen
Häufige Fragen
Ist die API von LLM7 · kimi-k2.7-code kostenlos?
Nein: LLM7 · kimi-k2.7-code ist eine kostenpflichtige API ($0.35 / $1.46 pro Million Tokens).
Wie rufe ich LLM7 · kimi-k2.7-code aus meinem Code auf?
LLM7 · kimi-k2.7-code bietet eine OpenAI-kompatible API unter https://api.llm7.io/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: kimi-k2.7-code. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.
Wie groß ist das Kontextfenster von LLM7 · kimi-k2.7-code?
LLM7 · kimi-k2.7-code verarbeitet bis zu 256.000 Tokens Kontext (Nachricht und Verlauf).
Welche Alternativen gibt es zu LLM7 · kimi-k2.7-code?
Ähnliche APIs im Katalog: MoonshotAI: Kimi K2.7 Code.
Alternativen
- MoonshotAI: Kimi K2.7 Code — Kostenpflichtig