للمطورين

واجهة متوافقة مع OpenAI، مفاتيح API، ومنصة اختبار.

Endpoints

GET/api/public/v1/healthPlatform and inference connectivity status
GET/api/public/v1/modelsModel registry visible to your organization
POST/api/public/v1/chat/completionsChat completions, streaming supported
POST/api/public/v1/embeddingsVector embeddings
GET/api/public/v1/usageUsage events and token totals
cURL
curl https://your-domain/api/public/v1/chat/completions \
  -H "Authorization: Bearer oodi_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "oodi-1",
    "messages": [{"role": "user", "content": "اشرح لي الفرق بين النحو والصرف"}],
    "stream": true
  }'
JavaScript
const res = await fetch("/api/public/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.OODI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "oodi-1",
    messages: [{ role: "user", content: "مرحبا" }],
  }),
});
const data = await res.json();

مفاتيح API

Keys are created inside the console, scoped per organization and per capability (chat, embeddings, models, usage), shown once at creation and revocable at any time.