Seedance 2.0 | Special Offer ✦ 10% OFF NOW | Ends May 13 (UTC+0)
xai
x-ai/grok-4-fast

x-ai/grok-4-fast

2,000,000 context · $0.20/M input tokens · $0.50/M output tokens

Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. It comes in two flavors: non-reasoning and reasoning. Read more about the model...

Fiyatlandırma

Kullandıkça öde

Ön ödeme yok, yalnızca kullandığınız kadar ödeyin

Giriş$0.20 / M Tokens
Çıkış$0.50 / M Tokens

Modeli dene

x-ai/grok-4-fast
Çevrimiçi
xai
Merhaba! Yardımcı bir yapay zeka asistanıyım. Size nasıl yardımcı olabilirim?

API Kullanımı

API'mizle entegre etmek için aşağıdaki kod örneklerini kullanın:

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="x-ai/grok-4-fast",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

Model Tanıtımı

X-Ai grok-4-fast

x-ai grok-4-fast


Why It Looks Great

  • Large Language Model architecture for efficient processing
  • 2000000 context window for long document handling
  • Competitive pricing at $0.2/$0.5 per million tokens

Key Features

  • Context Window: 2000000 tokens
  • Max Output: 30000 tokens
  • Vision: Supported
  • Function Calling: Supported

Specifications

SpecificationValue
ProviderX-Ai
Model TypeLarge Language Model (LLM)
ArchitectureN/A
Context Window2000000 tokens
Max Output30000 tokens
InputText
OutputText
VisionSupported
Function CallingSupported

Pricing

Token TypeCost per Million Tokens
Input$0.2
Output$0.5

How to Use

  1. Write your prompt — describe the task, provide context, and specify desired output format.
  2. Submit — the model processes your request and returns the response.

API Integration

Base URL: https://llm.wavespeed.ai/v1 API Endpoint: chat/completions Model ID: x-ai/grok-4-fast


API Usage

Python SDK

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://llm.wavespeed.ai/v1"
)

response = client.chat.completions.create(
    model="x-ai/grok-4-fast",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

print(response.choices[0].message.content)

cURL

curl https://llm.wavespeed.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "x-ai/grok-4-fast",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Notes

  • Model: x-ai/grok-4-fast
  • Provider: X-Ai

Bilgi

Sağlayıcıxai
Türllm

Desteklenen İşlevsellik

Giriş
MetinGörsel
Çıkış
Metin
Bağlam2,000,000
Maks. Çıkış30,000
Vision✓ Destekleniyor
Function Calling✓ Destekleniyor

API Erişim Kılavuzu

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDx-ai/grok-4-fast

Grok 4 Fast API

x-ai/grok-4-fast

Grok 4 Fast is xAI's latest multimodal model with SOTA cost-efficiency and a 2M token context window. It comes in two flavors: non-reasoning and reasoning. Read more about the model...

Giriş

$0.2 /M

Çıkış

$0.5 /M

Bağlam

2000K

Maks. Çıkış

30K

Vision

Destekleniyor

Araç Kullanımı

Destekleniyor

Grok 4 Fast'i WaveSpeedAI'da deneyin

Birleşik API'miz aracılığıyla Grok 4 Fast'e erişin — OpenAI uyumlu, soğuk başlatma yok, şeffaf fiyatlandırma.

Grok 4 Fast hakkında sık sorulan sorular

Grok 4 Fast API ücreti ne kadar?+

WaveSpeedAI fiyatlandırması: milyon giriş tokenı başına $0.20 ve milyon çıkış tokenı başına $0.50. Prompt caching ve toplu işleme ayrı faturalanır ve uzun, tekrar eden yüklerde etkin maliyeti düşürür.

Grok 4 Fast'in bağlam penceresi nedir?+

Grok 4 Fast istek başına 2000K bağlam tokenını ve 30K çıkış tokenını destekler.

Grok 4 Fast OpenAI uyumlu mu?+

Evet. WaveSpeedAI, Grok 4 Fast modelini https://llm.wavespeed.ai/v1 adresindeki OpenAI uyumlu endpoint üzerinden sunar. Resmi OpenAI SDK'sını WaveSpeedAI API anahtarınızla bu base URL'ye yöneltin — başka kod değişikliği gerekmez.

Grok 4 Fast'e nasıl başlarım?+

WaveSpeedAI'a giriş yapın, Access Keys'te bir API anahtarı oluşturun, ardından yukarıda gösterilen model id ile https://llm.wavespeed.ai/v1/chat/completions adresine bir istek gönderin. Yeni hesaplar Grok 4 Fast'i değerlendirmek için ücretsiz krediler alır.

İlgili LLM API'leri