Pokrycie endpointów
Udostępnia 2 publiczny(-e) endpoint(-y): chat_completion, response.
Szybki i niedrogi model GPT-4o do codziennych zadań tekstowych
curl -X POST https://runapi.ai/v1/chat/completions \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."
}
]
}'
import { GptClient } from "@runapi.ai/gpt";
const client = new GptClient();
const result = await client.chatCompletion.run({
model: "gpt-4o-mini",
messages: [{"role":"user","content":"Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}],
});
import os
import requests
response = requests.post(
"https://runapi.ai/v1/chat/completions",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"gpt-4o-mini","messages":[{"role":"user","content":"Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]}
)
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' => 'gpt-4o-mini',
'messages' => [['role' => 'user', 'content' => 'Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations.']],
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.chatCompletion().run({"model":"gpt-4o-mini","messages":[{"role":"user","content":"Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]});
task.waitForResult();
require "runapi/gpt"
client = RunApi::Gpt::Client.new
result = client.chat_completion.run(
model: "gpt-4o-mini",
messages: [{role: "user", content: "Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.chatCompletion.Run({"model":"gpt-4o-mini","messages":[{"role":"user","content":"Analyze this quarterly revenue data and produce a summary with key trends, anomalies, and three recommendations."}]})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model gpt-4o-mini \
--endpoint chat_completion \
--wait
17 dostępnych wariantów
Wybierz dowolny model i generuj w kilka sekund.
| Dostawca | OpenAI |
| ID modelu | gpt-4o-mini |
| Modalność | Text |
| Typy zadań | Synchronous |
| Endpoint API | /v1/chat/completions |
| /v1/responses |
| /v1/messages | |
| /v1beta/models/gpt-4o-mini:generateContent | |
| /v1beta/models/gpt-4o-mini:streamGenerateContent | |
| Jednostka rozliczeniowa | 1K tokens |
| Status katalogu | Operacyjny |
Zarejestruj się bezpłatnie i utwórz klucz API dla gpt-4o-mini w panelu.
Wyślij żądanie POST do /v1/chat/completions z identyfikatorem modelu gpt-4o-mini i parametrami.
Odczytaj bezpośrednio z endpointu ukończoną odpowiedź gpt-4o-mini.
Udostępnia 2 publiczny(-e) endpoint(-y): chat_completion, response.
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.
Zweryfikowane opinie klientów nie są jeszcze dostępne dla tego modelu.
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ę