Pokrycie endpointów
Udostępnia 2 publiczny(-e) endpoint(-y): 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 dostępnych wariantów
Wybierz dowolny model i generuj w kilka sekund.
| Dostawca | DeepSeek |
| ID modelu | deepseek-flash |
| Modalność | Text |
| Typy zadań | Synchronous |
| Endpoint API | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/deepseek-flash:generateContent | |
| /v1beta/models/deepseek-flash:streamGenerateContent | |
| Jednostka rozliczeniowa | 1K tokens |
| Status katalogu | Operacyjny |
Zarejestruj się bezpłatnie i utwórz klucz API dla deepseek-flash w panelu.
Wyślij żądanie POST do /v1/chat/completions z identyfikatorem modelu deepseek-flash i parametrami.
Odczytaj bezpośrednio z endpointu ukończoną odpowiedź deepseek-flash.
Udostępnia 2 publiczny(-e) endpoint(-y): message, chat_completion.
Rozliczane według 1K tokens bez wymogu subskrypcji.
Dla tego endpointu nie opublikowano parametrów żądania.
Odpowiadaj na pytania klientów na podstawie prywatnej bazy wiedzy, zmniejszając liczbę zgłoszeń.
Twórz podsumowania umów i wyłapuj kluczowe klauzule do weryfikacji przez prawnika.
Automatycznie generuj testy jednostkowe, sugestie code review i refaktoryzacji w CI.
Przekaż identyfikator modelu wyświetlony w quickstarcie.
Limity na klucz skalują się wraz z poziomem wykorzystania. Aktualne limity znajdziesz na stronie cennika.
Tak — wariant to flaga. Zmieniasz go, aktualizując parametr model.
Tam, gdzie streaming jest dostępny, RunAPI streamuje end-to-end.
Otwórz issue w publicznym repo na GitHubie albo napisz do supportu.
Pomożemy w konfiguracji dla firm, integracjach i kwestiach technicznych.
Skontaktuj się