Disponibile ora
xAI
grok-code-fast-1
TextToolsFilesVision256KWebSearch
Input$0.21/ 1M
Output$1.58/ 1M
Contesto256K
Endpointanthropic, openai
Capacità
StrumentiVisioneStrutturatoRicerca web
Statistiche rapide
Finestra di contesto256K
Output massimo131.1K
Modalitàchat
Performance
Caricamento dati di performance...
§ 01
Prezzi
| Prezzo di input | $0.21 · 1M token |
| Prezzo di output | $1.58 · 1M token |
| Finestra di contesto | 256K token |
| Endpoint compatibili | anthropic, openai |
| Provider | xAI |
§ 02
Chiamare grok-code-fast-1 dal tuo codice
Punta qualsiasi SDK compatibile con OpenAI a UnoRouter e richiedi il modello per nome. Sostituisci YOUR_API_KEY con una vera chiave dal tuo dashboard.
bash
curl https://api.unorouter.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "grok-code-fast-1",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
Domande frequenti
Quanto costa grok-code-fast-1 per 1M token?
L'input ha un prezzo di $0.21 per 1M token, l'output di $1.58 per 1M token. La fatturazione è per token, nessun arrotondamento alle dimensioni del batch.
Come accedo a grok-code-fast-1 tramite API?
Invia richieste all'endpoint /v1/chat/completions di UnoRouter con model=grok-code-fast-1. Qualsiasi libreria client compatibile con OpenAI funziona. L'autenticazione usa un token Bearer standard.
Qual è la finestra di contesto di grok-code-fast-1?
grok-code-fast-1 supporta una finestra di contesto di 256K token, condivisa tra il tuo prompt e la risposta del modello.
§ 04
Modelli simili
Prova grok-code-fast-1 ora
Crea una chiave API e inizia a fare richieste in meno di un minuto.