OpenRouter TypeScript SDK - v1.0.6
GitHub
Examples
Preparing search index...
ModelInfo
Interface ModelInfo
Represents model information (endpoint /models)
interface
ModelInfo
{
id
:
string
;
name
:
string
;
created
:
number
;
description
?:
string
;
context_length
?:
number
;
architecture
?:
{
input_modalities
?:
string
[]
;
output_modalities
?:
string
[]
;
tokenizer
?:
string
;
instruct_type
?:
string
;
}
;
pricing
?:
{
prompt
:
string
;
completion
:
string
;
image
?:
string
;
request
?:
string
;
}
;
top_provider
?:
{
context_length
?:
number
;
max_completion_tokens
?:
number
;
is_moderated
?:
boolean
;
}
;
per_request_limits
?:
{
prompt_tokens
?:
number
;
completion_tokens
?:
number
}
;
supported_parameters
?:
string
[]
;
}
Index
Properties
id
name
created
description?
context_
length?
architecture?
pricing?
top_
provider?
per_
request_
limits?
supported_
parameters?
Properties
id
id
:
string
name
name
:
string
created
created
:
number
Optional
description
description
?:
string
Optional
context_
length
context_length
?:
number
Optional
architecture
architecture
?:
{
input_modalities
?:
string
[]
;
output_modalities
?:
string
[]
;
tokenizer
?:
string
;
instruct_type
?:
string
;
}
Optional
pricing
pricing
?:
{
prompt
:
string
;
completion
:
string
;
image
?:
string
;
request
?:
string
;
}
Optional
top_
provider
top_provider
?:
{
context_length
?:
number
;
max_completion_tokens
?:
number
;
is_moderated
?:
boolean
;
}
Optional
per_
request_
limits
per_request_limits
?:
{
prompt_tokens
?:
number
;
completion_tokens
?:
number
}
Optional
supported_
parameters
supported_parameters
?:
string
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
id
name
created
description
context_
length
architecture
pricing
top_
provider
per_
request_
limits
supported_
parameters
GitHub
Examples
OpenRouter TypeScript SDK - v1.0.6
Loading...
Represents model information (endpoint /models)