← All models

SpaceXAI: Grok 4.3

x-ai/grok-4.3
textVisionFilesReasoning
SpaceXAI Grok flagship — reasoning, image understanding, 1M context.
Price in / out
Cache, read / write
Context / Max output
1M / 900K
Released
Apr 30, 2026

Additional rates

Web search

Above 200K prompt tokens the upstream charges 2× more — per-route rates are in the table below.

Parameters

messagesrequired
reasoning_effortoff · low · medium · high
max_tokensoptional · alias max_completion_tokens
streamtrue · false
toolsfunction calling (OpenAI format)
tool_choiceauto · none · required
response_formatjson_object · json_schema
web_search · · ·
providerrouting: order · only · ignore · sort
service_tierpriority
stream_options{"include_usage": true}
image_urlimage (data: URL)
filePDF · DOCX · TXT · CSV · XLSX · PPTX (data: URL)
Fine-tuning · 5
temperature0–2
seedoptional
top_p0–1
logprobstrue · false
top_logprobs0–20

How to use via API

from openai import OpenAI

client = OpenAI(base_url="https://api.mixen.ai/v1", api_key="mxn-...")
resp = client.chat.completions.create(
    model="x-ai/grok-4.3",
    messages=[{"role": "user", "content": "Привет"}],
    reasoning_effort="low",  # off · low · medium · high
    temperature=0.7,
    max_tokens=1024,
    stream=False,
)
print(resp.choices[0].message.content)

# Стриминг: stream=True — ответ приходит чанками
for chunk in client.chat.completions.create(
    model="x-ai/grok-4.3",
    messages=[{"role": "user", "content": "Привет"}],
    stream=True,
):
    print(chunk.choices[0].delta.content or "", end="", flush=True)

# с файлом (PDF · DOCX · TXT · CSV · XLSX · PPTX)
doc = client.chat.completions.create(
    model="x-ai/grok-4.3",
    messages=[{"role": "user", "content": [
        {"type": "text", "text": "Кратко перескажи документ"},
        {"type": "file", "file": {
            "filename": "doc.pdf",
            "file_data": "data:application/pdf;base64,JVBERi0...",
        }},
    ]}],
)
API docsTry in the bot