> For the complete documentation index, see [llms.txt](https://docs.cedana.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cedana.ai/references/api/inference.md).

# Inference

Cedana inference control plane

## GET /v1/inference/alerts/webhooks

> List alert webhooks

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"AlertWebhook":{"description":"A webhook as listed; the URL is masked since Slack webhook URLs are credentials.","properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"url":{"type":"string"}},"required":["id","url","enabled","created_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/alerts/webhooks":{"get":{"operationId":"list_webhooks","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AlertWebhook"},"type":"array"}}},"description":"Alert webhooks"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"List alert webhooks","tags":["inference"]}}}}
```

## POST /v1/inference/alerts/webhooks

> Add an alert webhook; SLO breaches POST \`{"text": ...}\` to it

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"CreateWebhook":{"properties":{"enabled":{"type":"boolean"},"url":{"type":"string"}},"required":["url"],"type":"object"},"AlertWebhook":{"description":"A webhook as listed; the URL is masked since Slack webhook URLs are credentials.","properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"url":{"type":"string"}},"required":["id","url","enabled","created_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/alerts/webhooks":{"post":{"operationId":"create_webhook","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWebhook"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertWebhook"}}},"description":"Created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Add an alert webhook; SLO breaches POST `{\"text\": ...}` to it","tags":["inference"]}}}}
```

## PUT /v1/inference/alerts/webhooks/{id}

> Enable or disable an alert webhook

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"UpdateWebhook":{"properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"type":"object"},"AlertWebhook":{"description":"A webhook as listed; the URL is masked since Slack webhook URLs are credentials.","properties":{"created_at":{"format":"date-time","type":"string"},"enabled":{"type":"boolean"},"id":{"format":"uuid","type":"string"},"url":{"type":"string"}},"required":["id","url","enabled","created_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/alerts/webhooks/{id}":{"put":{"operationId":"update_webhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWebhook"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AlertWebhook"}}},"description":"Updated"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Enable or disable an alert webhook","tags":["inference"]}}}}
```

## DELETE /v1/inference/alerts/webhooks/{id}

> Remove an alert webhook

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/alerts/webhooks/{id}":{"delete":{"operationId":"delete_webhook","parameters":[{"in":"path","name":"id","required":true,"schema":{"format":"uuid","type":"string"}}],"responses":{"204":{"description":"Deleted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Remove an alert webhook","tags":["inference"]}}}}
```

## GET /v1/inference/costs/config

> List cost rates

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"CostConfig":{"properties":{"node_hourly_usd":{"format":"double","type":"number"},"profile_id":{"type":"string"},"storage_gb_hour_usd":{"format":"double","type":"number"},"transfer_gb_usd":{"format":"double","type":"number"}},"required":["profile_id","node_hourly_usd","storage_gb_hour_usd","transfer_gb_usd"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/costs/config":{"get":{"operationId":"list_cost_config","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/CostConfig"},"type":"array"}}},"description":"Cost rates"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"List cost rates","tags":["inference"]}}}}
```

## POST /v1/inference/costs/config

> Set cost rates for a profile

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"CostConfigUpsert":{"properties":{"node_hourly_usd":{"format":"double","type":"number"},"profile_id":{"type":"string"},"storage_gb_hour_usd":{"format":"double","type":"number"},"transfer_gb_usd":{"format":"double","type":"number"}},"required":["profile_id"],"type":"object"},"CostConfig":{"properties":{"node_hourly_usd":{"format":"double","type":"number"},"profile_id":{"type":"string"},"storage_gb_hour_usd":{"format":"double","type":"number"},"transfer_gb_usd":{"format":"double","type":"number"}},"required":["profile_id","node_hourly_usd","storage_gb_hour_usd","transfer_gb_usd"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/costs/config":{"post":{"operationId":"upsert_cost_config","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostConfigUpsert"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostConfig"}}},"description":"Cost rates saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set cost rates for a profile","tags":["inference"]}}}}
```

## GET /v1/inference/events

> Model events timeline

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"InferenceEvent":{"description":"One entry of a model's timeline, merged from the tables that record it.","properties":{"at":{"format":"date-time","type":"string"},"detail":{"type":["string","null"]},"duration_ms":{"format":"int64","type":["integer","null"]},"kind":{"description":"worker.restored, worker.cold_start, worker.terminated, restore.failed, restore.fallback,\ncheckpoint.first_ready, checkpoint.failed, model.parked, model.woken, model.scaled, or a\nlifecycle kind.","type":"string"},"logical_model":{"type":["string","null"]},"pod_name":{"type":["string","null"]},"profile_id":{"type":["string","null"]},"severity":{"type":"string"},"source":{"description":"The table the event came from.","type":"string"}},"required":["at","kind","source","severity"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/events":{"get":{"operationId":"events","parameters":[{"in":"query","name":"hours","required":false,"schema":{"format":"int32","type":"integer"}},{"in":"query","name":"profile_id","required":false,"schema":{"type":["string","null"]}},{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InferenceEvent"},"type":"array"}}},"description":"Worker starts, restores, checkpoints, terminations, scaling and lifecycle events, newest first"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Model events timeline","tags":["inference"]}}}}
```

