Copertura endpoint
Espone 2 endpoint pubblici: 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 versioni disponibili
Scegli un modello e genera in pochi secondi.
| Provider | DeepSeek |
| ID modello | deepseek-flash |
| Modalità | Text |
| Tipi di attività | Synchronous |
| Endpoint API | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/deepseek-flash:generateContent | |
| /v1beta/models/deepseek-flash:streamGenerateContent | |
| Unità di fatturazione | 1K tokens |
| Stato del catalogo | Operativo |
Registrati gratuitamente e crea una chiave API per deepseek-flash dalla dashboard.
Invia una richiesta POST a /v1/chat/completions con l’identificatore del modello deepseek-flash e i tuoi parametri.
Leggi direttamente dall’endpoint la risposta completata di deepseek-flash.
Espone 2 endpoint pubblici: message, chat_completion.
Misurata in base a 1K tokens, senza requisito di abbonamento.
Nessun parametro della richiesta è pubblicato per questo endpoint.
Rispondi alle domande dei clienti partendo da una knowledge base privata, riducendo il volume dei ticket.
Redigi riepiloghi di contratti e segnala le clausole chiave per la revisione dell'avvocato.
Genera automaticamente test unitari, code review e suggerimenti di refactoring in CI.
Passa l'ID del modello mostrato nel quickstart.
I limiti per chiave scalano in base al tier di utilizzo. Consulta la pagina prezzi per i limiti attuali.
Sì — la variante è un flag. Puoi cambiarla modificando il parametro model.
Dove lo streaming è disponibile, RunAPI esegue lo streaming end-to-end.
Apri un issue nel repository GitHub pubblico oppure scrivi all’assistenza.
Ti aiutiamo con la configurazione enterprise, le integrazioni e le domande tecniche.
Contattaci