Endpoint kapsamı
2 genel endpoint sunar: 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 varyant mevcut
Herhangi bir modeli seçin ve saniyeler içinde oluşturun.
| Sağlayıcı | DeepSeek |
| Model kimliği | deepseek-flash |
| Modality | Text |
| Görev türleri | Synchronous |
| API uç noktası | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/deepseek-flash:generateContent | |
| /v1beta/models/deepseek-flash:streamGenerateContent | |
| Faturalandırma birimi | 1K tokens |
| Katalog durumu | Operasyonel |
Ücretsiz kaydolun ve kontrol panelinden deepseek-flash için bir API anahtarı oluşturun.
deepseek-flash model kimliği ve parametrelerinizle /v1/chat/completions adresine POST isteği gönderin.
Tamamlanan deepseek-flash yanıtını uç noktadan doğrudan okuyun.
2 genel endpoint sunar: message, chat_completion.
Abonelik gerektirmeksizin 1K tokens ile ölçülür.
Bu uç nokta için yayımlanmış istek parametresi yok.
Özel bir bilgi tabanından müşteri sorularını yanıtlayarak destek talebi sayısını azaltın.
Sözleşme özetleri hazırlayın ve avukat incelemesi için önemli maddeleri işaretleyin.
CI içinde birim testleri, kod incelemeleri ve refaktör önerilerini otomatik oluşturun.
Quickstart'ta gösterilen model ID'sini gönderin.
Anahtar bazlı hız limitleri kullanım kademesine göre ölçeklenir. Güncel limitler için fiyatlandırma sayfasına bakın.
Evet — varyant bir bayraktır. model parametresini değiştirerek geçiş yapın.
Streaming उपलब्ध olduğunda RunAPI uçtan uca stream eder.
Herkese açık GitHub reposunda bir issue açın veya desteğe e-posta gönderin.
Kurumsal kurulum, entegrasyonlar ve teknik sorular konusunda yardımcı oluruz.
İletişime geçin