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/completionsPOST
/v1/messagesPOST
/v1/embeddingsPOST
/v1/images/generationsPOST
/v1/videosGET
/v1/videos/{task_id}POST
/v1/rerankGET
/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:16Resolutions:
1366x768 (768p)text-to-video / image-to-video / video-to-video1920x1080video-to-video only2560x1440 (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 token402Insufficient balance β please top up429Rate limit or quota exceeded500Upstream issue β auto-retrying alternate channelsInteractive API reference
Try requests below. Create a token in the console, then click Authorize and paste your sk- key.