Hanzo
OpenapiMl

Deploys one inference model for the caller's org, and answers 201 with the…

Deploys one inference model for the caller's org, and answers 201 with the model as Kubernetes admitted it.

POST /v1/ml/models

Addresshttps://api.hanzo.ai/v1/ml/models
MethodPOST
Operationpost_ml_models
AuthAuthorization: Bearer $HANZO_API_KEY

Deploys one inference model for the caller's org, and answers 201 with the model as Kubernetes admitted it.

The spec is a kserve InferenceService spec, passed through unchanged — this plane owns the tenancy, the billing and the namespace, and kserve owns what a model IS. An unfunded org is refused BEFORE anything is created, so nobody runs free GPU compute and nobody is charged for a resource that was never made.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
labelsbodyobjectLabels are extra labels to set on the object, merged UNDER the tenancy labels this plane derives from the validated principal — so a label naming another org's…
labels.*bodystring
namebodystringName is the resource's name: a DNS-1123 label (^a-z0-9?$), lowercased and trimmed.
specbodyanySpec is the resource's own spec, passed to Kubernetes unchanged.

Response

StatusBodyMeaning
201mlResourcecreated

201 body — 6 fields.

FieldInTypeAlwaysDescription
createdAtbodystringCreatedAt is when Kubernetes admitted the object, RFC 3339 in UTC.
namebodystringName is the object's metadata.name, unique within the caller's namespace.
specbodyobjectSpec is the resource spec, verbatim as Kubernetes stores it.
spec.*bodyobject
statusbodyobjectStatus is the live status kserve owns, verbatim.
status.*bodyobject

Failure carries the platform error shape — see Errors.

Examples

hanzo ml models create

ML API · All Hanzo APIs · Interactive reference

How is this guide?

On this page