Getting Started¶
Get up and running with IndoxHub in under 5 minutes.
1. Get Your API Key¶
Sign up at indoxhub.com and generate an API key from the dashboard. Keys follow the format indox-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
2. Make Your First Request¶
import requests
response = requests.post(
"https://api.indoxhub.com/api/v1/chat/completions",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "openai/gpt-4o-mini",
"messages": [
{"role": "user", "content": "Hello, IndoxHub!"}
]
}
)
print(response.json()["data"])
const response = await fetch("https://api.indoxhub.com/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
model: "openai/gpt-4o-mini",
messages: [{ role: "user", content: "Hello, IndoxHub!" }]
})
});
console.log((await response.json()).data);
3. Explore Models¶
Browse available models (no auth required):
4. Try Different Providers¶
Just change the model name — the API stays the same:
# Fast & cheap
response = client.chat.completions.create(model="deepseek/deepseek-chat", ...)
# Premium quality
response = client.chat.completions.create(model="openai/gpt-4o", ...)
# Anthropic
response = client.chat.completions.create(model="anthropic/claude-haiku-4.5", ...)
What's Available¶
| Capability | Endpoint | Providers |
|---|---|---|
| Chat | /chat/completions |
OpenAI, Anthropic, Google, + more |
| Text Completion | /completions |
OpenAI, Mistral, DeepSeek, + more |
| Embeddings | /embeddings |
OpenAI, Mistral, Google, Cohere |
| Image Generation | /images/generations |
OpenAI, Google, Stability |
| Video Generation | /videos/generations |
Google, Luma |
| Text-to-Speech | /audio/tts/generations |
OpenAI |
| Speech-to-Text | /audio/stt/transcriptions |
OpenAI |
Next Steps¶
- Basic Usage — Authentication, response format, error handling
- Chat Completions — Detailed chat API reference
- OpenAI SDK Guide — Drop-in replacement with the OpenAI SDK
- Models — Browse all available models and providers
- Streaming — Real-time response streaming