### GET /v1/models - Example response Source: https://docs.koboillm.com/api-reference Example response from the GET /v1/models endpoint. It returns a list of available models, each with an id, object type, creation timestamp, and owner. ```json { "object": "list", "data": [ { "id": "openai/gpt-4o-mini", "object": "model", "created": 1677652288, "owned_by": "openai" } ] } ``` -------------------------------- ### GET /model/info Example Response Source: https://docs.koboillm.com/integrasi/management-reference Example JSON response structure for the /model/info endpoint, showing model name, parameters, and model information. ```json { "data": [ { "model_name": "fake-openai-endpoint", "litellm_params": { "api_base": "https://exampleopenaiendpoint-production.up.railway.app/", "model": "openai/fake" }, "model_info": { "id": "112f74fab24a7a5245d2ced3536dd8f5f9192c57ee6e332af0f0512e08bed5af", "db_model": false } } ] } ``` -------------------------------- ### Google Colab: Generate, display, and save image Source: https://docs.koboillm.com/images Complete Google Colab example that installs litellm, generates an image with openai/gpt-image-1.5, retrieves the image data from response.data[0] (either via URL or base64), displays it inline, and saves it to hasil.png. Uses google.colab.userdata to get the LITELLM_API_KEY. Prints the saved file size and usage information. ```python !pip install litellm -q import os, base64, requests from io import BytesIO from IPython.display import Image, display from litellm import image_generation from google.colab import userdata os.environ["LITELLM_API_KEY"] = userdata.get("LITELLM_API_KEY") response = image_generation( model = "openai/gpt-image-1.5", prompt = "Pantai tropis dengan air biru jernih dan pohon kelapa, gaya fotografi", n = 1, size = "1024x1024", quality = "high", api_base = "https://lite.koboillm.com/v1", api_key = os.environ["LITELLM_API_KEY"], ) image_data = response.data[0] if image_data.url: img_bytes = requests.get(image_data.url).content elif image_data.b64_json: img_bytes = base64.b64decode(image_data.b64_json) display(Image(data=img_bytes)) with open("hasil.png", "wb") as f: f.write(img_bytes) print(f"💾 Tersimpan ke hasil.png ({len(img_bytes)} bytes)") print(f"📊 Usage: {response.usage}") ``` -------------------------------- ### Install OpenAI Codex CLI with npm Source: https://docs.koboillm.com/integrasi/codex Installs the OpenAI Codex CLI globally using npm. Requires Node.js and npm to be installed on your system. ```bash npm install -g @openai/codex ``` -------------------------------- ### Install OpenAI Codex CLI with yarn Source: https://docs.koboillm.com/integrasi/codex Installs the OpenAI Codex CLI globally using yarn. Requires Node.js and yarn to be installed on your system. ```bash yarn global add @openai/codex ``` -------------------------------- ### Python example: image without extension using format Source: https://docs.koboillm.com/vision Example of creating a chat completion with an image URL that lacks an extension, specifying 'format': 'image/jpeg' for providers like Gemini. The 'format' field is ignored by providers that don't need it (e.g., OpenAI). ```python response = client.chat.completions.create( model="gemini/gemini-2.5-pro", messages=[ { "role": "user", "content": [ {"type": "text", "text": "Baca teks di gambar ini."}, { "type": "image_url", "image_url": { "url": "https://cdn.example.com/scan-abc123", "format": "image/jpeg", }, }, ], } ], ) ``` -------------------------------- ### GET /key/info Source: https://docs.koboillm.com/integrasi/management Mengambil informasi metadata, limit, dan status keaktifan dari Virtual Key tertentu. ```bash curl -X GET "https://api.koboillm.com/key/info?key=sk-koboillm-your-key-here" \ -H "Authorization: Bearer *** \ -H "accept: application/json" ``` ```json { "key": "sk-koboillm-your-key-here", "info": { "token": "a1b2c3d4e5f6g7h8i9j0...", "key_name": "Editor Key 1", "key_alias": "editor_key", "spend": 12.0450, "max_budget": 50.00, "budget_duration": "30d", "budget_reset_at": "2026-08-01T00:00:00Z", "last_active": "2026-07-16T15:45:20Z", "user_id": "user_12345", "team_id": "team_99c03b41-f761-463d-8ab1-16b0b471ec1b", "tpm_limit": 50000, "rpm_limit": 100, "blocked": false, "models": ["openai/gpt-5.6-luna", "openai/gpt-5.6-terra"], "created_at": "2026-07-08T11:27:28Z" } } ``` -------------------------------- ### GET /key/info Source: https://docs.koboillm.com/api-reference Mendapatkan informasi API key saat ini. ```APIDOC ## GET /key/info ### Description Mendapatkan informasi API key saat ini. ### Method GET ### Endpoint /key/info ``` -------------------------------- ### GET /v1/fine_tuning/jobs Source: https://docs.koboillm.com/api-reference Mendapatkan daftar fine-tuning jobs yang tersedia. ```APIDOC ## GET /v1/fine_tuning/jobs ### Description Mendapatkan daftar fine-tuning jobs. ### Method GET ### Endpoint /v1/fine_tuning/jobs ``` -------------------------------- ### GET /v1/batches Source: https://docs.koboillm.com/api-reference Mendapatkan daftar batch jobs yang ada. ```APIDOC ## GET /v1/batches ### Description Mendapatkan daftar batch jobs. ### Method GET ### Endpoint /v1/batches ``` -------------------------------- ### GET /key/list Source: https://docs.koboillm.com/integrasi/management-reference Lists all virtual keys registered on the server. Requires Global Admin permission. ```APIDOC ## [GET] /key/list ### Description Mendaftar seluruh Virtual Key yang terdaftar di server. ### Method GET ### Endpoint /key/list ### Parameters #### Query Parameters - **page** (integer) - Optional - Page number - **size** (integer) - Optional - Page size - **user_id** (string) - Optional - Filter keys by user ID - **team_id** (string) - Optional - Filter keys by team ID - **organization_id** (string) - Optional - Filter keys by organization ID - **key_hash** (string) - Optional - Filter keys by key hash - **key_alias** (string) - Optional - Filter keys by key alias - **return_full_object** (boolean) - Optional - Return full key object - **include_team_keys** (boolean) - Optional - Include all keys for teams that user is an admin of. - **include_created_by_keys** (boolean) - Optional - Include keys created by the user - **sort_by** (string) - Optional - Column to sort by (e.g. 'user_id', 'created_at', 'spend') - **sort_order** (string) - Optional - Sort order ('asc' or 'desc') - **expand** (string) - Optional - Expand related objects (e.g. 'user') - **status** (string) - Optional - Filter by status (e.g. 'deleted') - **project_id** (string) - Optional - Filter keys by project ID - **access_group_id** (string) - Optional - Filter keys by access group ID ``` -------------------------------- ### GET /key/info Source: https://docs.koboillm.com/integrasi/management-reference Retrieves detailed information, budget limits, and spending status for a virtual key. ```APIDOC ## [GET] /key/info ### Description Mengambil rincian informasi, batas budget, dan status pengeluaran Virtual Key. ### Method GET ### Endpoint /key/info ### Parameters #### Query Parameters - **key** (string) - Optional - Key in the request parameters ``` -------------------------------- ### Instalasi OpenClaw via One-Liner Source: https://docs.koboillm.com/integrasi/openclaw Script instalasi otomatis OpenClaw yang diunduh dari openclaw.ai. Installer akan mendeteksi dependencies, menginstal Node.js versi 22, dan OpenClaw CLI. ```bash curl -sSfL https://openclaw.ai/install.sh | bash ``` -------------------------------- ### Kirim Gambar dengan OpenAI SDK Source: https://docs.koboillm.com/vision Menggunakan SDK OpenAI standar dengan mengganti base_url untuk berinteraksi dengan LiteLLM proxy. ```python import os from openai import OpenAI client = OpenAI( base_url="https://lite.koboillm.com/v1", api_key=os.environ["LITELLM_API_KEY"], ) response = client.chat.completions.create( model="openai/gpt-4o-mini", # ganti ke openai/gpt-4o atau gemini/gemini-2.5-flash messages=[ { "role": "user", "content": [ {"type": "text", "text": "Apa isi gambar ini?"}, { "type": "image_url", "image_url": { "url": "https://docs.koboillm.com/koboi_llm_logo.png" }, }, ], } ], ) print(response.choices[0].message.content) ``` -------------------------------- ### Python (OpenAI SDK): Generate image with openai/gpt-image-1.5 Source: https://docs.koboillm.com/images Uses the standard OpenAI SDK with a custom base_url pointing to the LiteLLM proxy, which is OpenAI-compatible. The client is configured with base_url https://lite.koboillm.com/v1 and an API key, then calls client.images.generate with the openai/gpt-image-1.5 model. ```python from openai import OpenAI client = OpenAI( base_url="https://lite.koboillm.com/v1", api_key="sk-xxxxxxxxxxxxxx", ) response = client.images.generate( model="openai/gpt-image-1.5", prompt="Naga megah terbang di atas pegunungan berkabut saat senja", size="1024x1024", quality="high", n=1, ) ``` -------------------------------- ### GET /spend/tags Example Request Source: https://docs.koboillm.com/integrasi/management-reference A basic cURL request to retrieve spend tags using an authorization bearer token. ```bash curl -X GET "https://api.koboillm.com:8000/spend/tags" -H "Authorization: Bearer sk-xxxxxx" ``` -------------------------------- ### Inisialisasi client OpenAI untuk KoboiLLM Source: https://docs.koboillm.com/integrasi/python Gunakan snippet ini untuk memanggil API KoboiLLM melalui library resmi openai di Python. Pastikan library openai sudah terinstal (pip install openai) dan ganti sk-xxx...xxxx dengan API Key KoboiLLM Anda. Model dapat diganti dengan format provider/model seperti openai/gpt-5.6-sol atau openai/gpt-5.6-terra. ```python import openai client = openai.OpenAI( api_key="sk-xxxxxxxxxxxxxxxxxxxx", # Masukkan API Key KoboiLLM Anda base_url="https://api.koboillm.com/v1" # Ganti Base URL ke server KoboiLLM ) response = client.chat.completions.create( model="openai/gpt-5.6-luna", # Atau model lain seperti openai/gpt-5.6-sol, openai/gpt-5.6-terra, dll messages=[ {"role": "user", "content": "this is a test request, write a short poem"} ] ) print(response) ``` -------------------------------- ### Kirim Gambar dengan LiteLLM SDK Source: https://docs.koboillm.com/vision Menggunakan fungsi completion dari LiteLLM SDK untuk mengirim permintaan multimodal. ```python import os from litellm import completion os.environ["LITELLM_API_KEY"] = "sk-xxxxxxxxxxxxxx" response = completion( model="openai/gpt-4o-mini", messages=[ { "role": "user", "content": [ {"type": "text", "text": "Apa isi gambar ini?"}, { "type": "image_url", "image_url": { "url": "https://docs.koboillm.com/koboi_llm_logo.png" }, }, ], } ], api_base="https://lite.koboillm.com/v1", api_key=os.environ["LITELLM_API_KEY"], ) print(response.choices[0].message.content) ``` -------------------------------- ### GET /spend/tags with Date Range Source: https://docs.koboillm.com/integrasi/management-reference A cURL request to retrieve spend tags filtered by a specific start and end date. ```bash curl -X GET "https://api.koboillm.com:8000/spend/tags?start_date=2022-01-01&end_date=2022-02-01" -H "Authorization: Bearer sk-xxxxxx" ``` -------------------------------- ### GET /spend/tags Source: https://docs.koboillm.com/integrasi/management-reference LiteLLM Enterprise endpoint to view spend per request tag. Supports optional start and end date filters. ```APIDOC ## [GET] /spend/tags ### Description Melihat Tag Riwayat Transaksi. LiteLLM Enterprise - View Spend Per Request Tag. ### Method GET ### Endpoint /spend/tags ### Parameters #### Query Parameters - **start_date** (string) - Optional - Time from which to start viewing key spend - **end_date** (string) - Optional - Time till which to view key spend ### Request Example ``` curl -X GET "https://api.koboillm.com:8000/spend/tags" -H "Authorization: Bearer sk-xxxxxx" ``` Spend with Start Date and End Date ``` curl -X GET "https://api.koboillm.com:8000/spend/tags?start_date=2022-01-01&end_date=2022-02-01" -H "Authorization: Bearer sk-xxxxxx" ``` ### Response #### Success Response (200) Returns spend data per request tag. ### Authorization Global Admin Only ``` -------------------------------- ### Konfigurasi opencode.json untuk KoboiLLM Source: https://docs.koboillm.com/integrasi/opencode Konfigurasi opencode.json untuk menghubungkan OpenCode ke KoboiLLM. Gunakan driver @ai-sdk/openai-compatible, baseURL KoboiLLM, dan referensi environment variable KOBOILLM_API_KEY. Daftarkan model GPT-5.6 Sol, Terra, dan Luna dengan batasan context 1050000 dan output 128000, serta set model default koboillm/openai/gpt-5.6-sol. ```json { "$schema": "https://opencode.ai/config.json", "provider": { "koboillm": { "npm": "@ai-sdk/openai-compatible", "name": "KoboiLLM", "options": { "baseURL": "https://api.koboillm.com/v1", "apiKey": "{env:KOBOILLM_API_KEY}" }, "models": { "openai/gpt-5.6-sol": { "name": "GPT-5.6 Sol", "limit": { "context": 1050000, "output": 128000 } }, "openai/gpt-5.6-terra": { "name": "GPT-5.6 Terra", "limit": { "context": 1050000, "output": 128000 } }, "openai/gpt-5.6-luna": { "name": "GPT-5.6 Luna", "limit": { "context": 1050000, "output": 128000 } } } } }, "model": "koboillm/openai/gpt-5.6-sol" } ``` -------------------------------- ### Menjalankan OpenCode dengan API Key (Linux/macOS) Source: https://docs.koboillm.com/integrasi/opencode Menjalankan OpenCode dengan API Key KoboiLLM pada Linux/macOS (Bash/Zsh). Set environment variable KOBOILLM_API_KEY terlebih dahulu, lalu jalankan opencode. ```bash export KOBOILLM_API_KEY="sk-koboillm-anda" opencode ``` -------------------------------- ### GET /budget/settings Source: https://docs.koboillm.com/integrasi/management-reference Mendapatkan daftar parameter yang dapat dikonfigurasi beserta nilai saat ini dan deskripsi untuk setiap field dari sebuah budget. Endpoint ini digunakan pada Admin UI dan hanya dapat diakses oleh Global Admin. ```APIDOC ## [GET] /budget/settings ### Description Get list of configurable params + current value for a budget item + description of each field. Used on Admin UI. ### Method GET ### Endpoint /budget/settings ### Authorization Global Admin Only ### Parameters #### Query Parameters - **budget_id** (string) - Required - The budget id to get information for ``` -------------------------------- ### GET /team/daily/activity Source: https://docs.koboillm.com/integrasi/management-reference Gets daily activity for specific teams or all teams. Requires Team Admin authorization. ```APIDOC ## [GET] /team/daily/activity ### Description Get daily activity for specific teams or all teams. ### Method GET ### Endpoint /team/daily/activity ### Authorization Team Admin Allowed ### Parameters #### Query Parameters - **team_ids** (string) - Optional - Comma-separated list of team IDs to filter by. If not provided, returns data for all teams. - **start_date** (string) - Optional - Start date for the activity period (YYYY-MM-DD). - **end_date** (string) - Optional - End date for the activity period (YYYY-MM-DD). - **model** (string) - Optional - Filter by model name. - **api_key** (string) - Optional - Filter by API key. - **page** (integer) - Optional - Page number for pagination. - **page_size** (integer) - Optional - Number of items per page. - **exclude_team_ids** (string) - Optional - Comma-separated list of team IDs to exclude. ### Request Example No request example provided in the source. ### Response #### Success Response - SpendAnalyticsPaginatedResponse: Paginated response containing daily activity data. No response example provided in the source. ``` -------------------------------- ### GET /organization/daily/activity Source: https://docs.koboillm.com/integrasi/management-reference Gets daily activity for specific organizations or all accessible organizations. Requires Global Admin Only authorization. ```APIDOC ## [GET] /organization/daily/activity ### Description Get daily activity for specific organizations or all accessible organizations. Wewenang: Global Admin Only. ### Method GET ### Endpoint /organization/daily/activity ### Parameters #### Query Parameters - **organization_ids** (string) - Optional - Tidak ada deskripsi. - **start_date** (string) - Optional - Tidak ada deskripsi. - **end_date** (string) - Optional - Tidak ada deskripsi. - **model** (string) - Optional - Tidak ada deskripsi. - **api_key** (string) - Optional - Tidak ada deskripsi. - **page** (integer) - Optional - Tidak ada deskripsi. - **page_size** (integer) - Optional - Tidak ada deskripsi. - **exclude_organization_ids** (string) - Optional - Tidak ada deskripsi. ``` -------------------------------- ### Update Sistem Source: https://docs.koboillm.com/integrasi/openclaw Perintah untuk memperbarui sistem operasi sebelum instalasi OpenClaw. ```bash sudo apt update && sudo apt upgrade -y ``` -------------------------------- ### Menjalankan OpenCode dengan API Key (Windows CMD) Source: https://docs.koboillm.com/integrasi/opencode Menjalankan OpenCode dengan API Key KoboiLLM pada Windows CMD. Set environment variable KOBOILLM_API_KEY terlebih dahulu, lalu jalankan opencode. ```cmd set KOBOILLM_API_KEY="sk-koboillm-anda" opencode ``` -------------------------------- ### GET /config/pass_through_endpoint/team/{team_id} Source: https://docs.koboillm.com/integrasi/management-reference Gets configured pass-through endpoints for a team. If no endpoint_id is given, returns all configured endpoints. Requires Global Admin Only authorization. ```APIDOC ## [GET] /config/pass_through_endpoint/team/{team_id} ### Description GET configured pass through endpoint. If no endpoint_id given, return all configured endpoints. Wewenang: Global Admin Only. ### Method GET ### Endpoint /config/pass_through_endpoint/team/{team_id} ### Parameters #### Path Parameters - **team_id** (string) - Required - Tidak ada deskripsi. #### Query Parameters - **endpoint_id** (string) - Optional - Tidak ada deskripsi. ``` -------------------------------- ### POST /models/{model_name}:countTokens Example Response Source: https://docs.koboillm.com/integrasi/management-reference Example JSON response for the token counting endpoint, detailing total tokens and billable characters. ```json return { "totalTokens": 31, "totalBillableCharacters": 96, "promptTokensDetails": [ { "modality": "TEXT", "tokenCount": 31 } ] } ``` -------------------------------- ### Run Hermes model management CLI Source: https://docs.koboillm.com/integrasi/hermes-agent Starts the interactive model management wizard in Hermes Agent. From the menu, choose Custom Endpoint and follow the onboarding wizard to enter the KoboiLLM base URL, API key, model name, context length, and vision support. ```bash hermes model ``` -------------------------------- ### SSH Tunnel Example with Real Credentials Source: https://docs.koboillm.com/integrasi/openclaw Example SSH tunnel command using the username mafaza and IP 192.168.188.212. Use this as a template for your own server details. ```bash ssh -L 18789:127.0.0.1:18789 mafaza@192.168.188.212 ``` -------------------------------- ### Call KoboILLM API with OpenAI SDK (Python and JavaScript) Source: https://docs.koboillm.com/api-reference Use the official OpenAI SDK to call the KoboILLM API, which is compatible with the OpenAI format. Set the base URL to https://lite.koboillm.com/v1 and replace YOUR_API_KEY with your actual key. The model openai/gpt-4o-mini is used in the chat completion request. ```python from openai import OpenAI client = OpenAI( base_url="https://lite.koboillm.com/v1", api_key="YOUR_API_KEY" ) response = client.chat.completions.create( model="openai/gpt-4o-mini", messages=[{"role": "user", "content": "Hello!"}] ) ``` ```javascript import OpenAI from 'openai'; const client = new OpenAI({ baseURL: 'https://lite.koboillm.com/v1', apiKey: 'YOUR_API_KEY' }); const response = await client.chat.completions.create({ model: 'openai/gpt-4o-mini', messages: [{ role: 'user', content: 'Hello!' }] }); ``` -------------------------------- ### GET /health/readiness Source: https://docs.koboillm.com/api-reference Readiness probe. ```APIDOC ## GET /health/readiness ### Description Readiness probe. ### Method GET ### Endpoint /health/readiness ``` -------------------------------- ### POST /v1/completions Source: https://docs.koboillm.com/api-reference Endpoint legacy untuk text completion. Menerima model dan prompt, dengan parameter opsional untuk mengontrol panjang, suhu, dan streaming. ```APIDOC ## POST /v1/completions ### Description Endpoint legacy untuk text completion. ### Method POST ### Endpoint /v1/completions ### Parameters #### Request Body - **model** (string) - Required - Model ID - **prompt** (string/array) - Required - Prompt text - **max_tokens** (integer) - Optional - Maksimum token - **temperature** (number) - Optional - Sampling temperature - **stream** (boolean) - Optional - Enable streaming ``` -------------------------------- ### POST /team/model/add Source: https://docs.koboillm.com/integrasi/management Menambahkan model yang diizinkan untuk diakses oleh tim. Secara default, tim dapat mengakses semua model, tetapi dengan endpoint ini Anda dapat membatasi akses hanya ke model tertentu (whitelist). ```APIDOC ## POST /team/model/add ### Description Menambahkan model yang diizinkan untuk diakses oleh tim. Secara default, tim dapat mengakses semua model, tetapi dengan endpoint ini Anda dapat membatasi akses hanya ke model tertentu (whitelist). ### Method POST ### Endpoint /team/model/add ### Parameters #### Request Body - **team_id** (string) - Required - ID tim yang akan diatur. - **models** (array of string) - Required - Daftar model yang diizinkan untuk diakses. ### Request Example { "team_id": "your-team-id", "models": ["openai/gpt-5.6-luna", "openai/gpt-5.6-terra"] } ### Response #### Success Response (200) - **status** (string) - Status operasi (misalnya "success"). #### Response Example { "status": "success" } ``` -------------------------------- ### GET /health/liveliness Source: https://docs.koboillm.com/api-reference Liveliness probe. ```APIDOC ## GET /health/liveliness ### Description Liveliness probe. ### Method GET ### Endpoint /health/liveliness ``` -------------------------------- ### GET /health Source: https://docs.koboillm.com/api-reference Health check endpoint. ```APIDOC ## GET /health ### Description Health check endpoint. ### Method GET ### Endpoint /health ``` -------------------------------- ### GET /budget/list Source: https://docs.koboillm.com/integrasi/management-reference Mendaftar semua budget yang telah dibuat di proxy database. Endpoint ini digunakan pada Admin UI dan hanya dapat diakses oleh Global Admin. ```APIDOC ## [GET] /budget/list ### Description Mendaftar all the created budgets in proxy db. Used on Admin UI. ### Method GET ### Endpoint /budget/list ### Authorization Global Admin Only ``` -------------------------------- ### GET /team/list Source: https://docs.koboillm.com/api-reference Mendapatkan daftar teams. ```APIDOC ## GET /team/list ### Description Mendapatkan daftar teams. ### Method GET ### Endpoint /team/list ``` -------------------------------- ### Base URL KoboiLLM Source: https://docs.koboillm.com/integrasi/opencode Base URL standar KoboiLLM yang kompatibel dengan format OpenAI. Gunakan nilai ini sebagai baseURL pada konfigurasi OpenCode. ```text https://api.koboillm.com/v1 ``` -------------------------------- ### GET /user/info Source: https://docs.koboillm.com/api-reference Mendapatkan informasi user. ```APIDOC ## GET /user/info ### Description Mendapatkan informasi user. ### Method GET ### Endpoint /user/info ``` -------------------------------- ### Python (LiteLLM SDK): Generate image with Imagen model Source: https://docs.koboillm.com/images Uses the LiteLLM SDK with the vertex_ai/imagen-4.0-fast-generate-001 model on the same endpoint. Imagen pricing is flat per image (not per-token), and it does not return token usage. SpendLogs in the dashboard can be used for verification. ```python from litellm import image_generation response = image_generation( model = "vertex_ai/imagen-4.0-fast-generate-001", # $0.02/gambar prompt = "Pemandangan gunung Indonesia dengan kabut pagi", n = 1, api_base = "https://lite.koboillm.com/v1", api_key = os.environ["LITELLM_API_KEY"], ) # Imagen tidak return token usage — biaya selalu tetap per gambar # Cek SpendLogs di dashboard untuk verifikasi ``` -------------------------------- ### GET /spend/tags Source: https://docs.koboillm.com/api-reference Mendapatkan spending per tag. ```APIDOC ## GET /spend/tags ### Description Mendapatkan spending per tag. ### Method GET ### Endpoint /spend/tags ``` -------------------------------- ### GET /spend/users Source: https://docs.koboillm.com/api-reference Mendapatkan spending per user. ```APIDOC ## GET /spend/users ### Description Mendapatkan spending per user. ### Method GET ### Endpoint /spend/users ``` -------------------------------- ### Bulk Update All Users Source: https://docs.koboillm.com/integrasi/management-reference Example request to apply a uniform update to all users in the system by setting all_users to true. ```bash curl --location 'https://api.koboillm.com/user/bulk_update' --header 'Authorization: Bearer sk-xxxxxx' --header 'Content-Type: application/json' --data '{ "all_users": true, "user_updates": { "user_role": "internal_user", "max_budget": 50.0 } }' ``` -------------------------------- ### GET /spend/keys Source: https://docs.koboillm.com/api-reference Mendapatkan spending per API key. ```APIDOC ## GET /spend/keys ### Description Mendapatkan spending per API key. ### Method GET ### Endpoint /spend/keys ``` -------------------------------- ### GET /v1/assistants Source: https://docs.koboillm.com/api-reference Mendapatkan daftar assistants yang tersedia. ```APIDOC ## GET /v1/assistants ### Description Mendapatkan daftar assistants. ### Method GET ### Endpoint /v1/assistants ``` -------------------------------- ### Perintah /model untuk berpindah model saat sesi Source: https://docs.koboillm.com/integrasi/claude-code Ketik /model di dalam prompt Claude Code untuk membuka picker model. Jika model discovery diaktifkan, picker akan menampilkan semua model aktif dari server KobaoLLM dengan label 'From gateway'. ```bash /model ``` -------------------------------- ### GET /user/info Source: https://docs.koboillm.com/integrasi/management-reference Retrieves detailed profile information for a specific user. ```APIDOC ## [GET] /user/info ### Description Retrieves detailed profile information for a specific user. ### Method GET ### Endpoint /user/info ### Parameters #### Query Parameters - **user_id** (string) - Optional - User ID in the request parameters ### Response #### Success Response (200) (Not provided in source) #### Response Example (Not provided in source) ``` -------------------------------- ### GET /team/list Source: https://docs.koboillm.com/integrasi/management-reference Lists all teams. Optionally filter by user_id or organization_id. ```bash curl --location --request GET 'https://api.koboillm.com/team/list' --header 'Authorization: Bearer sk-xxxxxx' ``` -------------------------------- ### Create new organization with budget_id Source: https://docs.koboillm.com/integrasi/management-reference Use this request to create a new organization by providing an alias, list of models, and an existing budget identifier. ```bash curl --location 'https://api.koboillm.com/organization/new' --header 'Authorization: Bearer sk-xxxxxx' --header 'Content-Type: application/json' --data '{ "organization_alias": "my-secret-org", "models": ["model1", "model2"], "budget_id": "428eeaa8-f3ac-4e85-a8fb-7dc8d7aa8689" }' ```