0, ends the service as failed — and replace a failed or outdated service by creating a new one.
Before you start
You need:
Services move through
requested → allocating → provisioning → ready, and stay there until something ends the run:
- A failure in any phase, including the workload exiting after
ready, tears down throughterminatingintofailed. - Explicit termination, a binding limit, or an exhausted organization budget ends in
terminatedinstead.
ready means the probe passed.
Without one, it only means the workload launched; it makes no application-level health claim, so declare a probe whenever the image offers a health route.
Step 1 - Store the endpoint key as a secret
Pass the workload API key throughsecret_env, not inline in the command, so it never appears in provider pod specs.
sec_... id for the create body, and the key value itself for your clients.
Step 2 - Create the service
Create the service with a requiredIdempotency-Key header, exactly as for jobs.
This example serves Qwen2.5-0.5B-Instruct with vLLM’s OpenAI-compatible server, matching the platform smoke test:
As with jobs,
201 means the request was accepted; capacity and provisioning problems surface afterwards through state, reason, logs, and events.
Step 3 - Wait for ready
provisioning before the readiness probe passes.
A ready service carries its public endpoints:
failed instead, read reason, then GET .../logs?source=user for the server’s own output and source=system for allocation and bootstrap problems — the same logs and events surface as jobs.
Step 4 - Call your endpoint
The endpoint is plain vLLM: an OpenAI-compatible API authenticated with the key you stored in Step 1.curl
Step 5 - Register with the LLM gateway
Optionally register the endpoint as a bring-your-own model in the MKA1 LLM gateway, so it is callable through the platform’s/responses API with normal platform keys.
Add the endpoint to your model catalog:
curl
curl
completions-format models are accepted at /responses; the gateway drives the chat-completions upstream for you.
This is why the create body in Step 2 passed the tool-choice flags to vLLM.
Step 6 - Terminate
A service runs, and bills, until you stop it.Serve a model from mka1-repos
To serve weights from mka1-repos — such as the merged output of a fine-tune job — change only the model identifier and the credentials. Compute always injectsHF_ENDPOINT into every workload, pointing at the artifact endpoint configured for your cluster, and vLLM resolves model identifiers against it.
mka1-repos authenticates with your MKA1 API key, injected as HF_TOKEN through secret_env:
Track spend
Service spend accrues per whole minute from allocation and appears alongside jobs in the usage endpoint:limits is terminated with no grace period.
API reference
For the full request and response schemas, open the Compute groups in the API Reference.See also
- Run a fine-tune job - produce the weights this service serves.
- Generate a response - call your registered model through the platform
/responsesAPI.