Model - Go SDK
Model type definition
The Go SDK and docs are currently in beta. Report issues on GitHub.
Information about an AI model available on OpenRouter
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
ID | string | ✔️ | Unique identifier for the model | openai/gpt-4 |
CanonicalSlug | string | ✔️ | Canonical slug for the model | openai/gpt-4 |
HuggingFaceID | optionalnullable.OptionalNullable[string] | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium |
Name | string | ✔️ | Display name of the model | GPT-4 |
Created | int64 | ✔️ | Unix timestamp of when the model was created | 1692901234 |
Description | *string | ➖ | Description of the model | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy. |
Pricing | components.PublicPricing | ✔️ | Pricing information for the model | {"prompt": "0.00003","completion": "0.00006","request": "0","image": "0"} |
ContextLength | int64 | ✔️ | Maximum context length in tokens | 8192 |
Architecture | components.ModelArchitecture | ✔️ | Model architecture information | {"tokenizer": "GPT","instruct_type": "chatml","modality": "text-\u003etext","input_modalities": ["text"],"output_modalities": ["text"]} |
TopProvider | components.TopProviderInfo | ✔️ | Information about the top provider for this model | {"context_length": 8192,"max_completion_tokens": 4096,"is_moderated": true} |
PerRequestLimits | *components.PerRequestLimits | ✔️ | Per-request token limits | {"prompt_tokens": 1000,"completion_tokens": 1000} |
SupportedParameters | []components.Parameter | ✔️ | List of supported parameters for this model | |
DefaultParameters | *components.DefaultParameters | ✔️ | Default parameters for this model | {"temperature": 0.7,"top_p": 0.9,"top_k": 0,"frequency_penalty": 0,"presence_penalty": 0,"repetition_penalty": 1} |
KnowledgeCutoff | optionalnullable.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 |
ExpirationDate | optionalnullable.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 |
Links | components.ModelLinks | ✔️ | Related API endpoints and resources for this model. | {"details": "/api/v1/models/openai/gpt-5.4/endpoints"} |