## GET /v1/inference/gateways

> List cluster gateways

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ClusterGateway":{"description":"A cluster's inference gateway as callers outside the cluster reach it.","properties":{"cluster_id":{"format":"uuid","type":"string"},"cluster_name":{"type":"string"},"gateway_url":{"description":"Public OpenAI base origin (Ingress/LoadBalancer); None means in-cluster only.","type":["string","null"]}},"required":["cluster_id","cluster_name"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/gateways":{"get":{"operationId":"list_gateways","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ClusterGateway"},"type":"array"}}},"description":"Gateway per Kubernetes cluster"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"List cluster gateways","tags":["inference"]}}}}
```

## PUT /v1/inference/gateways/{cluster\_id}

> Set a cluster's public gateway URL

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"SetClusterGateway":{"properties":{"gateway_url":{"description":"http(s) origin; null or empty clears it.","type":["string","null"]}},"type":"object"},"ClusterGateway":{"description":"A cluster's inference gateway as callers outside the cluster reach it.","properties":{"cluster_id":{"format":"uuid","type":"string"},"cluster_name":{"type":"string"},"gateway_url":{"description":"Public OpenAI base origin (Ingress/LoadBalancer); None means in-cluster only.","type":["string","null"]}},"required":["cluster_id","cluster_name"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/gateways/{cluster_id}":{"put":{"operationId":"set_gateway","parameters":[{"in":"path","name":"cluster_id","required":true,"schema":{"format":"uuid","type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetClusterGateway"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClusterGateway"}}},"description":"Gateway saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Not an http(s) URL"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Cluster not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set a cluster's public gateway URL","tags":["inference"]}}}}
```

## GET /v1/inference/keys

> List issued inference keys

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"InferenceKeyView":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"created_at":{"format":"date-time","type":"string"},"key_id":{"type":"string"},"models":{},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"revoked_at":{"format":"date-time","type":["string","null"]},"tenant_id":{"type":["string","null"]}},"required":["key_id","name","models","created_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/keys":{"get":{"operationId":"list_inference_keys","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/InferenceKeyView"},"type":"array"}}},"description":"Issued keys"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"List issued inference keys","tags":["inference"]}}}}
```

## POST /v1/inference/keys

> Issue a scoped inference API key

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"CreateInferenceKey":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"models":{"items":{"type":"string"},"type":"array"},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"tenant_id":{"type":["string","null"]}},"required":["name"],"type":"object"},"CreatedInferenceKey":{"allOf":[{"$ref":"#/components/schemas/InferenceKeyView"},{"properties":{"raw_key":{"description":"The raw key, shown exactly once at creation.","type":"string"}},"required":["raw_key"],"type":"object"}]},"InferenceKeyView":{"properties":{"budget_usd":{"format":"double","type":["number","null"]},"created_at":{"format":"date-time","type":"string"},"key_id":{"type":"string"},"models":{},"name":{"type":"string"},"rate_limit_rps":{"format":"int64","type":["integer","null"]},"revoked_at":{"format":"date-time","type":["string","null"]},"tenant_id":{"type":["string","null"]}},"required":["key_id","name","models","created_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/keys":{"post":{"operationId":"create_inference_key","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateInferenceKey"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedInferenceKey"}}},"description":"Key issued (raw shown once)"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Issue a scoped inference API key","tags":["inference"]}}}}
```

## DELETE /v1/inference/keys/{key\_id}

> Revoke an inference API key

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/keys/{key_id}":{"delete":{"operationId":"delete_inference_key","parameters":[{"in":"path","name":"key_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Key revoked"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Revoke an inference API key","tags":["inference"]}}}}
```

## GET /v1/inference/lifecycle-events

> The cluster's recent lifecycle events across all profiles, time-ascending, so a\
> UI can replay how the routing topology changed over time.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"LifecycleEventView":{"description":"One durably-persisted lifecycle event, across every profile in the cluster.","properties":{"event_id":{"format":"uuid","type":"string"},"generation":{"format":"int64","type":["integer","null"]},"kind":{"description":"Lifecycle kind, e.g. model.ready, route.published, route.withdrawn.","type":"string"},"occurred_at":{"format":"date-time","type":"string"},"payload":{},"profile_id":{"description":"The profile the event belongs to, when known. Null for cluster-wide events\nand for rows written before the column existed.","type":["string","null"]},"sequence":{"format":"int64","type":["integer","null"]}},"required":["event_id","kind","occurred_at"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/lifecycle-events":{"get":{"operationId":"list_lifecycle_events","parameters":[{"in":"query","name":"limit","required":false,"schema":{"format":"int64","type":"integer"}},{"description":"Only events at or after this instant, so a poller can page forward.","in":"query","name":"since","required":false,"schema":{"format":"date-time","type":["string","null"]}},{"description":"Only this profile's events.","in":"query","name":"profile_id","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/LifecycleEventView"},"type":"array"}}},"description":"Lifecycle events across all profiles"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"The cluster's recent lifecycle events across all profiles, time-ascending, so a\nUI can replay how the routing topology changed over time.","tags":["inference"]}}}}
```

