CreateWorkspaceRequest - TypeScript SDK

CreateWorkspaceRequest type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { CreateWorkspaceRequest } from "@openrouter/sdk/models";
2
3let value: CreateWorkspaceRequest = {
4 name: "Production",
5 slug: "production",
6};

Fields

FieldTypeRequiredDescriptionExample
defaultImageModelstringDefault image model for this workspaceopenai/dall-e-3
defaultProviderSortstringDefault provider sort preference (price, throughput, latency, exacto)price
defaultTextModelstringDefault text model for this workspaceopenai/gpt-4o
descriptionstringDescription of the workspaceProduction environment workspace
isDataDiscountLoggingEnabledbooleanWhether data discount logging is enabledtrue
isObservabilityBroadcastEnabledbooleanWhether broadcast is enabledfalse
isObservabilityIoLoggingEnabledbooleanWhether private logging is enabledfalse
namestring✔️Name for the new workspaceProduction
slugstring✔️URL-friendly slug (lowercase alphanumeric and hyphens only)production