grok-4 on AvalAI
Available on AvalAI
- Publisher
- xai
- Available AvalAI IDs
- 1
- Provider and configuration variants
- 5
Available AvalAI IDs
| Model ID | Operation | Supported endpoints | Minimum tier |
|---|---|---|---|
grok-4 | null — Unknown | Unknown | 1 |
Unknown means unrecorded. null is an explicit unknown value; false means lack of support. A reference namespace does not establish which provider AvalAI uses.
Use through AvalAI
Use the guide for this exact ID’s supported endpoint. An unrecorded endpoint cannot supply a verified request example.
AvalAI prices
These are recorded AvalAI charges. Each row retains its exact model ID, billing unit, and qualifiers.
| Covered exact IDs | Charge field | Amount | Unit | Currency / role / modality | Configuration and qualifiers | Source |
|---|---|---|---|---|---|---|
grok-4 | Cached text inputpricing.cached_input | 0.75 | USD/1M tokens | USD / cached-input / text | — | AvalAI catalog |
grok-4 | Text inputpricing.input | 3.0 | USD/1M tokens | USD / input / text | — | AvalAI catalog |
grok-4 | Text outputpricing.output | 15.0 | USD/1M tokens | USD / output / text | — | AvalAI catalog |
grok-4 | Source chargepricing.search_context_cost_per_query | {"high":0.025,"low":0.025,"medium":0.025} | Unit not verified | Unknown / Unknown / Unknown | — | AvalAI catalog |
Provider namespaces and configurations
Namespaces and regions describe the reference IDs and do not confirm AvalAI routing. Different qualified billing units are not directly comparable.
| Variant | Exact ID | Identity and configuration | AvalAI availability |
|---|---|---|---|
| V1 | azure_ai/grok-4 | {"axes":{},"hostingProvider":"azure_ai","region":null} | Reference only |
| V2 | grok-4 | {"axes":{},"hostingProvider":null,"region":null} | Available on AvalAI |
| V3 | oci/xai.grok-4 | {"axes":{},"hostingProvider":"oci","region":null} | Reference only |
| V4 | replicate/xai/grok-4 | {"axes":{},"hostingProvider":"replicate","region":null} | Reference only |
| V5 | vercel_ai_gateway/xai/grok-4 | {"axes":{},"hostingProvider":"vercel_ai_gateway","region":null} | Reference only |
Provider reference prices
{"currency":"USD","modality":"text","normalizationStatus":"normalized","qualifiers":{},"source":"primary-reference","sourcePath":"data/rate-limits/model_prices_and_context_window.json","unit":"USD/token"}
F1 — Text input{"billingRole":"input","field":"input_cost_per_token"}
F2 — Text output{"billingRole":"output","field":"output_cost_per_token"}
Unit not verified means the source value is retained without interpretation and cannot be compared as a price. null does not mean free.
Capabilities and limits
| Field | Value | Covered IDs | Source |
|---|---|---|---|
max_input_tokens | Unknown | V2 | AvalAI catalog |
max_output_tokens | Unknown | V2 | AvalAI catalog |
max_requests_per_1_minute | 200.0 | V2 | AvalAI catalog |
max_tokens_per_1_minute | 200000.0 | V2 | AvalAI catalog |
min_tier | 1 | V2 | AvalAI catalog |
mode | null — Unknown | V2 | AvalAI catalog |
object | "model" | V2 | AvalAI catalog |
owned_by | "xai" | V2 | AvalAI catalog |
supported_endpoints | Unknown | V2 | AvalAI catalog |
| Model ID | Tier | Access | RPM | TPM | Other limits | Source |
|---|---|---|---|---|---|---|
| V2 | 0 | No access | Unknown | Unknown | — | Unrecorded |
| V2 | 1 | Available | 10.0 | 80000.0 | {"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_tokens_per_1_day":2147483647.0,"owner":"xai","provider":"xai"} | Exact tier source |
| V2 | 2 | Available | 50.0 | 120000.0 | {"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_tokens_per_1_day":2147483647.0,"owner":"xai","provider":"xai"} | Exact tier source |
| V2 | 3 | Available | 80.0 | 200000.0 | {"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_tokens_per_1_day":2147483647.0,"owner":"xai","provider":"xai"} | Exact tier source |
| V2 | 4 | Available | 120.0 | 200000.0 | {"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_tokens_per_1_day":2147483647.0,"owner":"xai","provider":"xai"} | Exact tier source |
| V2 | 5 | Available | 200.0 | 200000.0 | {"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_tokens_per_1_day":2147483647.0,"owner":"xai","provider":"xai"} | Exact tier source |
Technical reference observations
The sources below are independent and may disagree. Their observations do not override AvalAI prices, capabilities, or supported endpoints.
{"source":"primary-reference","sourcePath":"data/rate-limits/model_prices_and_context_window.json"}
V1{"litellm_provider":"azure_ai","max_input_tokens":262000,"max_output_tokens":8192,"max_tokens":8192,"mode":"chat","source":"https://learn.microsoft.com/en-us/azure/foundry/foundry-models/concepts/models-sold-directly-by-azure","supports_function_calling":true,"supports_response_schema":true,"supports_tool_choice":true,"supports_web_search":true}
{"source":"primary-reference","sourcePath":"data/rate-limits/model_prices_and_context_window.json"}
V3{"litellm_provider":"oci","max_input_tokens":128000,"max_output_tokens":128000,"max_tokens":128000,"mode":"chat","source":"https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing","supports_function_calling":true,"supports_native_streaming":true,"supports_response_schema":false}
{"source":"primary-reference","sourcePath":"data/rate-limits/model_prices_and_context_window.json"}
V4{"litellm_provider":"replicate","mode":"chat","supports_function_calling":true,"supports_system_messages":true}
{"source":"primary-reference","sourcePath":"data/rate-limits/model_prices_and_context_window.json"}
V5{"litellm_provider":"vercel_ai_gateway","max_input_tokens":256000,"max_output_tokens":256000,"max_tokens":256000,"mode":"chat","supports_function_calling":true,"supports_tool_choice":true}
{"sourcePath":"data/rate-limits/tier1.json","tier":1,"values":{"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_requests_per_1_minute":10.0,"max_tokens_per_1_day":2147483647.0,"max_tokens_per_1_minute":80000.0,"owner":"xai","provider":"xai"}}V2
{"sourcePath":"data/rate-limits/tier2.json","tier":2,"values":{"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_requests_per_1_minute":50.0,"max_tokens_per_1_day":2147483647.0,"max_tokens_per_1_minute":120000.0,"owner":"xai","provider":"xai"}}V2
{"sourcePath":"data/rate-limits/tier3.json","tier":3,"values":{"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_requests_per_1_minute":80.0,"max_tokens_per_1_day":2147483647.0,"max_tokens_per_1_minute":200000.0,"owner":"xai","provider":"xai"}}V2
{"sourcePath":"data/rate-limits/tier4.json","tier":4,"values":{"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_requests_per_1_minute":120.0,"max_tokens_per_1_day":2147483647.0,"max_tokens_per_1_minute":200000.0,"owner":"xai","provider":"xai"}}V2
{"sourcePath":"data/rate-limits/tier5.json","tier":5,"values":{"max_audio_megabytes_per_1_minute":null,"max_images_per_1_minute":null,"max_requests_per_1_day":null,"max_requests_per_1_minute":200.0,"max_tokens_per_1_day":2147483647.0,"max_tokens_per_1_minute":200000.0,"owner":"xai","provider":"xai"}}V2