Seedream 5.0 Pro è LIVE | Prova nel Generatore di immagini →
xai
x-ai/grok-4.20

x-ai/grok-4.20

Data di rilascio: 2026-04-01

2,000,000 context · $2.00/M input tokens · $6.00/M output tokens

Grok 4.20 is xAI's newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently...

Prezzi

Pay-per-use

Nessun costo iniziale, paga solo per ciò che usi

Input$2.00 / M Tokens
Output$6.00 / M Tokens
Cache Read$0.20 / M Tokens

Prova il modello

x-ai/grok-4.20
Online
xai
Ciao! Sono un assistente IA utile. Come posso aiutarti?
Pronto a usare questo modello in un coding agent locale?Setup agent

Utilizzo API

Usa i seguenti esempi di codice per integrare la nostra API:

import OpenAI from 'openai';

if (!process.env.WAVESPEED_API_KEY) throw new Error('Set WAVESPEED_API_KEY');
const client = new OpenAI({
  apiKey: process.env.WAVESPEED_API_KEY,
  baseURL: 'https://llm.wavespeed.ai/v1',
  timeout: 120_000,
  maxRetries: 2,
});

try {
  const response = await client.chat.completions.create({
    model: 'x-ai/grok-4.20',
    messages: [{ role: 'user', content: 'Hello!' }],
  });
  console.log(response.choices[0]?.message?.content ?? '');
} catch (error) {
  console.error('LLM request failed:', error);
  process.exitCode = 1;
}

Info

Providerxai
Tipollm

Funzionalità supportate

Input
TestoImmagine
Output
Testo
Contesto2,000,000
Output massimo-
Vision✓ Supportato
Function Calling✓ Supportato

Guida all'accesso API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
ID modellox-ai/grok-4.20

Grok 4.20 API

x-ai/grok-4.20

Grok 4.20 is xAI's newest flagship model with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering consistently...

Input

$2 /M

Output

$6 /M

Contesto

2000K

Vision

Supportato

Uso strumenti

Supportato

Prova Grok 4.20 su WaveSpeedAI

Accedi a Grok 4.20 tramite la nostra API unificata — compatibile con OpenAI, senza cold start, prezzi trasparenti.

Domande frequenti su Grok 4.20

Quanto costa Grok 4.20 via API?+

Prezzi su WaveSpeedAI: $2.00 per milione di token in input e $6.00 per milione di token in output. Prompt caching e batch processing sono fatturati separatamente e riducono il costo effettivo su carichi lunghi e ripetitivi.

Qual è la context window di Grok 4.20?+

Grok 4.20 supporta fino a 2000K token di contesto e fino a — token di output per richiesta.

Grok 4.20 è compatibile con OpenAI?+

WaveSpeedAI espone Grok 4.20 su https://llm.wavespeed.ai/v1 tramite l’interfaccia Chat Completions compatibile con OpenAI. Per la maggior parte dei client OpenAI SDK basta cambiare base URL e API key; i campi opzionali dipendono dal modello.

Come si inizia con Grok 4.20?+

Accedi a WaveSpeedAI, crea una API key in Access Keys e invia una richiesta a https://llm.wavespeed.ai/v1/chat/completions con il model id mostrato sopra. Consulta il catalogo attuale per disponibilità, funzionalità e prezzi.

API LLM correlate

Grok 4.20 API | WaveSpeedAI