from openai import OpenAI
client = OpenAI(
api_key="cutad-YOUR_API_KEY",
base_url="https://mimo.lokerin.net/v1"
)
response = client.chat.completions.create(
model="cutad-agent-pro",
messages=[{"role": "user", "content": "Hello!"}],
stream=True
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")curl https://mimo.lokerin.net/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cutad-YOUR_API_KEY" \
-d '{"model":"cutad-agent-pro","messages":[{"role":"user","content":"Hello!"}],"stream":true}'const res = await fetch("https://mimo.lokerin.net/v1/chat/completions", {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer cutad-YOUR_API_KEY" },
body: JSON.stringify({ model: "cutad-agent-pro", messages: [{ role: "user", content: "Hello!" }], stream: true }),
});Copy this key now. You won't see it again.