v5

latestOpenAPI 3.1.02026-08-025631,1012.8 MB
Custom Models

Upload a custom model

Upload custom model weights to the namespace.

Requirements:

  • Organization must be on Enterprise tier

Supported Model Formats:

  • safetensors: SafeTensors format (recommended for transformers)
  • onnx: ONNX Runtime format
  • pytorch: PyTorch state_dict or TorchScript
  • huggingface: HuggingFace model directory

Base Images (auto-selected based on format):

  • mixpeek/serve-gpu:latest: For safetensors, pytorch, huggingface (includes torch, transformers)
  • mixpeek/serve-minimal:latest: For ONNX (includes onnxruntime only)

Important: Models run in fixed base images. You cannot install additional pip packages. All required frameworks (torch, transformers, onnxruntime) are pre-installed.

post/v1/namespaces/{namespace_id}/models

Path parameters

namespace_idstring required

Response

Successful Response

successboolean required

Whether upload succeeded

model_idstring required

Unique model identifier

deployment_status'deployed' | 'pending' | 'failed' | 'not_deployed' required

Deployment status

endpointstring required

Model inference endpoint

model_archive_urlstring required

S3 URL where archive is stored