For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
ModelsChatRankingsDocs
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
DocsAPI ReferenceClient SDKsAgent SDKCookbookChangelog
    • Overview
    • Usage for Agents
  • TypeScript SDK
    • Overview
  • Python SDK
    • Overview
  • Go SDK
      • Analytics
      • APIKeys
      • Byok
      • Chat
      • Credits
      • Embeddings
      • Endpoints
      • Generations
      • Guardrails
        • Models
        • CreateWorkspaceRequest
      • OAuth
      • Observability
      • Organization
      • Presets
      • Providers
      • Rerank
      • Beta.Responses
      • Transcriptions
      • Speech
      • VideoGeneration
      • Workspaces
  • DevTools
    • Overview
    • Migrating to @openrouter/agent
LogoLogo
ModelsChatRankingsDocs
On this page
  • Fields
Go SDKAPI ReferenceModels

CreateWorkspaceRequest - Go SDK

CreateWorkspaceRequest type definition
Was this page helpful?
Previous

OAuth - Go SDK

OAuth method reference
Next
Built with

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

Fields

FieldTypeRequiredDescriptionExample
DefaultImageModeloptionalnullable.OptionalNullable[string]➖Default image model for this workspaceopenai/dall-e-3
DefaultProviderSortoptionalnullable.OptionalNullable[string]➖Default provider sort preference (price, throughput, latency, exacto)price
DefaultTextModeloptionalnullable.OptionalNullable[string]➖Default text model for this workspaceopenai/gpt-4o
Descriptionoptionalnullable.OptionalNullable[string]➖Description of the workspaceProduction environment workspace
IoLoggingAPIKeyIdsoptionalnullable.OptionalNullable[[]int64]➖Optional array of API key IDs to filter I/O logging<nil>
IoLoggingSamplingRate*float64➖Sampling rate for I/O logging (0.0001-1)1
IsDataDiscountLoggingEnabled*bool➖Whether data discount logging is enabledtrue
IsObservabilityBroadcastEnabled*bool➖Whether broadcast is enabledfalse
IsObservabilityIoLoggingEnabled*bool➖Whether private logging is enabledfalse
Namestring✔️Name for the new workspaceProduction
Slugstring✔️URL-friendly slug (lowercase alphanumeric segments separated by single hyphens, no leading/trailing hyphens)production