IBM Granite Micro
Outils
IBM's ultra-efficient micro model. Small but mighty - perfect for simple tasks requiring minimal latency and cost.
Identifiant du modèle — à coller dans votre code
ibm-granite/ibm-granite-microTarifs · par million de tokens
Afficher les prix en
Entrée5,1 DA$0.0204
Sortie33,6 DA$0.134
Entrée en cache5,1 DA$0.0204
Fenêtre de contexte131KSortie max.: 33K
Capacités
- Outils — Peut appeler vos fonctions / outils
Estimez votre coût
Coût estimé
Utiliser ce modèle
Créez un compte, rechargez en dinars et appelez-le avec votre clé :
from openai import OpenAI
client = OpenAI(
base_url="https://dzrouter.com/v1",
api_key="sk-dz-…",
)
reply = client.chat.completions.create(
model="ibm-granite/ibm-granite-micro",
messages=[{"role": "user", "content": "Salam!"}],
)
print(reply.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://dzrouter.com/v1",
apiKey: process.env.DZROUTER_API_KEY,
});
const reply = await client.chat.completions.create({
model: "ibm-granite/ibm-granite-micro",
messages: [{ role: "user", content: "Salam!" }],
});
console.log(reply.choices[0].message.content);curl https://dzrouter.com/v1/chat/completions \
-H "Authorization: Bearer $DZROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ibm-granite/ibm-granite-micro",
"messages": [{"role": "user", "content": "Salam!"}],
"stream": true
}'from anthropic import Anthropic
client = Anthropic(
base_url="https://dzrouter.com",
api_key="sk-dz-…",
)
msg = client.messages.create(
model="ibm-granite/ibm-granite-micro",
max_tokens=1024,
messages=[{"role": "user", "content": "Salam!"}],
)
print(msg.content[0].text)Commencez à construire avec l'IA dès aujourd'hui
Créez votre compte, rechargez dès 500 DA et envoyez votre première requête en quelques minutes.
Créer un compte gratuit