grok-2
completions
Grok-2 is an advanced AI model developed by xAI, designed to provide highly accurate and helpful responses to a wide range of questions, often with a unique perspective on humanity.
Input:$2 / 1M tokens•$0.5 / 1M tokenscached
Output:$10 / 1M tokens
Context:131072 tokens
tools
text
text
Category Rankings
vision#17
Access grok-2 through LangDB AI Gateway
Recommended
Integrate with xai's grok-2 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.
Unified API
Cost Optimization
Enterprise Security
Get Started Now
Free tier available • No credit card required
Instant Setup
99.9% Uptime
10,000+Monthly Requests
Code Example
Configuration
Base URL
API Keys
Headers
Project ID in header
X-Run-Id
X-Thread-Id
Model Parameters
13 availablefrequency_penalty
-202
logit_bias
logprobs
max_tokens
presence_penalty
-201.999
response_format
seed
stop
temperature
012
tool_choice
tools
top_logprobs
top_p
011
Additional Configuration
Tools
Guards
User:
Id:
Name:
Tags:
Publicly Shared Threads0
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!
Share your threads to help others
Popular Models10