Python SDKAPI ReferenceComponents
CreateWorkspaceRequest - Python SDK
CreateWorkspaceRequest - Python SDK
CreateWorkspaceRequest method reference
The Python SDK and docs are currently in beta. Report issues on GitHub.
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
default_image_model | OptionalNullable[str] | ➖ | Default image model for this workspace | openai/dall-e-3 |
default_provider_sort | OptionalNullable[str] | ➖ | Default provider sort preference (price, throughput, latency, exacto) | price |
default_text_model | OptionalNullable[str] | ➖ | Default text model for this workspace | openai/gpt-4o |
description | OptionalNullable[str] | ➖ | Description of the workspace | Production environment workspace |
io_logging_api_key_ids | List[int] | ➖ | Optional array of API key IDs to filter I/O logging | <nil> |
io_logging_sampling_rate | Optional[float] | ➖ | Sampling rate for I/O logging (0.0001-1) | 1 |
is_data_discount_logging_enabled | Optional[bool] | ➖ | Whether data discount logging is enabled | true |
is_observability_broadcast_enabled | Optional[bool] | ➖ | Whether broadcast is enabled | false |
is_observability_io_logging_enabled | Optional[bool] | ➖ | Whether private logging is enabled | false |
name | str | ✔️ | Name for the new workspace | Production |
slug | str | ✔️ | URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens) | production |