get_model
Get Model
Retrieve detailed information about a specific AI model on OpenRouter, including its pricing, context window, architecture, supported parameters, and top provider details.
get_model
Retrieve detailed information about a specific AI model on OpenRouter, including its pricing, context window, architecture, supported parameters, and top provider details.
list_models
List all available AI models on OpenRouter with their metadata, pricing, and capabilities. Use to discover models, compare pricing, or find models that support specific features like tool calling.
list_guardrails
List OpenRouter guardrails for the authenticated account, including spending limits, model/provider allowlists and denylists, ZDR enforcement, workspace, and pagination metadata. Requires a Management API key.
create_guardrail
Create an OpenRouter guardrail to control spending, provider/model routing, content filters, workspace scope, and zero-data-retention requirements. Requires a Management API key.
list_api_keys
List API keys for the authenticated OpenRouter account, including usage, limits, BYOK usage, workspace, disabled state, and expiration metadata. Requires a Management API key.
send_chat_completion
Send messages to any of 400+ AI models through OpenRouter's unified API. Supports text, images, and PDFs as input. Configurable parameters include temperature, max tokens, tool calling, structured outputs, and provider routing. Use model variants like `:nitro` for speed, `:floor` for cost, or `:free` for free access.
get_key_info
Retrieve information about the currently authenticated API key, including its label, usage, spending limit, and rate limit configuration.
create_api_key
Create a new OpenRouter API key. Optionally set an expiration, spending limit, limit reset interval, BYOK-limit behavior, and workspace. Requires a Management API key.
create_embedding
Generate vector embeddings for text input using OpenRouter's embedding models. Supports single texts or batches. Embeddings capture semantic meaning and can be used for similarity search, clustering, and classification tasks.
update_guardrail
Update an OpenRouter guardrail's name, description, spending limit, provider/model restrictions, content filters, or ZDR settings. Requires a Management API key.
delete_api_key
Delete an OpenRouter API key by hash. This is irreversible and the key immediately stops working. Requires a Management API key.
get_credits
Check your OpenRouter account credits balance and total usage. Credits are deposits used for LLM inference — request costs are deducted from your balance.
get_generation_stats
Retrieve detailed statistics for a specific generation by its ID, including token counts, cost, latency, and provider information. Useful for auditing usage, tracking costs, and debugging individual requests.
delete_guardrail
Delete an OpenRouter guardrail by ID. This is irreversible and removes its restrictions immediately. Requires a Management API key.
list_providers
List OpenRouter upstream model providers and metadata useful for provider routing, privacy review, status checks, and guardrail/provider allowlists.
create_response
Create a response using OpenRouter's OpenResponses-compatible API. Use this for current Responses API workflows with text or multimodal inputs, tools, reasoning settings, provider routing, metadata, and session stickiness.
list_embedding_models
List OpenRouter models available through the embeddings router, including pricing, context length, architecture, and supported metadata.
list_model_endpoints
List the upstream provider endpoints available for a specific OpenRouter model. Use this to compare provider routing options, pricing, context limits, and availability for a model.
update_api_key
Update an OpenRouter API key name, spending limit, limit reset interval, disabled state, or BYOK-limit behavior. Requires a Management API key.
get_api_key
Retrieve metadata for a single OpenRouter API key by hash. Requires a Management API key.
get_guardrail
Retrieve a single OpenRouter guardrail by ID. Requires a Management API key.
Access 400+ AI models from dozens of providers through a single unified API. Send chat completions and Responses API requests with text, images, and PDFs using OpenAI-compatible schemas. Generate structured JSON outputs, perform tool calling, create text embeddings, and route requests with provider preferences, fallbacks, and model variants for speed, cost, or quality. Discover models, embedding models, upstream model endpoints, and providers with pricing and capability metadata. Track generation usage, check credits and key metadata, manage API keys, and configure guardrails for spending limits, model access, provider access, and data privacy policies.
Common questions about connecting Openrouter to AI agents with Metorial.