The user facing API is implemented using Golang and the Gin HTTP framework. Its purpose is to provide interface for basic inference use-cases and model management. The full API docs are available from the live service's Swagger UI at the /swagger endpoint.
Authorization
The authorization to the API is handled by the Authorization HTTP header with a Bearer token.
Authorization: Bearer <token>
Endpoints
The service groups endpoints by use-cases. All use-case groups are associated to a compute project with a prefix path /p/:project, where project is typically the accounting string associated with the HPC compute project.
OpenAI compatible API
The main user facing API for inference requests, prefixed by openai. Currently implemented endpoints are:
openai/v1/chat/completionsopenai/v1/completionsopenai/v1/modelsopenai/v1/embeddingsopenai/v1/systemone
When using the OpenAI API with external tools, always set the path as /p/:project/openai/v1
Visit the official OpenAI platform documentation for more information.
Model Management
All model management endpoints are scoped under /p/:project/models where :project is the HPC project accounting string (e.g. eu-00-00).
GET /p/:project/models
Returns all models registered for the project. Each model includes its configuration, a computed state (derived from active inference jobs: not_loaded, loading, queued, ready, busy), and a jobs array with live metrics (GPU utilization, waiting and running requests) for any running inference job.
PUT /p/:project/models — Register a model
Registers a new model in the service's local database. The model is registered in the idle state — no inference job is created until explicitly woken up.
Request body:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
hf_model_id |
string | yes | — | Hugging Face model ID (e.g. Qwen/Qwen3-8B-Instruct). Also used as the model identifier in OpenAI requests. For models prepared by in the HPC project storage through other means (such as staging or finetuning workflow), this must match their ID as well. |
gpu_count |
integer | yes | — | Number of GPUs requested for the inference job. Must be ≥ 1. |
engine |
string | no | "vllm" |
Inference engine to use ("vllm", "sglang", "vllm-omni") |
walltime |
integer | no | 3600 |
Maximum job walltime in seconds (1 hour). The job is killed by the scheduler after this time elapses. |
walltime_ratio |
float | no | 0.9 |
Fraction of walltime before a replacement job is started. At 0.9 with walltime=3600, a new job is submitted after 3240s (54 min). |
idle_timeout |
integer | no | 600 |
Seconds of inactivity after the last wakeup before the model is automatically set idle (10 min). |
autoscale |
bool | no | false |
Enable auto-scaling strategy for busy inference jobs |
is_refreshing |
bool | no | true |
Allow toggle of job replacement strategy. Reserved for future use. |
max_model_length |
string | no | "none" |
Max model context length in tokens. "none" = engine default. Passed through as $4. |
tool_parser |
string | no | "none" |
Tool parser for function calling. "none" = disabled. Passed through as $5. |
reasoning_parser |
string | no | "none" |
Reasoning parser. "none" = disabled. Passed through as $6. |
gpu_memory_util |
string | no | "0.9" |
GPU memory utilization (e.g. "0.9"). Passed through as $7. |
kv_cache_dtype |
string | no | "auto" |
KV cache data type. Passed through as $8. |
enforce_eager |
string | no | "false" |
Force eager-mode decoding. Passed through as $9. |
quantization |
string | no | "none" |
Quantization method (e.g. "awq", "gptq"). "none" = disabled. Passed through as $10. |
chat_template |
string | no | "none" |
Chat template name or path. "none" = model default. Passed through as $11. |
max_num_seqs |
string | no | "256" |
Max concurrent sequences. Passed through as $12. |
seed |
string | no | "none" |
Random seed. "none" = engine default. Passed through as $13. |
enable_prefix_caching |
string | no | "false" |
Enable prefix caching. Passed through as $14. |
tokenizer |
string | no | "auto" |
Tokenizer name or path. Passed through as $15. |
tokenizer_mode |
string | no | "auto" |
Tokenizer mode. Passed through as $16. |
trust_remote_code |
string | no | "false" |
Trust remote code when loading model. Passed through as $17. |
dtype |
string | no | "auto" |
Model data type (e.g. "half", "float16"). Passed through as $18. |
speculative_config |
string | no | "none" |
Speculative decoding config. "none" = disabled. Passed through as $19. |
All inference-engine options (max_model_length through speculative_config) are delivered to the cluster start script as HEAppE template parameters $4–$19, after the shared HTTPPort ($1), FullModelID ($2) and ImagePath ($3).
POST /p/:project/models — Load a model
Initiates model loading by waking the model from idle.
This sets the model's Idle flag to false and records LastWakeup as the current time. The wake event immediately starts an inference job if none exists and no fresh job covers the model's desired scale. If a job is already running, no new job is created (as long as the count of "fresh" jobs meets the desired scale).
Returns 200 OK on success, 404 Not Found if the model is not registered.
DELETE /p/:project/models — Unregister a model
Removes the model from the service's database and in-memory cache.
This does not stop any running HEAppE inference jobs — they continue until they finish naturally. Only the service's tracking of the model is removed.
Returns 204 No Content on success or 404 Not Found if the model is not registered.
Project Management
GET /plists all projects the authenticated user has access to.GET /p/:projectreturns details for a specific project.POST /pactivates a project for inference by resolving it to a cluster and node type (pass 0 for both IDs to deactivate). Command templates themselves are managed externally; the service only reads them.
General
healthreturns OK when the service is online, and provides API version info.swagger/index.htmlserves the Swagger UI documentation.