> ## Documentation Index
> Fetch the complete documentation index at: https://opentouter.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# CreateWorkspaceRequest - TypeScript SDK

> CreateWorkspaceRequest type definition

<Warning>
  The TypeScript SDK and docs are currently in beta.
  Report issues on [GitHub](https://github.com/OpenRouterTeam/typescript-sdk/issues).
</Warning>

## Example Usage

```typescript lines theme={null}
import { CreateWorkspaceRequest } from "@openrouter/sdk/models";

let value: CreateWorkspaceRequest = {
  name: "Production",
  slug: "production",
};
```

## Fields

| Field                             | Type        | Required             | Description                                                                                                  | Example                          |
| --------------------------------- | ----------- | -------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------- |
| `defaultImageModel`               | *string*    | :heavy\_minus\_sign: | Default image model for this workspace                                                                       | openai/dall-e-3                  |
| `defaultProviderSort`             | *string*    | :heavy\_minus\_sign: | Default provider sort preference (price, throughput, latency, exacto)                                        | price                            |
| `defaultTextModel`                | *string*    | :heavy\_minus\_sign: | Default text model for this workspace                                                                        | openai/gpt-4o                    |
| `description`                     | *string*    | :heavy\_minus\_sign: | Description of the workspace                                                                                 | Production environment workspace |
| `ioLoggingApiKeyIds`              | *number*\[] | :heavy\_minus\_sign: | Optional array of API key IDs to filter I/O logging                                                          | `<nil>`                          |
| `ioLoggingSamplingRate`           | *number*    | :heavy\_minus\_sign: | Sampling rate for I/O logging (0.0001-1)                                                                     | 1                                |
| `isDataDiscountLoggingEnabled`    | *boolean*   | :heavy\_minus\_sign: | Whether data discount logging is enabled                                                                     | true                             |
| `isObservabilityBroadcastEnabled` | *boolean*   | :heavy\_minus\_sign: | Whether broadcast is enabled                                                                                 | false                            |
| `isObservabilityIoLoggingEnabled` | *boolean*   | :heavy\_minus\_sign: | Whether private logging is enabled                                                                           | false                            |
| `name`                            | *string*    | :heavy\_check\_mark: | Name for the new workspace                                                                                   | Production                       |
| `slug`                            | *string*    | :heavy\_check\_mark: | URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens) | production                       |
