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
        • PresetWithDesignatedVersion
      • 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

PresetWithDesignatedVersion - Go SDK

PresetWithDesignatedVersion 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.

A preset with its currently designated version.

Fields

FieldTypeRequiredDescriptionExample
CreatedAtstring✔️N/A
CreatorUserID*string✔️N/A
Description*string✔️N/A
DesignatedVersion*components.PresetDesignatedVersion✔️A specific version of a preset, containing config and optional system prompt.{"config": {"model": "openai/gpt-4o","temperature": 0.7},
“created_at”: “2026-04-20T10:00:00Z”,
“creator_id”: “user_2dHFtVWx2n56w6HkM0000000000”,
“id”: “550e8400-e29b-41d4-a716-446655440000”,
“preset_id”: “650e8400-e29b-41d4-a716-446655440001”,
“system_prompt”: “You are a helpful assistant.”,
“updated_at”: “2026-04-20T10:00:00Z”,
“version”: 1<br />}
DesignatedVersionID*string✔️N/A
IDstring✔️N/A
Namestring✔️N/A
Slugstring✔️N/A
Statuscomponents.PresetWithDesignatedVersionStatus✔️N/A
StatusUpdatedAt*string✔️N/A
UpdatedAtstring✔️N/A
WorkspaceID*string✔️N/A