Skip to content

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);
curl https://api.indoxhub.com/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "openai/gpt-4o-mini", "messages": [{"role": "user", "content": "Hello, IndoxHub!"}]}'
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.indoxhub.com/v1"
)
response = client.chat.completions.create(
    model="openai/gpt-4o-mini",
    messages=[{"role": "user", "content": "Hello, IndoxHub!"}]
)
print(response.choices[0].message.content)

3. Explore Models

Browse available models (no auth required):

curl https://api.indoxhub.com/api/v1/models/

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

Documentation last built on May 23, 2026