للمطورين
واجهة متوافقة مع OpenAI، مفاتيح API، ومنصة اختبار.
Endpoints
GET
/api/public/v1/healthPlatform and inference connectivity statusGET
/api/public/v1/modelsModel registry visible to your organizationPOST
/api/public/v1/chat/completionsChat completions, streaming supportedPOST
/api/public/v1/embeddingsVector embeddingsGET
/api/public/v1/usageUsage events and token totalscURL
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.