curl --request GET \
--url http://localhost:8080/api/models{
"data": [
{
"id": "openrouter/openai/gpt-4o",
"canonical_slug": "openai/gpt-4o",
"name": "OpenAI: GPT-4o",
"created": 1715558400,
"context_length": 128000,
"max_input_tokens": 123,
"max_output_tokens": 123,
"architecture": {
"tokenizer": "GPT",
"instruct_type": "<string>",
"input_modalities": [
"text",
"image",
"file"
],
"output_modalities": [
"text"
],
"modality": "text+image->text"
},
"pricing": {
"prompt": "0.0000025",
"completion": "0.00001",
"request": "0",
"image": "0.003613",
"web_search": "0",
"internal_reasoning": "0",
"input_cache_read": "0.00000125",
"input_cache_write": "0"
},
"top_provider": {
"context_length": 123,
"max_completion_tokens": 123,
"is_moderated": true
},
"per_request_limits": {
"prompt_tokens": 123,
"completion_tokens": 123
},
"supported_parameters": [
"<string>"
],
"default_parameters": {},
"hugging_face_id": "<string>",
"description": "GPT-4o (\"o\" for \"omni\") is OpenAI's latest AI model, supporting both text and image inputs with text outputs",
"owned_by": "openai",
"supported_methods": [
"<string>"
]
}
],
"next_page_token": "eyJwYWdlIjoxfQ==",
"extra_fields": {
"provider": "openai",
"request_type": "list_models",
"latency": 1234,
"raw_response": {}
}
}Retrieves a list of all available models across all configured providers.
curl --request GET \
--url http://localhost:8080/api/models{
"data": [
{
"id": "openrouter/openai/gpt-4o",
"canonical_slug": "openai/gpt-4o",
"name": "OpenAI: GPT-4o",
"created": 1715558400,
"context_length": 128000,
"max_input_tokens": 123,
"max_output_tokens": 123,
"architecture": {
"tokenizer": "GPT",
"instruct_type": "<string>",
"input_modalities": [
"text",
"image",
"file"
],
"output_modalities": [
"text"
],
"modality": "text+image->text"
},
"pricing": {
"prompt": "0.0000025",
"completion": "0.00001",
"request": "0",
"image": "0.003613",
"web_search": "0",
"internal_reasoning": "0",
"input_cache_read": "0.00000125",
"input_cache_write": "0"
},
"top_provider": {
"context_length": 123,
"max_completion_tokens": 123,
"is_moderated": true
},
"per_request_limits": {
"prompt_tokens": 123,
"completion_tokens": 123
},
"supported_parameters": [
"<string>"
],
"default_parameters": {},
"hugging_face_id": "<string>",
"description": "GPT-4o (\"o\" for \"omni\") is OpenAI's latest AI model, supporting both text and image inputs with text outputs",
"owned_by": "openai",
"supported_methods": [
"<string>"
]
}
],
"next_page_token": "eyJwYWdlIjoxfQ==",
"extra_fields": {
"provider": "openai",
"request_type": "list_models",
"latency": 1234,
"raw_response": {}
}
}Filter models by provider name
Comma-separated list of key IDs to filter models by
List of available models
Array of model information objects
Show child attributes
Unique model identifier
"openrouter/openai/gpt-4o"
Canonical slug for the model
"openai/gpt-4o"
Human-readable model name
"OpenAI: GPT-4o"
Unix timestamp of model creation
1715558400
Maximum context length in tokens
128000
Maximum input tokens
Maximum output tokens
Object describing the model's technical capabilities
Show child attributes
Tokenization method used by the model
"GPT"
Instruction format type (null if not applicable)
Supported input types for the model
file, image, text, audio, video ["text", "image", "file"]Supported output types for the model
text, image, audio, video ["text"]Primary model modality
"text+image->text"
Lowest price structure for using this model (all values in USD per token/request/unit)
Show child attributes
Cost per input token in USD
"0.0000025"
Cost per output token in USD
"0.00001"
Fixed cost per API request in USD
"0"
Cost per image input in USD
"0.003613"
Cost per web search operation in USD
"0"
Cost for internal reasoning tokens in USD
"0"
Cost per cached input token read in USD
"0.00000125"
Cost per cached input token write in USD
"0"
Configuration details for the primary provider
List of supported parameter names
Hugging Face model identifier
Description of the model and its capabilities
"GPT-4o (\"o\" for \"omni\") is OpenAI's latest AI model, supporting both text and image inputs with text outputs"
Organization that owns the model
"openai"
List of supported API methods
Token to retrieve the next page of results. Omitted if there are no more pages.
"eyJwYWdlIjoxfQ=="
Show child attributes
AI model provider
openai, anthropic, azure, bedrock, cohere, vertex, mistral, ollama, gemini, groq, openrouter, sgl, parasail, elevenlabs, perplexity, cerebras, nebius "openai"
Request type
list_models, text_completion, chat_completion, chat_completion_stream, responses, responses_stream, embedding, speech, speech_stream, transcription, transcription_stream Request latency in milliseconds
1234
Raw provider response
Was this page helpful?