Provider Slug.
x-ai
Integrate
Just paste your xAI API Key to Obiguard to create your Virtual Key.Sample Request
Obiguard is a drop-in replacement for xAI. You can make request using the official Obiguard SDK.Popular libraries & agent frameworks like LangChain, CrewAI, AutoGen, etc. are also supported.
Python
Integration Overview
xAI Endpoints & Capabilities
Obiguard works with all of xAI’s endpoints and supports all xAI capabilities like function calling and image understanding. Find examples for each below:Tool Calling (Function Calling)
Tool Calling (Function Calling)
Python
Vision
Vision
Process images alongside text using xAI’s vision capabilities:
Python
Embeddings
Embeddings
Generate embeddings for text using xAI’s embedding models:
Coming Soon!
FAQs
How to get the xAI API key?
How to get the xAI API key?
You can sign up to xAI here and grab your API key.
Is is free to use the xAI API key?
Is is free to use the xAI API key?
xAI typically gives some amount of free credits without you having to add your credit card. Reach out to their
support team if you’d like additional free credits.
I am getting rate limited on xAI API
I am getting rate limited on xAI API
You can find your current rate limits imposed by xAI on the console.