本页内容
模型信息
基础路径:/v1
GET /v1/models
检索可用的文本生成模型。无参数。
1curl -X GET https://api.arliai.com/v1/models \
2-H "Authorization: Bearer your_api_key"GET /embedding-models
检索您的账户可用的嵌入模型,包括上下文限制、使用次数和性能元数据。无参数。
1curl -X GET https://api.arliai.com/v1/embedding-models \
2-H "Authorization: Bearer your_api_key"响应示例
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
检索并行请求限制。无参数。
1curl -X GET https://api.arliai.com/v1/parallel-requests \
2-H "Authorization: Bearer your_api_key"模型状态与性能
注意:这些端点是公开的,不需要 API 密钥。它们用于实时状态/监控,任何客户端都可以轮询。请谨慎使用 — 避免高频轰炸。
GET /model/all
返回可用文本生成模型的完整列表,每个模型都标注了实时 status(可用性)布尔值以及缓存的性能和用量统计。发送请求前,可使用 status 字段检查模型当前是否在线。
1curl -X GET https://api.arliai.com/model/all响应示例
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]| 参数 | 类型 | 必需 | 描述 |
|---|---|---|---|
| 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
以基础模型名称为键,返回每个基础模型组当前的实时服务器繁忙度百分比。繁忙度是基于请求和 Token 的负载相对于配置容量的较高值。0 表示该模型当前没有正在处理的流量。轮询此端点可选择最不繁忙的模型或显示实时负载。
1curl -X GET https://api.arliai.com/model/busyness/live响应示例
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}