Ingest one trusted lifecycle envelope over HTTP. Same event\_id dedupe and\
transactional ingestion as the RabbitMQ path.
---------------------------------------------

> Documented at /inference/lifecycle-events (same collection as the GET) so\
> generated SDKs get a single builder with both methods; the legacy\
> /inference/lifecycle/events path collides with it under kiota's name\
> sanitization, dropping the POST from the SDK. The legacy path stays\
> registered as an undocumented alias in api.rs for older clients.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"ServiceToken":[]}],"components":{"securitySchemes":{"ServiceToken":{"scheme":"bearer","type":"http"}},"schemas":{"LifecycleEnvelope":{"description":"Shared envelope for trusted lifecycle events.","properties":{"action_id":{"description":"Checkpoint/restore action UUID when the event belongs to one.","format":"uuid","type":["string","null"]},"activation_id":{"description":"Model activation row UUID when applicable.","format":"uuid","type":["string","null"]},"artifact_id":{"description":"Checkpoint artifact UUID for checkpoint events.","format":"uuid","type":["string","null"]},"boot_id":{"type":["string","null"]},"cluster_id":{"description":"Nebius cluster (`clusters.id` UUID).","format":"uuid","type":"string"},"event_id":{"description":"Idempotency key: generated once per logical event and reused across\ntransport retries (RabbitMQ redelivery, HTTP retry).","format":"uuid","type":"string"},"generation":{"description":"Activation observed generation.","format":"int64","type":"integer"},"kind":{"description":"One of SUPPORTED_LIFECYCLE_KINDS.","type":"string"},"node_uid":{"description":"Node the event came from (checkpoint tmpfs artifacts are boot-tied).","format":"uuid","type":["string","null"]},"occurred_at":{"description":"When the event happened at the source (RFC3339 UTC).","format":"date-time","type":"string"},"payload":{"description":"Free-form JSON; required fields vary per kind."},"profile_id":{"description":"Deployment profile id (e.g. `qwen3-30b-a3b-l40s-fp8`).","type":"string"},"schema_version":{"description":"MUST be 1; anything else is dead-lettered on ingestion.","format":"int32","type":"integer"},"sequence":{"description":"Per-(cluster_id, activation_id) monotonic counter; 0 when not applicable.","format":"int64","type":"integer"},"workload_uid":{"description":"k8s pod/DGD UID when relevant.","type":["string","null"]}},"required":["schema_version","event_id","occurred_at","cluster_id","profile_id","kind"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/lifecycle-events":{"post":{"description":"Documented at /inference/lifecycle-events (same collection as the GET) so\ngenerated SDKs get a single builder with both methods; the legacy\n/inference/lifecycle/events path collides with it under kiota's name\nsanitization, dropping the POST from the SDK. The legacy path stays\nregistered as an undocumented alias in api.rs for older clients.","operationId":"ingest_lifecycle_event","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifecycleEnvelope"}}},"required":true},"responses":{"204":{"description":"Lifecycle event accepted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Invalid envelope (schema version or kind)"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Unauthorized"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Duplicate event_id"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Ingest one trusted lifecycle envelope over HTTP. Same event_id dedupe and\ntransactional ingestion as the RabbitMQ path.","tags":["inference"]}}}}
```

## Engine and GPU metrics per model over time

> From the cluster's Prometheus recording rules (\`cedana:inference\_\*\`), shipped by the\
> monitoring stack. Empty when monitoring is off.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"MetricsSeries":{"properties":{"bucket_minutes":{"format":"int32","type":"integer"},"fleet":{"items":{"$ref":"#/components/schemas/FleetPoint"},"type":"array"},"series":{"items":{"$ref":"#/components/schemas/ModelMetricsSeries"},"type":"array"}},"required":["bucket_minutes","series","fleet"],"type":"object"},"FleetPoint":{"properties":{"gpus_in_use":{"format":"double","type":"number"},"gpus_total":{"format":"double","type":["number","null"]},"ready_replicas":{"format":"double","type":"number"},"serving_models":{"format":"int64","type":"integer"},"ts":{"format":"date-time","type":"string"}},"required":["ts","serving_models","ready_replicas","gpus_in_use"],"type":"object"},"ModelMetricsSeries":{"description":"A model's engine and GPU metrics in one bucket: `ts` plus one field per recorded series\n(generation_tokens_per_second, kv_usage, gpu_utilization, ...); a series with no samples is absent.","properties":{"points":{"items":{"type":"object"},"type":"array"},"profile_id":{"type":"string"}},"required":["profile_id","points"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/metrics/series":{"get":{"description":"From the cluster's Prometheus recording rules (`cedana:inference_*`), shipped by the\nmonitoring stack. Empty when monitoring is off.","operationId":"metrics_series","parameters":[{"in":"query","name":"hours","required":false,"schema":{"format":"int32","type":"integer"}},{"in":"query","name":"bucket_minutes","required":false,"schema":{"format":"int32","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricsSeries"}}},"description":"Per-model and fleet series, oldest first"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Engine and GPU metrics per model over time","tags":["inference"]}}}}
```

