تغطية الـ Endpoint
يعرض 2 endpoint(s) عامة: message, chat_completion.
curl -X POST https://runapi.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-flash",
"messages": [
{
"role": "user",
"content": "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."
}
]
}'
import { DeepseekClient } from "@runapi.ai/deepseek";
const client = new DeepseekClient();
const result = await client.chatCompletion.run({
model: "deepseek-flash",
messages: [{"role":"user","content":"Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}],
});
import os
import requests
response = requests.post(
"https://runapi.ai/v1/chat/completions",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"deepseek-flash","messages":[{"role":"user","content":"Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/v1/chat/completions");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'deepseek-flash',
'messages' => [['role' => 'user', 'content' => 'Refactor this Python module for readability, explain each change, then add unit tests for the edge cases.']],
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.chatCompletion().run({"model":"deepseek-flash","messages":[{"role":"user","content":"Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]});
task.waitForResult();
require "runapi/deepseek"
client = RunApi::Deepseek::Client.new
result = client.chat_completion.run(
model: "deepseek-flash",
messages: [{role: "user", content: "Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.chatCompletion.Run({"model":"deepseek-flash","messages":[{"role":"user","content":"Refactor this Python module for readability, explain each change, then add unit tests for the edge cases."}]})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model deepseek-flash \
--endpoint chat_completion \
--wait
4 إصدارات متاحة
اختر أي نموذج وابدأ التوليد في ثوانٍ.
| المزوّد | DeepSeek |
| معرّف النموذج | deepseek-flash |
| النمط | Text |
| أنواع المهام | Synchronous |
| نقطة نهاية API | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/deepseek-flash:generateContent | |
| /v1beta/models/deepseek-flash:streamGenerateContent | |
| وحدة الفوترة | 1K tokens |
| حالة الكتالوج | جاهز للتشغيل |
سجّل مجانًا وأنشئ مفتاح API لـ deepseek-flash من لوحة التحكم.
أرسل طلب POST إلى /v1/chat/completions باستخدام معرّف نموذج deepseek-flash ومعلماتك.
اقرأ استجابة deepseek-flash المكتملة مباشرة من نقطة النهاية.
يعرض 2 endpoint(s) عامة: message, chat_completion.
محسوبة بـ 1K tokens دون اشتراط اشتراك.
لم يتم نشر معلمات طلب لنقطة النهاية هذه.
أجب عن أسئلة العملاء من قاعدة معرفة خاصة، مما يقلل حجم التذاكر.
أعد ملخصات للعقود وحدد البنود المهمة لمراجعة المحامي.
أنشئ تلقائيًا اختبارات الوحدات ومراجعات الشيفرة واقتراحات إعادة الهيكلة داخل CI.
لا تتوفر ملاحظات موثّقة من العملاء لهذا النموذج بعد.
مرّر معرّف النموذج الظاهر في دليل البدء السريع.
تتدرج حدود المعدل لكل مفتاح بحسب مستوى الاستخدام. راجع صفحة التسعير للاطلاع على الحدود الحالية.
نعم — المتغير مجرد خيار. بدّل عبر تغيير معامل model.
حيثما يتوفر البث، يقدّم RunAPI البث من البداية إلى النهاية.
افتح issue في مستودع GitHub العام أو راسل الدعم عبر البريد الإلكتروني.