Seedance 2.0 ลด 20% | สร้างใน Video Generator →
xai
x-ai/grok-4.20

x-ai/grok-4.20

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...

ราคา

จ่ายตามการใช้งาน

ไม่มีค่าใช้จ่ายล่วงหน้า จ่ายเฉพาะสิ่งที่คุณใช้

อินพุต$2.00 / M Tokens
เอาต์พุต$6.00 / M Tokens
Cache Read$0.20 / M Tokens

ลองใช้โมเดล

x-ai/grok-4.20
ออนไลน์
xai
สวัสดี! ฉันคือผู้ช่วย AI พร้อมช่วยคุณ ต้องการให้ช่วยอะไรไหม?

การใช้งาน API

ใช้ตัวอย่างโค้ดต่อไปนี้เพื่อผสานรวมกับ API ของเรา:

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.20",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)

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

ข้อมูล

ผู้ให้บริการxai
ประเภทllm

ฟังก์ชันที่รองรับ

อินพุต
ข้อความรูปภาพ
เอาต์พุต
ข้อความ
บริบท2,000,000
เอาต์พุตสูงสุด-
Vision✓ รองรับ
Function Calling✓ รองรับ

คู่มือการเข้าถึง API

Base URLhttps://llm.wavespeed.ai/v1
API Endpointchat/completions
Model IDx-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...

อินพุต

$2 /M

เอาต์พุต

$6 /M

คอนเท็กซ์

2000K

Vision

รองรับ

การใช้เครื่องมือ

รองรับ

ลองใช้ Grok 4.20 บน WaveSpeedAI

เข้าถึง Grok 4.20 ผ่าน API แบบรวมของเรา — เข้ากันได้กับ OpenAI ไม่มี cold start ราคาโปร่งใส

คำถามที่พบบ่อยเกี่ยวกับ Grok 4.20

Grok 4.20 API ราคาเท่าไหร่?+

ราคาบน WaveSpeedAI: $2.00 ต่อล้านโทเคนอินพุต และ $6.00 ต่อล้านโทเคนเอาต์พุต Prompt caching และ batch processing คิดค่าบริการแยกและช่วยลดต้นทุนที่แท้จริงสำหรับภาระงานที่ยาวและทำซ้ำ

Grok 4.20 มี context window เท่าใด?+

Grok 4.20 รองรับสูงสุด 2000K โทเคนคอนเท็กซ์ และสูงสุด — โทเคนเอาต์พุตต่อคำขอ

Grok 4.20 เข้ากันได้กับ OpenAI หรือไม่?+

ใช่ WaveSpeedAI ให้บริการ Grok 4.20 ผ่าน endpoint ที่เข้ากันได้กับ OpenAI ที่ https://llm.wavespeed.ai/v1 ชี้ OpenAI SDK ทางการมาที่ base URL นี้ด้วย API key ของ WaveSpeedAI — ไม่ต้องแก้ไขโค้ดอื่น

จะเริ่มใช้ Grok 4.20 ได้อย่างไร?+

ลงชื่อเข้าใช้ WaveSpeedAI สร้าง API key ใน Access Keys จากนั้นส่งคำขอไปยัง https://llm.wavespeed.ai/v1/chat/completions พร้อม model id ที่แสดงด้านบน บัญชีใหม่จะได้รับเครดิตฟรีสำหรับทดลองใช้ Grok 4.20

LLM API ที่เกี่ยวข้อง