## GET /v1/inference/models

> OpenAI-compatible model aliases

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/models":{"get":{"operationId":"models","responses":{"200":{"content":{"application/json":{"schema":{}}},"description":"OpenAI models list"},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Invalid API key"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"OpenAI-compatible model aliases","tags":["inference"]}}}}
```

## GET /v1/inference/policies

> Every policy: org default, teams and profiles

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"PolicyList":{"properties":{"org":{"$ref":"#/components/schemas/Policy"},"profiles":{"items":{"$ref":"#/components/schemas/ScopedPolicy"},"type":"array"},"team_names":{"description":"Every team named on a profile or a policy.","items":{"type":"string"},"type":"array"},"teams":{"items":{"$ref":"#/components/schemas/ScopedPolicy"},"type":"array"}},"required":["org","teams","profiles","team_names"],"type":"object"},"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"ScopedPolicy":{"allOf":[{"$ref":"#/components/schemas/Policy"},{"properties":{"name":{"description":"The team name or profile id.","type":"string"}},"required":["name"],"type":"object"}]},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/policies":{"get":{"operationId":"list_policies","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PolicyList"}}},"description":"Stored policies by scope"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Every policy: org default, teams and profiles","tags":["inference"]}}}}
```

## PUT /v1/inference/policies/org

> Set the org default policy

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/policies/org":{"put":{"operationId":"put_org_policy","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"Saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set the org default policy","tags":["inference"]}}}}
```

## DELETE /v1/inference/policies/org

> Clear the org default policy

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/policies/org":{"delete":{"operationId":"delete_org_policy","responses":{"204":{"description":"Cleared"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Clear the org default policy","tags":["inference"]}}}}
```

## PUT /v1/inference/policies/teams/{team}

> Set a team's policy and caps

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/policies/teams/{team}":{"put":{"operationId":"put_team_policy","parameters":[{"in":"path","name":"team","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"Saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set a team's policy and caps","tags":["inference"]}}}}
```

## DELETE /v1/inference/policies/teams/{team}

> Clear a team's policy and caps

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/policies/teams/{team}":{"delete":{"operationId":"delete_team_policy","parameters":[{"in":"path","name":"team","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Cleared"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Clear a team's policy and caps","tags":["inference"]}}}}
```

## GET /v1/inference/profiles

> List deployment profiles with their state

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ProfileView":{"allOf":[{"$ref":"#/components/schemas/DeploymentProfile"},{"properties":{"checkpointed":{"description":"A ready checkpoint exists under the profile's current checkpoint name.","type":"boolean"},"policy":{"$ref":"#/components/schemas/EffectivePolicy","description":"The resolved scaling policy; its bounds are the ones the router enforces."},"ready_replicas":{"format":"int64","type":"integer"},"start_kind":{"description":"How the newest worker started: \"restore\" or \"cold\"; null with no worker.","type":["string","null"]},"state":{"description":"\"serving\", \"starting\" or \"scaled_to_zero\".","type":"string"}},"required":["ready_replicas","checkpointed","state","policy"],"type":"object"}],"description":"A profile with its live state, read from the regular pod sync."},"DeploymentProfile":{"properties":{"backend_url":{"type":"string"},"checkpoint_name":{"description":"The `CEDANA_CHECKPOINT` name its workers restore from.","type":"string"},"cluster_id":{"format":"uuid","type":["string","null"]},"desired_replicas":{"format":"int32","type":"integer"},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"exact_model":{"type":"string"},"logical_model":{"type":"string"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"profile_revision":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"spec":{"$ref":"#/components/schemas/ModelSpec"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"The team whose policy and caps apply; null for none.","type":["string","null"]}},"required":["profile_id","logical_model","exact_model","profile_revision","backend_url","estimated_cold_start_ms","namespace","checkpoint_name","spec","min_replicas","max_replicas","target_concurrency","max_queue_depth","scale_down_idle_seconds","desired_replicas"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"},"EffectivePolicy":{"properties":{"idle_seconds":{"format":"int64","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"never_park":{"type":"boolean"},"priority":{"$ref":"#/components/schemas/Priority"},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":"array"},"sources":{"$ref":"#/components/schemas/Sources"},"team":{"type":["string","null"]}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules","sources"],"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles":{"get":{"operationId":"list_profiles","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProfileView"},"type":"array"}}},"description":"Profiles and their live state"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"List deployment profiles with their state","tags":["inference"]}}}}
```

## POST /v1/inference/profiles

> Create or update a deployment profile

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"CreateProfile":{"properties":{"cluster_id":{"format":"uuid","type":["string","null"]},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"logical_model":{"description":"The name callers use; defaults to the profile id.","type":["string","null"]},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"model":{"$ref":"#/components/schemas/ModelSpec"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"Kept as is when omitted on an update.","type":["string","null"]}},"required":["profile_id","model"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"},"DeploymentProfile":{"properties":{"backend_url":{"type":"string"},"checkpoint_name":{"description":"The `CEDANA_CHECKPOINT` name its workers restore from.","type":"string"},"cluster_id":{"format":"uuid","type":["string","null"]},"desired_replicas":{"format":"int32","type":"integer"},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"exact_model":{"type":"string"},"logical_model":{"type":"string"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"profile_revision":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"spec":{"$ref":"#/components/schemas/ModelSpec"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"The team whose policy and caps apply; null for none.","type":["string","null"]}},"required":["profile_id","logical_model","exact_model","profile_revision","backend_url","estimated_cold_start_ms","namespace","checkpoint_name","spec","min_replicas","max_replicas","target_concurrency","max_queue_depth","scale_down_idle_seconds","desired_replicas"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles":{"post":{"operationId":"create_profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateProfile"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentProfile"}}},"description":"Profile created"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Create or update a deployment profile","tags":["inference"]}}}}
```

