SDK reference / Models / Ai

InferenceEndpoint

Kind: class

Namespace: Egulu.Sdk.Models.Ai

Managed online or batch AI inference endpoint backed by llama.cpp or vLLM (ADR-1004, ADR-1007, ADR-1008, ADR-1010).Enforces per-project KV-cache salt (cache_salt), pre-billing safety hooks, and integer micro-euro burst spend caps.

Properties

NameTypeJSON nameDescription
AcceleratorClassstring?acceleratorClassAccelerator class (`cpu` | `nvidia-rtx-5060-laptop-8gb`).
AcceleratorCountint?acceleratorCountNumber of accelerators attached per replica (`0` for CPU, `>= 1` for GPU).
ActiveReplicasint?activeReplicasCurrently warm replica count (`0` when `SCALED_TO_ZERO` or `PAUSED`).
AnnotationsModels.Ai.InferenceEndpoint_annotations?annotationsAt most 256 KiB in all; never policy input.
BlockCredentialsbool?blockCredentialsInput guardrail: refuse prompts that carry credentials (private keys, bearer tokens, cloud access keys) before any charge. Default `false`.
BlockPersonalDatabool?blockPersonalDataInput guardrail: refuse prompts that carry personal data (e-mail addresses, card numbers, national ID numbers) before any charge. Default `false`.
BlockedTermsList<string>?blockedTermsInput guardrail: refuse prompts that contain one of these terms, matched case-insensitively (`<= 32` terms of `<= 64` characters).
BurstCapMicroslong?burstCapMicrosPer-project burst spend cap in integer micro-euros (default `100000` = EUR 0.10; ADR-1004, ADR-1008).
CacheScopestring?cacheScopeKV-cache isolation scope: `project` (default, HMAC-salted) | `none` (global sharing refused).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DeploymentTypestring?deploymentTypeDeployment mode: `serverless` (scale-to-zero) | `dedicated` | `batch` (default `serverless`).
DisplayNamestring?displayNameUp to 63 characters.
EndpointUristring?endpointUriProvisioned cell-local HTTPS invoke URI.
Enginestring?engineServing engine: `llama-cpp` | `vllm` | `fake` (default `llama-cpp`).
Etagstring?etag"{generation}"; send it back in If-Match.
EvidenceLevelstring?evidenceLevelConfidential-AI evidence level (`C0` in P0–P3; ADR-1006).
FilterOutputbool?filterOutputOutput guardrail: an answer that carries personal data, credentials or a blocked term is replaced by a notice and the call finishes with `content_filter`; the tokens generated are still charged. Default `false`.
IdleToZeroSecondsint?idleToZeroSecondsIdle window in seconds before scaling `minReplicas == 0` endpoints to zero (`10..86400`, default `300`).
InputPricePer1kMicroslong?inputPricePer1kMicrosInput token rate in integer micro-euros per 1,000 tokens (defaults to pricebook `tokens-in`).
LabelsModels.Ai.InferenceEndpoint_labels?labelsAt most 64.
MaxReplicasint?maxReplicasMaximum replicas (`>= minReplicas`, `1..16`).
MinReplicasint?minReplicasMinimum warm replicas (`0` enables scale-to-zero on idle).
Modalitystring?modalityModality (`text` | `embeddings` | `rerank`; generative media refused with `modality-not-available`).
Modelstring?modelModel resource name (`projects/{p}/locations/{l}/models/{m}`, `{m}`) or immutable `name@sha256:<64 hex>` reference.
ModelDigeststring?modelDigestResolved immutable `sha256:<64 hex>` model digest served by this endpoint.
ModelMaxTokensint?modelMaxTokensMaximum completion tokens allowed per `:invoke` call (default `1024`).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
OutputPricePer1kMicroslong?outputPricePer1kMicrosOutput token rate in integer micro-euros per 1,000 tokens (defaults to pricebook `tokens-out`).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RequestsPerMinuteLimitint?requestsPerMinuteLimitRate limit: the most `:invoke` calls the endpoint takes in any 60 seconds (`0` = no limit of its own, the default; `1..100000`). A call over it is refused with `429 rate-limited` before any charge.
SafetyModestring?safetyModeSafety filter policy: `block` (default) | `flag` | `off` (`off` refused on shared `serverless` endpoints per ADR-1007).
Simulatedbool?simulatedTrue when backed by simulated lab hardware/engine.
StateModels.Ai.InferenceEndpointState?stateManaged inference endpoint lifecycle states (ADR-1004, ADR-1010).
SuspendReasonstring?suspendReasonReason the endpoint is paused (`spend-cap` or `user`), if paused.
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property