Today's real-time usage statistics
You can query data within 1 year
Total Cost
\$0.00
Total Requests
0
Input Tokens
0
Output Tokens
0
Images
0
Model Usage Details
Model | Requests | Input Tokens | Output Tokens | Images | Cost | Percentage |
---|
Daily Usage Statistics
Date | Requests | Cost | Tokens | Images | Primary Model |
---|
Account Balance Query
Supported format: XAI XAPI Keys starting with sk-Xvs...
Query Results
π Supported AI Service Providers
OpenAI
platform.openai.com/docsAnthropic
docs.anthropic.comPerplexity
docs.perplexity.aiMistral AI
docs.mistral.aiGrok AI
docs.x.aiGemini
ai.google.devCohere
docs.cohere.comDeepSeek
api-docs.deepseek.comAI21
docs.ai21.com⨠The XAI platform fully supports all models from the above AI service providers. With a single API key, you can seamlessly access AI models from any of these providers, enabling flexible and efficient AI application development.
π» SDK Examples
OpenAI SDK Example
import os
from openai import OpenAI
XAI_API_KEY = os.getenv("XAI_API_KEY")
client = OpenAI(
api_key=XAI_API_KEY,
base_url="",
)
completion = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "system", "content": "You are AI"},
{"role": "user", "content": "What is the meaning of life, the universe, and everything?"},
],
)
print(completion.choices[0].message)
Anthropic SDK Example
import os
from anthropic import Anthropic
XAI_API_KEY = os.getenv("XAI_API_KEY")
client = Anthropic(
api_key=XAI_API_KEY,
base_url="",
)
message = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=128,
system="You are AI.",
messages=[
{
"role": "user",
"content": "What is the meaning of life, the universe, and everything?",
},
],
)
print(message.content)
Create New Sub-account
API Call Examples
cURL
Python
JavaScript
Fund/Deduct Sub-account
API Call Examples
cURL
Python
JavaScript
View Sub-account Information
API Call Examples
cURL
Python
JavaScript
Update Sub-account Information
API Call Examples
cURL
Python
JavaScript
Delete Sub-account
This action cannot be undone. The sub-account Key will be immediately invalidated.
API Call Examples
cURL
Python
JavaScript
Activity Logs
Time | Operator | Action | Target Account | Details | IP Address |
---|
Loading logs...
No activity logs available