## Delete a profile and its workload

> Removes the model's objects from its cluster, weights volume included, then the profile.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}":{"delete":{"description":"Removes the model's objects from its cluster, weights volume included, then the profile.","operationId":"delete_profile","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Deleted"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Delete a profile and its workload","tags":["inference"]}}}}
```

## Checkpoint a profile's running worker

> An ordinary \`checkpoint\_pod\` action on the newest ready worker; the checkpoint carries\
> the profile's \`CEDANA\_CHECKPOINT\` name, so the next worker to start restores from it.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/checkpoint":{"post":{"description":"An ordinary `checkpoint_pod` action on the newest ready worker; the checkpoint carries\nthe profile's `CEDANA_CHECKPOINT` name, so the next worker to start restores from it.","operationId":"checkpoint_profile","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"202":{"content":{"text/plain":{"schema":{"format":"uuid","type":"string"}}},"description":"Checkpoint action id"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"No ready worker to checkpoint"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Checkpoint a profile's running worker","tags":["inference"]}}}}
```

## GET /v1/inference/profiles/{profile\_id}/manifest

> Render a profile's Kubernetes objects at a replica count

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ProfileManifest":{"description":"The Kubernetes objects that serve a profile.","properties":{"checkpoint_name":{"type":"string"},"namespace":{"type":"string"},"objects":{"description":"Applied in order with server-side apply; replicas 0 keeps them and stops the pods.","items":{"type":"object"},"type":"array"},"profile_id":{"type":"string"}},"required":["profile_id","namespace","checkpoint_name","objects"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/manifest":{"get":{"operationId":"profile_manifest","parameters":[{"in":"query","name":"replicas","required":false,"schema":{"format":"int32","minimum":0,"type":"integer"}},{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileManifest"}}},"description":"Objects to apply"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Render a profile's Kubernetes objects at a replica count","tags":["inference"]}}}}
```

## GET /v1/inference/profiles/{profile\_id}/policy

> A profile's own policy; empty when it inherits everything

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/policy":{"get":{"operationId":"get_profile_policy","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"The profile's policy"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"A profile's own policy; empty when it inherits everything","tags":["inference"]}}}}
```

## PUT /v1/inference/profiles/{profile\_id}/policy

> Set a profile's policy

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"Policy":{"description":"A policy at one scope; an absent field inherits from the next scope.","properties":{"idle_seconds":{"description":"Seconds without a request before the model parks to its floor.","format":"int64","type":["integer","null"]},"max_gpus":{"description":"Team policies only: GPUs the team's models may hold.","format":"int32","type":["integer","null"]},"max_replicas":{"format":"int32","type":["integer","null"]},"max_resident_models":{"description":"Team policies only: models of the team with replicas at once.","format":"int32","type":["integer","null"]},"min_replicas":{"format":"int32","type":["integer","null"]},"never_park":{"description":"Keeps at least one replica warm.","type":["boolean","null"]},"priority":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/Priority"}]},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":["array","null"]}},"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/policy":{"put":{"operationId":"put_profile_policy","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Policy"}}},"description":"Saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set a profile's policy","tags":["inference"]}}}}
```

## DELETE /v1/inference/profiles/{profile\_id}/policy

> Clear a profile's policy so it inherits its team's and the org's

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/policy":{"delete":{"operationId":"delete_profile_policy","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Cleared"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Clear a profile's policy so it inherits its team's and the org's","tags":["inference"]}}}}
```

## GET /v1/inference/profiles/{profile\_id}/policy/effective

