Grok 4.5
x-ai/grok-4.5Grok 4.5 is an xAI reasoning model for coding, agentic tasks and knowledge work, released on the xAI API in July 2026 and trained alongside Cursor. xAI emphasizes token-efficient reasoning on real engineering tasks, fast serving, and office work such as building Excel models, PowerPoint diagrams and Word documents. It accepts text and image input with configurable reasoning effort; Grok 4.6 and Grok 4.7 later succeeded it as xAI's flagship.
En savoir plus- Prix d'entrée
- $1.50
$2.00USD / 1 M tokens - Prix de sortie
- $4.50
$6.00USD / 1 M tokens - Lecture du cache
- $0.22
$0.30USD / 1 M tokens - Fenêtre de contexte
- 500K
- Sortie max
- 450K
Spécifications
- Entrée
- Texte, image
- Sortie
- Texte
À propos de ce modèle
Grok 4.5 is an xAI reasoning model for coding, agentic tasks and knowledge work, released on the xAI API in July 2026 and trained alongside Cursor. xAI emphasizes token-efficient reasoning on real engineering tasks, fast serving, and office work such as building Excel models, PowerPoint diagrams and Word documents. It accepts text and image input with configurable reasoning effort; Grok 4.6 and Grok 4.7 later succeeded it as xAI's flagship.
Essayer le modèle
Bac à sable
Rédigez un prompt pour tester ce modèle. L'utilisation est facturée aux tarifs affichés.
Essayez une invite
Ajouter une image (facultatif)
Votre réponse apparaîtra ici
Choisissez un exemple ou rédigez une invite, puis cliquez sur Exécuter.
Commencer à construire
Envoyez votre première requête
Point de terminaison compatible OpenAI avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x-ai/grok-4.5",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Schéma d'entrée
12 paramètres · 1 obligatoires · 11 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
messages | object[] | Obligatoire | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Facultatif | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Facultatif | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facultatif | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facultatif | Nucleus sampling: only tokens within this cumulative probability are considered. · Min : 0 · Max : 1 |
stream | boolean | Facultatif | Stream the response as server-sent events instead of returning it in one piece. · Par défaut : false |
max_tokens | integer | Facultatif | Maximum number of tokens to generate in the response. · Max : 450000 |
temperature | number | Facultatif | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min : 0 · Max : 2 · Par défaut : 1 |
tool_choice | string | Facultatif | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facultatif | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
presence_penalty | number | Facultatif | Penalizes tokens that already appear at all, encouraging new topics. · Min : -2 · Max : 2 |
frequency_penalty | number | Facultatif | Penalizes tokens by how often they already appear, reducing repetition. · Min : -2 · Max : 2 |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la complétion |
object | string | Type d'objet, par exemple « chat.completion » |
model | string | Modèle utilisé pour la complétion |
choices | array | Liste des choix de complétion |
choices[].message.content | string | Contenu textuel généré |
choices[].finish_reason | string | Raison de l'arrêt de la génération |
usage.prompt_tokens | integer | Nombre de tokens dans le prompt |
usage.completion_tokens | integer | Nombre de tokens dans la complétion |
usage.total_tokens | integer | Nombre total de tokens utilisés |
Questions
FAQ
Comment appeler xAI Grok 4.5 via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "x-ai/grok-4.5" à Chat Completions API (/v1/chat/completions) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Combien coûte xAI Grok 4.5 ?
$1.50 pour 1 M de tokens d’entrée et $4.50 pour 1 M de tokens de sortie avec la remise actuelle de 25% (prix catalogue $2 / $6), facturé à la requête depuis votre solde SandBase.
Quelle est la fenêtre de contexte de xAI Grok 4.5 ?
500K tokens de contexte, avec jusqu’à 450K tokens de sortie par réponse.
Quelles fonctionnalités xAI Grok 4.5 prend-il en charge ?
xAI Grok 4.5 prend en charge vision (entrée d’image), raisonnement, appel de fonction, sortie structurée. Consultez les spécifications ci-dessus pour la liste complète.
Ai-je besoin d’un compte xAI distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à xAI Grok 4.5 et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte xAI séparément.
