xai

xAI: Grok 2 Vision 1212

models/Grok 2 Vision 1212

Grok 2 Vision 1212 advances image based AI with stronger visual comprehension, refined instruction following, and multilingual support. From object recognition to style analysis, it empowers developers to build more intuitive, visually aware applications. Its enhanced steerability and reasoning establish a robust foundation for next generation image solutions. To read more about this model, check out xAI's announcement: https://x.ai/blog/grok 1212
Currency$USD
Input$2.00
Output$10.00
Context window32.8K

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-2-vision-1212
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-2-vision-1212",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])