Manage your API keys and usage
Add your first OpenAI, DeepSeek, or other provider key to start using AimActok.
Read setup guide你的 JWT:
OpenAI SDK 一行接入(Hermes、Cursor、Cline、LangChain 都可):
# 唯一区别:base_url 换成我们的
from openai import OpenAI
client = OpenAI(
base_url="https://aimactok.com/v1", # ← 重点
api_key="你的 JWT" # ← 顶部 Copy 拿
)
r = client.chat.completions.create(
model="gpt-4o-mini", # ← 从 33+ 预设任选
messages=[{"role":"user","content":"hi"}]
)
print(r.choices[0].message.content)
curl 等价:
curl -X POST https://aimactok.com/v1/chat/completions \
-H 'Authorization: Bearer YOUR_JWT' \
-H 'Content-Type: application/json' \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"hi"}]}'
⚠️ 常见错误:"No active key found" = 还没加 key(回 Step 1);"Invalid API key" = 厂商拒 key(检查 OpenAI/DeepSeek 后台);"missing field model" = 忘了传 model。
Bind a virtual key issued by your admin to share your team's provider API keys (up to 5 seats).
Paste the sk-aim-... key your admin gave you.