xai

xAI: Grok 4.1 Fast

models/Grok 4.1 Fast

Grok 4.1 Fast is xAI's best agentic tool calling model that shines in real world use cases like customer support and deep research. Features a 2M token context window and vision support. Reasoning can be enabled/disabled via the `reasoning` parameter.
Currency$USD
Input$0.20
Output$0.50
Context window2M

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configxai/grok-4-1-fast
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="xai/grok-4-1-fast",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])