# One client. Every model. Swap with a single string.
from openai import OpenAI
aiia = OpenAI(
base_url="https://api.aiialab.org/v1",
api_key="sk-aiia-***",
)
# Different disciplines, different strengths — pick the best fit
RESEARCH = aiia.chat.completions.create(
model="claude-3-7-sonnet", # long-form reasoning
messages=[{"role": "user", "content": "Review this CFD setup"}],
)
CODE = aiia.chat.completions.create(
model="deepseek-v3", # code generation
messages=[{"role": "user", "content": "Write a ROS2 publisher node"}],
)
// Drop-in for any tool that speaks the OpenAI protocol
import OpenAI from "openai";
const aiia = new OpenAI({
baseURL: "https://api.aiialab.org/v1",
apiKey: process.env.AIIA_API_KEY,
});
const res = await aiia.chat.completions.create({
model: "gemini-2.5-pro",
messages: [
{ role: "system", content: "You are a senior controls engineer." },
{ role: "user", content: "Explain this Bode plot and its stability margin" },
],
});
# Plain HTTP — no SDK, no vendor account
curl https://api.aiialab.org/v1/chat/completions \
-H "Authorization: Bearer $AIIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen-long",
"messages": [
{"role": "user", "content": "Summarise this 90-page thesis chapter"}
]
}'