واجهة API واحدة متوافقة مع OpenAI ورصيد واحد مسبق الدفع. بلا اشتراك أو حدّ أدنى للإنفاق.
curl -N https://api.africaopenrouter.com/v1/chat/completions \ -H "Authorization: Bearer $AOR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"gpt-5.6-sol","messages":[{"role":"user","content":"مرحبا"}],"stream":true}'
# pip install openai from openai import OpenAI client = OpenAI( base_url="https://api.africaopenrouter.com/v1", api_key="<AOR_API_KEY>", ) stream = client.chat.completions.create( model="gpt-5.6-sol", messages=[{"role": "user", "content": "مرحبا"}], stream=True, ) for chunk in stream: print(chunk.choices[0].delta.content or "", end="")
// npm install openai import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.africaopenrouter.com/v1", apiKey: process.env.AOR_API_KEY, }); const stream = await client.chat.completions.create({ model: "gpt-5.6-sol", messages: [{ role: "user", content: "مرحبا" }], stream: true, }); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? ""); }
| السياق | 400K |
| أقصى إخراج | 128K |
| السياق | 400K |
| أقصى إخراج | 128K |
| السياق | 200K |
| أقصى إخراج | 128K |
سجّل الدخول باستخدام Google.
ادفع إلكترونيًا أو نقدًا حيث تتوفر الخدمة.
انسخ المفتاح إلى تطبيقك.