LLM
Chat completion (OpenAI-compatible)
Jalur LLM synchronous, kompatibel dengan SDK OpenAI — arahkan base_url SDK ke https://getrun.id/v1.
Billing per token: saldo direservasi dari max_tokens, di-capture berdasarkan token aktual. Dengan stream: true, response berupa Server-Sent Events dan usage dikirim pada chunk terakhir.
Endpoint ini tidak memakai lifecycle task dan tidak memakai webhook. Error mengikuti format OpenAI ({"error": {"message", "type", "code"}}).
post/chat/completions
Request
- Base URL: https://getrun.id/v1
- URL: https://getrun.id/v1/chat/completions
- Auth: HTTP bearer
Request body
Example request
{
"model": "anthropic/claude-sonnet-5"
}Response
Chat completion (JSON), atau stream SSE bila stream: true.
object required
Objek chat.completion sesuai format OpenAI.
Changes
No recorded changes to this operation across all 1 revision of this API.