> A profile's effective policy, with where each field came from

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"EffectivePolicyView":{"allOf":[{"$ref":"#/components/schemas/EffectivePolicy"},{"properties":{"max_gpus":{"format":"int32","type":["integer","null"]},"max_resident_models":{"format":"int32","type":["integer","null"]},"schedule_floor":{"description":"What the active schedule windows keep warm now.","format":"int32","type":"integer"}},"required":["schedule_floor"],"type":"object"}]},"EffectivePolicy":{"properties":{"idle_seconds":{"format":"int64","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"never_park":{"type":"boolean"},"priority":{"$ref":"#/components/schemas/Priority"},"schedules":{"items":{"$ref":"#/components/schemas/ScheduleWindow"},"type":"array"},"sources":{"$ref":"#/components/schemas/Sources"},"team":{"type":["string","null"]}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules","sources"],"type":"object"},"Priority":{"enum":["batch","standard","interactive"],"type":"string"},"ScheduleWindow":{"description":"Keeps at least `min_replicas` warm inside the window.","properties":{"days":{"description":"ISO weekdays, 1 = Monday.","items":{"format":"int32","minimum":0,"type":"integer"},"type":"array"},"end":{"type":"string"},"min_replicas":{"format":"int32","type":"integer"},"start":{"description":"\"HH:MM\" local time; an end at or before the start runs past midnight.","type":"string"},"timezone":{"description":"IANA name, e.g. \"America/New_York\".","type":"string"}},"required":["days","start","end","timezone","min_replicas"],"type":"object"},"Sources":{"properties":{"idle_seconds":{"$ref":"#/components/schemas/Source"},"max_replicas":{"$ref":"#/components/schemas/Source"},"min_replicas":{"$ref":"#/components/schemas/Source"},"never_park":{"$ref":"#/components/schemas/Source"},"priority":{"$ref":"#/components/schemas/Source"},"schedules":{"$ref":"#/components/schemas/Source"}},"required":["min_replicas","max_replicas","idle_seconds","priority","never_park","schedules"],"type":"object"},"Source":{"enum":["profile","team","org","default"],"type":"string"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/policy/effective":{"get":{"operationId":"get_effective_policy","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EffectivePolicyView"}}},"description":"Resolved policy"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"A profile's effective policy, with where each field came from","tags":["inference"]}}}}
```

## POST /v1/inference/profiles/{profile\_id}/scale

> Scale a profile; 0 scales it to zero

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ScaleRequest":{"properties":{"replicas":{"format":"int32","type":"integer"}},"required":["replicas"],"type":"object"},"DeploymentProfile":{"properties":{"backend_url":{"type":"string"},"checkpoint_name":{"description":"The `CEDANA_CHECKPOINT` name its workers restore from.","type":"string"},"cluster_id":{"format":"uuid","type":["string","null"]},"desired_replicas":{"format":"int32","type":"integer"},"estimated_cold_start_ms":{"format":"int64","type":"integer"},"exact_model":{"type":"string"},"logical_model":{"type":"string"},"max_queue_depth":{"format":"int32","type":"integer"},"max_replicas":{"format":"int32","type":"integer"},"min_replicas":{"format":"int32","type":"integer"},"namespace":{"type":"string"},"profile_id":{"type":"string"},"profile_revision":{"type":"string"},"scale_down_idle_seconds":{"format":"int64","type":"integer"},"spec":{"$ref":"#/components/schemas/ModelSpec"},"target_concurrency":{"format":"int32","type":"integer"},"team":{"description":"The team whose policy and caps apply; null for none.","type":["string","null"]}},"required":["profile_id","logical_model","exact_model","profile_revision","backend_url","estimated_cold_start_ms","namespace","checkpoint_name","spec","min_replicas","max_replicas","target_concurrency","max_queue_depth","scale_down_idle_seconds","desired_replicas"],"type":"object"},"ModelSpec":{"description":"What a user asks for: a model on some GPUs. Everything Dynamo-shaped is derived.","properties":{"engine":{"$ref":"#/components/schemas/Engine"},"engine_args":{"description":"Extra engine flags, appended after the generated ones.","items":{"type":"string"},"type":"array"},"env":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"gpus":{"format":"int32","minimum":0,"type":"integer"},"hf_token_secret":{"description":"Secret with key `token`, for gated repos.","type":["string","null"]},"image":{"type":["string","null"]},"node_selector":{"additionalProperties":{"type":"string"},"propertyNames":{"type":"string"},"type":"object"},"pd":{"description":"Serve disaggregated: a prefill and a decode worker per replica, KV moved over NIXL.\nNot checkpointed or parked: freezing one side of a pair breaks it.","type":"boolean"},"repo":{"description":"Hugging Face repo, e.g. `Qwen/Qwen3-8B`.","type":"string"},"resources":{"description":"Worker container resources other than GPUs; no CPU or memory limits unless set here.","type":["object","null"]},"revision":{"description":"A 40-character commit: `main` moves, and a checkpoint of other weights must not restore.","type":"string"},"tolerations":{"items":{"type":"object"},"type":"array"}},"required":["repo","revision"],"type":"object"},"Engine":{"enum":["sglang","vllm"],"type":"string"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/scale":{"post":{"operationId":"scale_profile","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScaleRequest"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeploymentProfile"}}},"description":"Scaling"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Outside the profile's replica bounds"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"A team cap blocks the scale-up"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Scale a profile; 0 scales it to zero","tags":["inference"]}}}}
```

## PUT /v1/inference/profiles/{profile\_id}/team

> Put a profile in a team, or take it out with null

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"SetTeam":{"properties":{"team":{"description":"Null removes the profile from its team.","type":["string","null"]}},"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/profiles/{profile_id}/team":{"put":{"operationId":"set_profile_team","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetTeam"}}},"required":true},"responses":{"204":{"description":"Saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Put a profile in a team, or take it out with null","tags":["inference"]}}}}
```

## GET /v1/inference/slo

> Per-model SLOs

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ModelSlo":{"description":"One model's service levels over the window, per serving profile.","properties":{"breaches":{"description":"Breached metrics: ttft_p95, error_rate, inter_token_p95. Empty below the minimum requests.","items":{"type":"string"},"type":"array"},"e2e_p95_ms":{"format":"double","type":["number","null"]},"error_rate":{"format":"double","type":"number"},"errors":{"description":"5xx and 429 responses; other 4xx are caller errors.","format":"int64","type":"integer"},"inter_token_p95_ms":{"description":"p95 over requests of each request's p95 inter-token gap.","format":"double","type":["number","null"]},"logical_model":{"type":"string"},"profile_id":{"description":"The profile that served; null for requests refused before one was chosen.","type":["string","null"]},"queue_p95_ms":{"description":"Time the gateway held the request before routing it.","format":"double","type":["number","null"]},"requests":{"format":"int64","type":"integer"},"thresholds":{"$ref":"#/components/schemas/SloThresholds"},"ttft_p50_ms":{"format":"double","type":["number","null"]},"ttft_p95_ms":{"description":"Over every request, wakes included.","format":"double","type":["number","null"]},"wake_requests":{"description":"Requests that waited for the model to wake.","format":"int64","type":"integer"},"wake_ttft_p95_ms":{"format":"double","type":["number","null"]},"warm_requests":{"description":"Requests routed within WAKE_QUEUE_MS; the TTFT breach is judged on these.","format":"int64","type":"integer"},"warm_ttft_p95_ms":{"format":"double","type":["number","null"]}},"required":["logical_model","requests","errors","error_rate","warm_requests","wake_requests","thresholds","breaches"],"type":"object"},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/slo":{"get":{"operationId":"slo","parameters":[{"in":"query","name":"hours","required":false,"schema":{"format":"int32","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelSlo"},"type":"array"}}},"description":"Service levels and breaches per model and profile"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Per-model SLOs","tags":["inference"]}}}}
```

