baseten.client

Baseten client library.

Use ManagementClient or AsyncManagementClient for the management API, and InferenceClient or AsyncInferenceClient for the inference API. SandboxClient and AsyncSandboxClient reach one sandbox’s execution API directly; the higher-level surface lives in baseten.sandbox.

Classes

AsyncInferenceClient

Asynchronous client for the Baseten Inference API.

AsyncManagementClient

Asynchronous client for the Baseten Management API.

AsyncSandboxClient

Asynchronous client for one sandbox's execution-plane API.

InferenceClient

Synchronous client for the Baseten Inference API.

InferenceClientOptions

Options for InferenceClient and AsyncInferenceClient.

ManagementClient

Synchronous client for the Baseten Management API.

ManagementClientOptions

Options for ManagementClient and AsyncManagementClient.

SandboxClient

Synchronous client for one sandbox's execution-plane API.

SandboxClientOptions

Options for SandboxClient and AsyncSandboxClient.

Modules

inferenceapi

Generated client and models for the Baseten Inference API.

managementapi

Generated client and models for the Baseten Management API.

modelconfig

Generated models for the Baseten model config (truss config.yaml).

sandboxapi

Generated client and models for the Baseten Sandbox API.