Di halaman ini
Informasi Model
Jalur dasar: /v1
GET /v1/models
Mengambil model generasi teks yang tersedia. Tidak ada parameter.
1curl -X GET https://api.arliai.com/v1/models \
2-H "Authorization: Bearer your_api_key"GET /embedding-models
Mengambil model embedding yang tersedia untuk akun Anda, termasuk batas konteks, jumlah penggunaan, dan metadata performa. Tidak ada parameter.
1curl -X GET https://api.arliai.com/v1/embedding-models \
2-H "Authorization: Bearer your_api_key"Contoh Respons
1{
2 "object": "list",
3 "data": [
4 {
5 "id": "EMBEDDING_MODEL_NAME",
6 "root": "EMBEDDING_MODEL_NAME",
7 "object": "model",
8 "owned_by": "arliai",
9 "type": "embedding",
10 "embedding": true,
11 "max_context": 32768,
12 "context_length": 32768,
13 "context_window": 32768,
14 "max_input_tokens": 32768,
15 "engine": "vllm",
16 "model_type": "embedding",
17 "parameters": "8B",
18 "requests_per_day": 0,
19 "requests_per_week": 0,
20 "request_tokens_per_day": 0,
21 "request_tokens_per_week": 0,
22 "avg_response_time": null,
23 "avg_preprocessing_tokens_per_second": null
24 }
25 ]
26}GET /parallel-requests
Mengambil batas permintaan paralel. Tidak ada parameter.
1curl -X GET https://api.arliai.com/v1/parallel-requests \
2-H "Authorization: Bearer your_api_key"Status & Performa Model
Catatan: Titik akhir ini bersifat publik dan tidak memerlukan kunci API. Ditujukan untuk status/monitoring langsung dan dapat dipoll oleh klien mana pun. Gunakan secukupnya — hindari pemanggilan frekuensi tinggi.
GET /model/all
Mengembalikan daftar lengkap model generasi teks yang tersedia, masing-masing diberi anotasi boolean status (ketersediaan) langsung serta statistik performa dan penggunaan yang di-cache. Gunakan field status untuk memeriksa apakah model sedang online sebelum mengirim permintaan.
1curl -X GET https://api.arliai.com/model/allContoh Respons
1[
2 {
3 "name": "Gemma-4-31B-Lilith-v1.0",
4 "reasoning": true,
5 "vlm": true,
6 "systemPrompt": "You are an intelligent assistant.",
7 "promptFormat": "Gemma4",
8 "quant": "r64",
9 "engine": "vllm",
10 "parameters": "31B",
11 "creationMethod": "LoRA Finetune",
12 "contextSize": "262144",
13 "modelLink": "https://huggingface.co/darthcrawl/Lilith-31B-v1.0",
14 "modelRecommendation": "Creative model",
15 "modelClass": "Gemma-4-31B - LoRA",
16 "modelGroup": "Gemma-4-31B",
17 "baseModel": false,
18 "modelType": "Gemma31B",
19 "requestsPerDay": "220",
20 "requestsPerWeek": "859",
21 "requestTokensPerDay": "724792",
22 "responseTokensPerDay": "6482",
23 "requestTokensPerWeek": "4929074",
24 "responseTokensPerWeek": "113803",
25 "hourlyTokenUsage": { "2026-07-31T16": 209353, "2026-07-31T17": 32663 },
26 "addedAt": "2026-07-25T22:31:08.838Z",
27 "avgResponseTime": 8218,
28 "avgTimeToFirstToken": 4743,
29 "avgPreprocessingTokensPerSecond": 1193.64,
30 "avgGenerationTokensPerSecond": 20.9,
31 "status": true
32 }
33 // ... one object per model
34]| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
| Identity | |||
| name | string | always | The model identifier to pass as the "model" field in generation requests. |
| status | boolean | always | Live availability. true if at least one healthy server currently serves this model type; false otherwise. Check this before sending requests to avoid errors. |
| reasoning | boolean | always | Whether the model supports reasoning/thinking tokens. |
| vlm | boolean | always | Whether the model accepts image inputs (Vision Language Model). |
| contextSize | string | always | Maximum context window in tokens. |
| parameters | string | always | Parameter count (e.g. "31B"). |
| quant | string | always | Quantization format (e.g. "r64", "INT8", "FP8"). |
| engine | string | always | Inference engine (e.g. "vllm"). |
| promptFormat | string | always | Chat template / prompt format name used by the model. |
| creationMethod | string | always | How the model was created (e.g. "FFT", "LoRA Finetune"). |
| modelType | string | always | Internal routing type shared by server pools (e.g. "Gemma31B"). Multiple models sharing a type share one server pool and health status. |
| modelGroup | string | always | Group identifier shared by a base model and its variants (e.g. "Gemma-4-31B"). Used as the busyness/performance key. |
| baseModel | boolean | always | True when this row is the base model of its group; false for LoRA/fine-tune variants. |
| modelClass | string | always | Per-model display class (e.g. "Gemma-4-31B - LoRA"). |
| modelRecommendation | string | always | Short human-readable description / category. |
| systemPrompt | string | always | Default system prompt applied when none is provided. |
| modelLink | string | always | Source HuggingFace link. |
| addedAt | string (ISO date) | always | When the model was added to the platform. |
| Performance (24h Typical, per model group) | |||
| avgResponseTime | number | null | optional | Typical total response time in ms over the last 24h (base-model aggregate). null if insufficient recent data. |
| avgTimeToFirstToken | number | null | optional | Typical time-to-first-token in ms — measured until the first generated token of any kind (content or reasoning) is received. |
| avgPreprocessingTokensPerSecond | number | null | optional | Typical prefill/prompt-processing speed = requestLength / TTFT (tokens/s). |
| avgGenerationTokensPerSecond | number | null | optional | Typical generation speed = responseLength / generationTime (tokens/s). |
| Usage (cached) | |||
| requestsPerDay | string | always | Request count in the last 24h. |
| requestsPerWeek | string | always | Request count in the last 7 days. |
| requestTokensPerDay | string | always | Prompt tokens processed in the last 24h. |
| responseTokensPerDay | string | always | Generated tokens in the last 24h. |
| requestTokensPerWeek | string | always | Prompt tokens processed in the last 7 days. |
| responseTokensPerWeek | string | always | Generated tokens in the last 7 days. |
| hourlyTokenUsage | object | always | Map of ISO hour key (e.g. "2026-07-31T16") to total tokens processed that hour. Covers a rolling 48h window, zero-filled for hours with no usage. |
GET /model/busyness/live
Mengembalikan persentase busyness server langsung saat ini untuk setiap grup model dasar, dengan key nama model dasar. Busyness adalah nilai yang lebih tinggi antara beban berbasis permintaan dan token terhadap kapasitas yang dikonfigurasi. Nilai 0 berarti model saat ini tidak memiliki traffic in-flight. Poll ini untuk memilih model paling tidak sibuk atau menampilkan beban real-time.
1curl -X GET https://api.arliai.com/model/busyness/liveContoh Respons
1{
2 "GLM-4.6-Derestricted": 12.5,
3 "Gemma-4-31B": 37.5,
4 "DeepSeek-V4.1-Flash-1017": 25,
5 "GLM-4.7": 6.25,
6 "Qwen3.5-27B-Derestricted": 6.25
7}