## GET /v1/inference/slo/config

> SLO thresholds

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"SloConfig":{"properties":{"default":{"$ref":"#/components/schemas/SloThresholds","description":"The org default; code defaults until one is saved."},"overrides":{"items":{"$ref":"#/components/schemas/SloOverride"},"type":"array"}},"required":["default","overrides"],"type":"object"},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"},"SloOverride":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"type":"string"}},"required":["profile_id"],"type":"object"}]},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/slo/config":{"get":{"operationId":"get_slo_config","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloConfig"}}},"description":"Org default and per-profile thresholds"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"SLO thresholds","tags":["inference"]}}}}
```

## PUT /v1/inference/slo/config

> Set SLO thresholds for a profile, or the org default with profile\_id "\*"

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"SloConfigUpsert":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"description":"A profile id, or \"*\" for the org default.","type":"string"}},"required":["profile_id"],"type":"object"}]},"SloThresholds":{"properties":{"error_rate":{"description":"Fraction of requests, 0 to 1.","format":"double","type":"number"},"inter_token_p95_ms":{"format":"double","type":"number"},"ttft_p95_ms":{"format":"double","type":"number"}},"required":["ttft_p95_ms","error_rate","inter_token_p95_ms"],"type":"object"},"SloOverride":{"allOf":[{"$ref":"#/components/schemas/SloThresholds"},{"properties":{"profile_id":{"type":"string"}},"required":["profile_id"],"type":"object"}]},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/slo/config":{"put":{"operationId":"put_slo_config","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloConfigUpsert"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SloOverride"}}},"description":"Thresholds saved"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Bad request"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Profile not found"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Set SLO thresholds for a profile, or the org default with profile_id \"*\"","tags":["inference"]}}}}
```

## DELETE /v1/inference/slo/config/{profile\_id}

