Quickstart
Make your first request in under two minutes. AIx speaks the OpenAI API, so if you’ve used OpenAI you already know this.
1 · Get an API key
Create a key in the dashboard and copy it (shown once). Keys are
prefixed tam_.
2 · Install an SDK
pip install openai # Python
npm install openai # Node
You can also call the API with plain curl — no SDK needed.
3 · Make your first call
curl https://api.aix.theaimart.co/v1/chat/completions \
-H "Authorization: Bearer $AIX_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-ai/DeepSeek-V3.2",
"messages": [{ "role": "user", "content": "Hello, AIx" }]
}' from openai import OpenAI
client = OpenAI(
base_url="https://api.aix.theaimart.co/v1",
api_key="YOUR_AIX_KEY",
)
resp = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V3.2",
messages=[{"role": "user", "content": "Hello, AIx"}],
)
print(resp.choices[0].message.content) import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.aix.theaimart.co/v1",
apiKey: process.env.AIX_KEY,
});
const r = await client.chat.completions.create({
model: "deepseek-ai/DeepSeek-V3.2",
messages: [{ role: "user", content: "Hello, AIx" }],
});
console.log(r.choices[0].message.content); ✦ Tip
Switch models by changing one string — the request shape never changes. Browse the catalog for everything callable.
Or run it right here — paste your key and hit Run:
Try it Runs a live request with your key — stored only in this browser.
4 · Stream the response
stream = client.chat.completions.create(
model="deepseek-ai/DeepSeek-V3.2",
messages=[{"role": "user", "content": "count to 5"}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="", flush=True) const stream = await client.chat.completions.create({
model: "deepseek-ai/DeepSeek-V3.2",
messages: [{ role: "user", content: "count to 5" }],
stream: true,
});
for await (const part of stream) process.stdout.write(part.choices[0]?.delta?.content ?? ""); Next steps
- Migrating from OpenAI — change two lines
- Chat completions — all parameters
- Build a coding agent — RAG over a repo