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/all

Contoh 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]
ParameterTipeWajibDeskripsi
Identity
namestringalwaysThe model identifier to pass as the "model" field in generation requests.
statusbooleanalwaysLive availability. true if at least one healthy server currently serves this model type; false otherwise. Check this before sending requests to avoid errors.
reasoningbooleanalwaysWhether the model supports reasoning/thinking tokens.
vlmbooleanalwaysWhether the model accepts image inputs (Vision Language Model).
contextSizestringalwaysMaximum context window in tokens.
parametersstringalwaysParameter count (e.g. "31B").
quantstringalwaysQuantization format (e.g. "r64", "INT8", "FP8").
enginestringalwaysInference engine (e.g. "vllm").
promptFormatstringalwaysChat template / prompt format name used by the model.
creationMethodstringalwaysHow the model was created (e.g. "FFT", "LoRA Finetune").
modelTypestringalwaysInternal routing type shared by server pools (e.g. "Gemma31B"). Multiple models sharing a type share one server pool and health status.
modelGroupstringalwaysGroup identifier shared by a base model and its variants (e.g. "Gemma-4-31B"). Used as the busyness/performance key.
baseModelbooleanalwaysTrue when this row is the base model of its group; false for LoRA/fine-tune variants.
modelClassstringalwaysPer-model display class (e.g. "Gemma-4-31B - LoRA").
modelRecommendationstringalwaysShort human-readable description / category.
systemPromptstringalwaysDefault system prompt applied when none is provided.
modelLinkstringalwaysSource HuggingFace link.
addedAtstring (ISO date)alwaysWhen the model was added to the platform.
Performance (24h Typical, per model group)
avgResponseTimenumber | nulloptionalTypical total response time in ms over the last 24h (base-model aggregate). null if insufficient recent data.
avgTimeToFirstTokennumber | nulloptionalTypical time-to-first-token in ms — measured until the first generated token of any kind (content or reasoning) is received.
avgPreprocessingTokensPerSecondnumber | nulloptionalTypical prefill/prompt-processing speed = requestLength / TTFT (tokens/s).
avgGenerationTokensPerSecondnumber | nulloptionalTypical generation speed = responseLength / generationTime (tokens/s).
Usage (cached)
requestsPerDaystringalwaysRequest count in the last 24h.
requestsPerWeekstringalwaysRequest count in the last 7 days.
requestTokensPerDaystringalwaysPrompt tokens processed in the last 24h.
responseTokensPerDaystringalwaysGenerated tokens in the last 24h.
requestTokensPerWeekstringalwaysPrompt tokens processed in the last 7 days.
responseTokensPerWeekstringalwaysGenerated tokens in the last 7 days.
hourlyTokenUsageobjectalwaysMap 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/live

Contoh 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}