> Reset a profile's thresholds to the org default ("\*" resets the default to code defaults)

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/slo/config/{profile_id}":{"delete":{"operationId":"delete_slo_config","parameters":[{"in":"path","name":"profile_id","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"Reset"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Reset a profile's thresholds to the org default (\"*\" resets the default to code defaults)","tags":["inference"]}}}}
```

## GET /v1/inference/startup-comparison

> Cold start against restore, per profile. Measured from the workers that ran, not\
> estimated.

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ProfileStartupComparison":{"description":"Cold starts against restores, for one profile.","properties":{"cold":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/StartLatency"}]},"logical_model":{"type":"string"},"profile_id":{"type":"string"},"restored":{"oneOf":[{"type":"null"},{"$ref":"#/components/schemas/StartLatency"}]},"saved_ms":{"description":"Milliseconds a restore saves at the median.","format":"int64","type":["integer","null"]},"speedup":{"description":"Cold median divided by restore median. Above 1 means restoring is faster.","format":"double","type":["number","null"]},"starts":{"description":"Every start behind the summaries, newest first.","items":{"$ref":"#/components/schemas/WorkerStart"},"type":"array"}},"required":["profile_id","logical_model","starts"],"type":"object"},"StartLatency":{"properties":{"max_ms":{"format":"int64","type":"integer"},"median_ms":{"format":"int64","type":"integer"},"min_ms":{"format":"int64","type":"integer"},"samples":{"minimum":0,"type":"integer"}},"required":["samples","min_ms","median_ms","max_ms"],"type":"object"},"WorkerStart":{"properties":{"checkpoint_path":{"type":["string","null"]},"pod_name":{"type":"string"},"ready_at":{"format":"date-time","type":["string","null"]},"restored":{"description":"True when a restore is bound to this worker pod.","type":"boolean"},"start_time_ms":{"description":"PodScheduled to Ready, in milliseconds.","format":"int64","type":"integer"}},"required":["pod_name","start_time_ms","restored"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/startup-comparison":{"get":{"operationId":"inference_startup_comparison","responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ProfileStartupComparison"},"type":"array"}}},"description":"Cold versus restore worker startup, per profile"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Cold start against restore, per profile. Measured from the workers that ran, not\nestimated.","tags":["inference"]}}}}
```

## GET /v1/inference/usage

> Tokens and latency served per model

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"ModelUsage":{"description":"Served traffic for one model over the window, from the gateway's per-request records.","properties":{"completion_tokens":{"format":"int64","type":"integer"},"errors":{"format":"int64","type":"integer"},"key_id":{"description":"The API key the requests used; set only with `by=key`, null for unkeyed requests.","type":["string","null"]},"logical_model":{"type":"string"},"output_tokens_per_second":{"description":"Completion tokens over streaming time, per request stream.","format":"double","type":["number","null"]},"prompt_tokens":{"format":"int64","type":"integer"},"requests":{"format":"int64","type":"integer"},"ttft_p50_ms":{"format":"double","type":["number","null"]},"ttft_p95_ms":{"format":"double","type":["number","null"]}},"required":["logical_model","requests","errors","prompt_tokens","completion_tokens"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/usage":{"get":{"operationId":"usage","parameters":[{"in":"query","name":"hours","required":false,"schema":{"format":"int32","type":"integer"}},{"description":"\"key\" splits each model's row by the API key (customer) that sent it.","in":"query","name":"by","required":false,"schema":{"type":["string","null"]}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ModelUsage"},"type":"array"}}},"description":"Per-model usage over the window"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Tokens and latency served per model","tags":["inference"]}}}}
```

## GET /v1/inference/usage/series

> Traffic per model over time

```json
{"openapi":"3.1.0","info":{"title":"Cedana API","version":"0.0.0-dev"},"tags":[{"description":"Cedana inference control plane","name":"inference"}],"security":[{"Token":[]}],"components":{"securitySchemes":{"Token":{"scheme":"bearer","type":"http"}},"schemas":{"UsagePoint":{"description":"One model's traffic in one time bucket.","properties":{"bucket_start":{"format":"date-time","type":"string"},"completion_tokens":{"format":"int64","type":"integer"},"errors":{"format":"int64","type":"integer"},"logical_model":{"type":"string"},"prompt_tokens":{"format":"int64","type":"integer"},"requests":{"format":"int64","type":"integer"},"ttft_p50_ms":{"format":"double","type":["number","null"]}},"required":["bucket_start","logical_model","requests","errors","prompt_tokens","completion_tokens"],"type":"object"},"HttpError":{"description":"Standard JSON error body for all 4xx/5xx responses.\n\nHandlers return plain-text errors internally; [`normalize_error_response`]\nconverts anything the stack produces (handlers, extractors, the auth layer)\nto this shape, so generated SDK clients can rely on a single error schema.","properties":{"message":{"description":"Human-readable description of what went wrong","type":"string"}},"required":["message"],"type":"object"}}},"paths":{"/v1/inference/usage/series":{"get":{"operationId":"usage_series","parameters":[{"in":"query","name":"hours","required":false,"schema":{"format":"int32","type":"integer"}},{"in":"query","name":"bucket_minutes","required":false,"schema":{"format":"int32","type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UsagePoint"},"type":"array"}}},"description":"Per-model traffic in fixed buckets, oldest first"},"4XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Client error"},"5XX":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HttpError"}}},"description":"Server error"}},"summary":"Traffic per model over time","tags":["inference"]}}}}
```
