API des Modells command-a-03-2025 bei Cohere, Preis beim Anbieter. Beispiele in curl, Python und JavaScript, Live-Test.
Im Katalog testen und bewerten
Free trial keys (non-commercial use).
- Typ
- Modell
- Anbieter
- Cohere
- Modell-ID
command-a-03-2025- Preis
- Kostenlos + bezahlt
- Zugang ohne Schlüssel
- Nein
- Schlüsselvariable
COHERE_API_KEY- Basis-URL (OpenAI-kompatibel)
https://api.cohere.ai/compatibility/v1- Eingaben
- Text
- Entwicklerbewertung
- Noch nicht bewertet
- Dokumentation
- https://docs.cohere.com/docs/rate-limits
Codebeispiele
cURL
curl https://api.cohere.ai/compatibility/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $COHERE_API_KEY" \
-d '{"model":"command-a-03-2025","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.cohere.ai/compatibility/v1", api_key=os.environ["COHERE_API_KEY"])
r = client.chat.completions.create(
model="command-a-03-2025",
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.cohere.ai/compatibility/v1', apiKey: process.env.COHERE_API_KEY })
const r = await client.chat.completions.create({
model: 'command-a-03-2025',
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 Cohere · command-a-03-2025 kostenlos?
Cohere · command-a-03-2025 bietet ein begrenztes Gratiskontingent; darüber hinaus ist die Nutzung kostenpflichtig.
Wie rufe ich Cohere · command-a-03-2025 aus meinem Code auf?
Cohere · command-a-03-2025 bietet eine OpenAI-kompatible API unter https://api.cohere.ai/compatibility/v1: Verwenden Sie ein beliebiges OpenAI-SDK (Python, JavaScript …) mit dieser Basis-URL. Modellkennung: command-a-03-2025. Fertiger Code (Streaming, JSON, Wiederholungen) steht im Werkzeugkasten für Entwickler bereit.