API Documentation

DOMIXI provides an OpenAI-compatible API. Point any OpenAI client's base_url at us.

Base URL https://token-service.ai-domixi.com/v1

πŸ”‘ Authentication

Authorization: Bearer sk-***

Create keys in Console β†’ Tokens. Set expiry, model scope, IP whitelist & quota. Console β†’ Tokens

πŸ“‘ Endpoints

POST/v1/chat/completions
POST/v1/messages
POST/v1/embeddings
POST/v1/images/generations
POST/v1/videos
GET/v1/videos/{task_id}
POST/v1/rerank
GET/v1/models

🐍 Python Example

from openai import OpenAI

client = OpenAI(
    api_key="sk-xxx…xxxx",   # token issued by the console
    base_url="https://token-service.ai-domixi.com/v1"
)

resp = client.chat.completions.create(
    model="claude-sonnet-4-5",       # want another model? just change this line
    messages=[{"role": "user", "content": "Hello"}]
)
print(resp.choices[0].message.content)

🌐 cURL Example

curl https://token-service.ai-domixi.com/v1/chat/completions \
  -H "Authorization: Bearer ***" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek-v4", "messages": [{"role": "user", "content": "Hello"}]}'

🎬 Video generation (minimax-h3) β€” supported sizes & aspect ratios

Video models bill per second (0.5 Credit / second) and only accept the following aspect ratios and resolutions; values outside this whitelist are rejected upstream.

Aspect ratios:21:9, 16:9, 4:3, 1:1, 3:4, 9:16
Resolutions:
1366x768 (768p)text-to-video / image-to-video / video-to-video
1920x1080video-to-video only
2560x1440 (2K)text-to-video / image-to-video / video-to-video

⚠️ 5:3 / 3:5 ratios (e.g. 1280x768, 768x1280) are unsupported and fail immediately. Use the values in the whitelist above.

❗ Error Codes

401Invalid or expired token
402Insufficient balance β€” please top up
429Rate limit or quota exceeded
500Upstream issue β€” auto-retrying alternate channels

Interactive API reference

Try requests below. Create a token in the console, then click Authorize and paste your sk- key.