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

Model - Go SDK

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

Information about an AI model available on OpenRouter

Fields

FieldTypeRequiredDescriptionExample
Architecturecomponents.ModelArchitecture✔️Model architecture information{"input_modalities": ["text"],"instruct_type": "chatml","modality": "text-\u003etext","output_modalities": ["text"],"tokenizer": "GPT"}
CanonicalSlugstring✔️Canonical slug for the modelopenai/gpt-4
ContextLength*int64✔️Maximum context length in tokens8192
Createdint64✔️Unix timestamp of when the model was created1692901234
DefaultParameters*components.DefaultParameters✔️Default parameters for this model{"frequency_penalty": 0,"presence_penalty": 0,"repetition_penalty": 1,"temperature": 0.7,"top_k": 0,"top_p": 0.9}
Description*string➖Description of the modelGPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
ExpirationDateoptionalnullable.OptionalNullable[string]➖The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.2025-06-01
HuggingFaceIDoptionalnullable.OptionalNullable[string]➖Hugging Face model identifier, if applicablemicrosoft/DialoGPT-medium
IDstring✔️Unique identifier for the modelopenai/gpt-4
KnowledgeCutoffoptionalnullable.OptionalNullable[string]➖The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown.2024-10-01
Linkscomponents.ModelLinks✔️Related API endpoints and resources for this model.{"details": "/api/v1/models/openai/gpt-5.4/endpoints"}
Namestring✔️Display name of the modelGPT-4
PerRequestLimits*components.PerRequestLimits✔️Per-request token limits{"completion_tokens": 1000,"prompt_tokens": 1000}
Pricingcomponents.PublicPricing✔️Pricing information for the model{"completion": "0.00006","image": "0","prompt": "0.00003","request": "0"}
SupportedParameters[]components.Parameter✔️List of supported parameters for this model
SupportedVoices[]string✔️List of supported voice identifiers for TTS models. Null for non-TTS models.<nil>
TopProvidercomponents.TopProviderInfo✔️Information about the top provider for this model{"context_length": 8192,"is_moderated": true,"max_completion_tokens": 4096}