import * as EventEmitter from 'events';
import EventEmitter__default, { EventEmitter as EventEmitter$1 } from 'events';
import * as axios from 'axios';

type RouterModel = 
/** TheDrummer: Valkyrie 49B V1
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, presence_penalty, frequency_penalty, repetition_penalty, top_k
@context_length 131072
@url https://openrouter.ai/thedrummer/valkyrie-49b-v1
*/
"thedrummer/valkyrie-49b-v1"
/** Anthropic: Claude Opus 4
@capabilities max_tokens, temperature, stop, reasoning, include_reasoning, tools, tool_choice, top_p, top_k
@context_length 200000
@url https://openrouter.ai/anthropic/claude-opus-4
*/
 | "anthropic/claude-opus-4"
/** Anthropic: Claude Sonnet 4
@capabilities max_tokens, temperature, stop, reasoning, include_reasoning, tools, tool_choice, top_p, top_k
@context_length 200000
@url https://openrouter.ai/anthropic/claude-sonnet-4
*/
 | "anthropic/claude-sonnet-4"
/** Mistral: Devstral Small (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/mistralai/devstral-small:free
*/
 | "mistralai/devstral-small:free"
/** Mistral: Devstral Small
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed, repetition_penalty, top_k
@context_length 131072
@url https://openrouter.ai/mistralai/devstral-small
*/
 | "mistralai/devstral-small"
/** Google: Gemma 3n 4B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, response_format
@context_length 8192
@url https://openrouter.ai/google/gemma-3n-e4b-it:free
*/
 | "google/gemma-3n-e4b-it:free"
/** Google: Gemini 2.5 Flash Preview 05-20
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, structured_outputs, response_format, stop, frequency_penalty, presence_penalty, seed
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-flash-preview-05-20
*/
 | "google/gemini-2.5-flash-preview-05-20"
/** Google: Gemini 2.5 Flash Preview 05-20 (thinking)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, structured_outputs, response_format, stop, frequency_penalty, presence_penalty, seed
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-flash-preview-05-20:thinking
*/
 | "google/gemini-2.5-flash-preview-05-20:thinking"
/** OpenAI: Codex Mini
@capabilities tools, tool_choice, max_tokens, reasoning, include_reasoning, structured_outputs, response_format, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs
@context_length 200000
@url https://openrouter.ai/openai/codex-mini
*/
 | "openai/codex-mini"
/** Meta: Llama 3.3 8B Instruct (free)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, structured_outputs, response_format, repetition_penalty, top_k
@context_length 128000
@url https://openrouter.ai/meta-llama/llama-3.3-8b-instruct:free
*/
 | "meta-llama/llama-3.3-8b-instruct:free"
/** Nous: DeepHermes 3 Mistral 24B Preview (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/nousresearch/deephermes-3-mistral-24b-preview:free
*/
 | "nousresearch/deephermes-3-mistral-24b-preview:free"
/** Mistral: Mistral Medium 3
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-medium-3
*/
 | "mistralai/mistral-medium-3"
/** Google: Gemini 2.5 Pro Preview
@capabilities max_tokens, temperature, top_p, tools, tool_choice, stop, seed, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-pro-preview
*/
 | "google/gemini-2.5-pro-preview"
/** Arcee AI: Caller Large
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/arcee-ai/caller-large
*/
 | "arcee-ai/caller-large"
/** Arcee AI: Spotlight
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/arcee-ai/spotlight
*/
 | "arcee-ai/spotlight"
/** Arcee AI: Maestro Reasoning
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/arcee-ai/maestro-reasoning
*/
 | "arcee-ai/maestro-reasoning"
/** Arcee AI: Virtuoso Large
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/arcee-ai/virtuoso-large
*/
 | "arcee-ai/virtuoso-large"
/** Arcee AI: Coder Large
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/arcee-ai/coder-large
*/
 | "arcee-ai/coder-large"
/** Arcee AI: Virtuoso Medium V2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/arcee-ai/virtuoso-medium-v2
*/
 | "arcee-ai/virtuoso-medium-v2"
/** Arcee AI: Arcee Blitz
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/arcee-ai/arcee-blitz
*/
 | "arcee-ai/arcee-blitz"
/** Microsoft: Phi 4 Reasoning Plus (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/microsoft/phi-4-reasoning-plus:free
*/
 | "microsoft/phi-4-reasoning-plus:free"
/** Microsoft: Phi 4 Reasoning Plus
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p
@context_length 32768
@url https://openrouter.ai/microsoft/phi-4-reasoning-plus
*/
 | "microsoft/phi-4-reasoning-plus"
/** Microsoft: Phi 4 Reasoning (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/microsoft/phi-4-reasoning:free
*/
 | "microsoft/phi-4-reasoning:free"
/** Inception: Mercury Coder Small Beta
@capabilities max_tokens, frequency_penalty, presence_penalty, stop
@context_length 32000
@url https://openrouter.ai/inception/mercury-coder-small-beta
*/
 | "inception/mercury-coder-small-beta"
/** OpenGVLab: InternVL3 14B (free)
@capabilities max_tokens, temperature, top_p
@context_length 32000
@url https://openrouter.ai/opengvlab/internvl3-14b:free
*/
 | "opengvlab/internvl3-14b:free"
/** OpenGVLab: InternVL3 2B (free)
@capabilities max_tokens, temperature, top_p
@context_length 32000
@url https://openrouter.ai/opengvlab/internvl3-2b:free
*/
 | "opengvlab/internvl3-2b:free"
/** DeepSeek: DeepSeek Prover V2 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-prover-v2:free
*/
 | "deepseek/deepseek-prover-v2:free"
/** DeepSeek: DeepSeek Prover V2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, response_format
@context_length 131072
@url https://openrouter.ai/deepseek/deepseek-prover-v2
*/
 | "deepseek/deepseek-prover-v2"
/** Meta: Llama Guard 4 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, top_logprobs, logprobs
@context_length 163840
@url https://openrouter.ai/meta-llama/llama-guard-4-12b
*/
 | "meta-llama/llama-guard-4-12b"
/** Qwen: Qwen3 30B A3B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-30b-a3b:free
*/
 | "qwen/qwen3-30b-a3b:free"
/** Qwen: Qwen3 30B A3B
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, response_format, structured_outputs, logit_bias, logprobs, top_logprobs, seed, min_p
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-30b-a3b
*/
 | "qwen/qwen3-30b-a3b"
/** Qwen: Qwen3 8B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-8b:free
*/
 | "qwen/qwen3-8b:free"
/** Qwen: Qwen3 8B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 128000
@url https://openrouter.ai/qwen/qwen3-8b
*/
 | "qwen/qwen3-8b"
/** Qwen: Qwen3 14B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-14b:free
*/
 | "qwen/qwen3-14b:free"
/** Qwen: Qwen3 14B
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, logit_bias, logprobs, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-14b
*/
 | "qwen/qwen3-14b"
/** Qwen: Qwen3 32B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-32b:free
*/
 | "qwen/qwen3-32b:free"
/** Qwen: Qwen3 32B
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, structured_outputs, logprobs, top_logprobs, logit_bias
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-32b
*/
 | "qwen/qwen3-32b"
/** Qwen: Qwen3 235B A22B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-235b-a22b:free
*/
 | "qwen/qwen3-235b-a22b:free"
/** Qwen: Qwen3 235B A22B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, presence_penalty, frequency_penalty, repetition_penalty, top_k, tools, tool_choice, stop, response_format, structured_outputs, logit_bias, logprobs, top_logprobs, seed, min_p
@context_length 40960
@url https://openrouter.ai/qwen/qwen3-235b-a22b
*/
 | "qwen/qwen3-235b-a22b"
/** TNG: DeepSeek R1T Chimera (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 163840
@url https://openrouter.ai/tngtech/deepseek-r1t-chimera:free
*/
 | "tngtech/deepseek-r1t-chimera:free"
/** THUDM: GLM Z1 Rumination 32B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 32000
@url https://openrouter.ai/thudm/glm-z1-rumination-32b
*/
 | "thudm/glm-z1-rumination-32b"
/** Microsoft: MAI DS R1 (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 163840
@url https://openrouter.ai/microsoft/mai-ds-r1:free
*/
 | "microsoft/mai-ds-r1:free"
/** THUDM: GLM Z1 32B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/thudm/glm-z1-32b:free
*/
 | "thudm/glm-z1-32b:free"
/** THUDM: GLM Z1 32B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 32000
@url https://openrouter.ai/thudm/glm-z1-32b
*/
 | "thudm/glm-z1-32b"
/** THUDM: GLM 4 32B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/thudm/glm-4-32b:free
*/
 | "thudm/glm-4-32b:free"
/** THUDM: GLM 4 32B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 32000
@url https://openrouter.ai/thudm/glm-4-32b
*/
 | "thudm/glm-4-32b"
/** Google: Gemini 2.5 Flash Preview 04-17
@capabilities max_tokens, temperature, top_p, tools, tool_choice, stop, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-flash-preview
*/
 | "google/gemini-2.5-flash-preview"
/** Google: Gemini 2.5 Flash Preview 04-17 (thinking)
@capabilities max_tokens, temperature, top_p, tools, tool_choice, stop, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-flash-preview:thinking
*/
 | "google/gemini-2.5-flash-preview:thinking"
/** OpenAI: o4 Mini High
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o4-mini-high
*/
 | "openai/o4-mini-high"
/** OpenAI: o3
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o3
*/
 | "openai/o3"
/** OpenAI: o4 Mini
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o4-mini
*/
 | "openai/o4-mini"
/** Shisa AI: Shisa V2 Llama 3.3 70B  (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/shisa-ai/shisa-v2-llama3.3-70b:free
*/
 | "shisa-ai/shisa-v2-llama3.3-70b:free"
/** Qwen: Qwen2.5 Coder 7B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 32768
@url https://openrouter.ai/qwen/qwen2.5-coder-7b-instruct
*/
 | "qwen/qwen2.5-coder-7b-instruct"
/** OpenAI: GPT-4.1
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 1047576
@url https://openrouter.ai/openai/gpt-4.1
*/
 | "openai/gpt-4.1"
/** OpenAI: GPT-4.1 Mini
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 1047576
@url https://openrouter.ai/openai/gpt-4.1-mini
*/
 | "openai/gpt-4.1-mini"
/** OpenAI: GPT-4.1 Nano
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 1047576
@url https://openrouter.ai/openai/gpt-4.1-nano
*/
 | "openai/gpt-4.1-nano"
/** EleutherAI: Llemma 7b
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 4096
@url https://openrouter.ai/eleutherai/llemma_7b
*/
 | "eleutherai/llemma_7b"
/** AlfredPros: CodeLLaMa 7B Instruct Solidity
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 4096
@url https://openrouter.ai/alfredpros/codellama-7b-instruct-solidity
*/
 | "alfredpros/codellama-7b-instruct-solidity"
/** ArliAI: QwQ 32B RpR v1 (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/arliai/qwq-32b-arliai-rpr-v1:free
*/
 | "arliai/qwq-32b-arliai-rpr-v1:free"
/** Agentica: Deepcoder 14B Preview (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 96000
@url https://openrouter.ai/agentica-org/deepcoder-14b-preview:free
*/
 | "agentica-org/deepcoder-14b-preview:free"
/** Moonshot AI: Kimi VL A3B Thinking (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/moonshotai/kimi-vl-a3b-thinking:free
*/
 | "moonshotai/kimi-vl-a3b-thinking:free"
/** xAI: Grok 3 Mini Beta
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, stop, seed, logprobs, top_logprobs, response_format
@context_length 131072
@url https://openrouter.ai/x-ai/grok-3-mini-beta
*/
 | "x-ai/grok-3-mini-beta"
/** xAI: Grok 3 Beta
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format
@context_length 131072
@url https://openrouter.ai/x-ai/grok-3-beta
*/
 | "x-ai/grok-3-beta"
/** NVIDIA: Llama 3.3 Nemotron Super 49B v1 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/nvidia/llama-3.3-nemotron-super-49b-v1:free
*/
 | "nvidia/llama-3.3-nemotron-super-49b-v1:free"
/** NVIDIA: Llama 3.3 Nemotron Super 49B v1
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 131072
@url https://openrouter.ai/nvidia/llama-3.3-nemotron-super-49b-v1
*/
 | "nvidia/llama-3.3-nemotron-super-49b-v1"
/** NVIDIA: Llama 3.1 Nemotron Ultra 253B v1 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/nvidia/llama-3.1-nemotron-ultra-253b-v1:free
*/
 | "nvidia/llama-3.1-nemotron-ultra-253b-v1:free"
/** Meta: Llama 4 Maverick (free)
@capabilities max_tokens, temperature, top_p, structured_outputs, response_format, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, tools, tool_choice
@context_length 128000
@url https://openrouter.ai/meta-llama/llama-4-maverick:free
*/
 | "meta-llama/llama-4-maverick:free"
/** Meta: Llama 4 Maverick
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, logprobs, top_logprobs, tools, tool_choice, structured_outputs, response_format
@context_length 1048576
@url https://openrouter.ai/meta-llama/llama-4-maverick
*/
 | "meta-llama/llama-4-maverick"
/** Meta: Llama 4 Scout (free)
@capabilities max_tokens, temperature, top_p, structured_outputs, response_format, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, tools, tool_choice
@context_length 200000
@url https://openrouter.ai/meta-llama/llama-4-scout:free
*/
 | "meta-llama/llama-4-scout:free"
/** Meta: Llama 4 Scout
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, response_format, tools, tool_choice, structured_outputs, repetition_penalty, top_k, top_logprobs, logprobs, logit_bias, min_p
@context_length 1048576
@url https://openrouter.ai/meta-llama/llama-4-scout
*/
 | "meta-llama/llama-4-scout"
/** OpenHands LM 32B V0.1
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/all-hands/openhands-lm-32b-v0.1
*/
 | "all-hands/openhands-lm-32b-v0.1"
/** DeepSeek: DeepSeek V3 Base (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-v3-base:free
*/
 | "deepseek/deepseek-v3-base:free"
/** Typhoon2 8B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 8192
@url https://openrouter.ai/scb10x/llama3.1-typhoon2-8b-instruct
*/
 | "scb10x/llama3.1-typhoon2-8b-instruct"
/** Typhoon2 70B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 8192
@url https://openrouter.ai/scb10x/llama3.1-typhoon2-70b-instruct
*/
 | "scb10x/llama3.1-typhoon2-70b-instruct"
/** Qwen: Qwen2.5 VL 3B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 64000
@url https://openrouter.ai/qwen/qwen2.5-vl-3b-instruct:free
*/
 | "qwen/qwen2.5-vl-3b-instruct:free"
/** Google: Gemini 2.5 Pro Experimental
@capabilities max_tokens, temperature, top_p, tools, tool_choice, stop, seed, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.5-pro-exp-03-25
*/
 | "google/gemini-2.5-pro-exp-03-25"
/** Qwen: Qwen2.5 VL 32B Instruct (free)
@capabilities max_tokens, temperature, top_p, seed, response_format, presence_penalty, stop, frequency_penalty, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 8192
@url https://openrouter.ai/qwen/qwen2.5-vl-32b-instruct:free
*/
 | "qwen/qwen2.5-vl-32b-instruct:free"
/** Qwen: Qwen2.5 VL 32B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, response_format, structured_outputs, logit_bias, logprobs, top_logprobs
@context_length 128000
@url https://openrouter.ai/qwen/qwen2.5-vl-32b-instruct
*/
 | "qwen/qwen2.5-vl-32b-instruct"
/** DeepSeek: DeepSeek V3 0324 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, top_a
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-chat-v3-0324:free
*/
 | "deepseek/deepseek-chat-v3-0324:free"
/** DeepSeek: DeepSeek V3 0324
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k, stop, tools, tool_choice, response_format, structured_outputs, logit_bias, logprobs, top_logprobs, seed, min_p
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-chat-v3-0324
*/
 | "deepseek/deepseek-chat-v3-0324"
/** Qwerky 72B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 32768
@url https://openrouter.ai/featherless/qwerky-72b:free
*/
 | "featherless/qwerky-72b:free"
/** OpenAI: o1-pro
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 200000
@url https://openrouter.ai/openai/o1-pro
*/
 | "openai/o1-pro"
/** Mistral: Mistral Small 3.1 24B (free)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 96000
@url https://openrouter.ai/mistralai/mistral-small-3.1-24b-instruct:free
*/
 | "mistralai/mistral-small-3.1-24b-instruct:free"
/** Mistral: Mistral Small 3.1 24B
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k, tools, tool_choice, stop, response_format, structured_outputs, seed, logit_bias, logprobs, top_logprobs
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-small-3.1-24b-instruct
*/
 | "mistralai/mistral-small-3.1-24b-instruct"
/** OlympicCoder 32B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/open-r1/olympiccoder-32b:free
*/
 | "open-r1/olympiccoder-32b:free"
/** Google: Gemma 3 1B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/google/gemma-3-1b-it:free
*/
 | "google/gemma-3-1b-it:free"
/** Google: Gemma 3 4B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, response_format, structured_outputs
@context_length 96000
@url https://openrouter.ai/google/gemma-3-4b-it:free
*/
 | "google/gemma-3-4b-it:free"
/** Google: Gemma 3 4B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p
@context_length 131072
@url https://openrouter.ai/google/gemma-3-4b-it
*/
 | "google/gemma-3-4b-it"
/** AI21: Jamba 1.6 Large
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop
@context_length 256000
@url https://openrouter.ai/ai21/jamba-1.6-large
*/
 | "ai21/jamba-1.6-large"
/** AI21: Jamba Mini 1.6
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop
@context_length 256000
@url https://openrouter.ai/ai21/jamba-1.6-mini
*/
 | "ai21/jamba-1.6-mini"
/** Google: Gemma 3 12B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, response_format, structured_outputs
@context_length 96000
@url https://openrouter.ai/google/gemma-3-12b-it:free
*/
 | "google/gemma-3-12b-it:free"
/** Google: Gemma 3 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p
@context_length 131072
@url https://openrouter.ai/google/gemma-3-12b-it
*/
 | "google/gemma-3-12b-it"
/** Cohere: Command A
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 256000
@url https://openrouter.ai/cohere/command-a
*/
 | "cohere/command-a"
/** OpenAI: GPT-4o-mini Search Preview
@capabilities web_search_options, max_tokens, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-mini-search-preview
*/
 | "openai/gpt-4o-mini-search-preview"
/** OpenAI: GPT-4o Search Preview
@capabilities web_search_options, max_tokens, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-search-preview
*/
 | "openai/gpt-4o-search-preview"
/** Reka: Flash 3 (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/rekaai/reka-flash-3:free
*/
 | "rekaai/reka-flash-3:free"
/** Google: Gemma 3 27B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, response_format, structured_outputs
@context_length 96000
@url https://openrouter.ai/google/gemma-3-27b-it:free
*/
 | "google/gemma-3-27b-it:free"
/** Google: Gemma 3 27B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, logit_bias, top_logprobs, logprobs
@context_length 131072
@url https://openrouter.ai/google/gemma-3-27b-it
*/
 | "google/gemma-3-27b-it"
/** TheDrummer: Anubis Pro 105B V1
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k
@context_length 131072
@url https://openrouter.ai/thedrummer/anubis-pro-105b-v1
*/
 | "thedrummer/anubis-pro-105b-v1"
/** TheDrummer: Skyfall 36B V2
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k
@context_length 32768
@url https://openrouter.ai/thedrummer/skyfall-36b-v2
*/
 | "thedrummer/skyfall-36b-v2"
/** Microsoft: Phi 4 Multimodal Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p
@context_length 131072
@url https://openrouter.ai/microsoft/phi-4-multimodal-instruct
*/
 | "microsoft/phi-4-multimodal-instruct"
/** Perplexity: Sonar Reasoning Pro
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, web_search_options, top_k, frequency_penalty, presence_penalty
@context_length 128000
@url https://openrouter.ai/perplexity/sonar-reasoning-pro
*/
 | "perplexity/sonar-reasoning-pro"
/** Perplexity: Sonar Pro
@capabilities max_tokens, temperature, top_p, web_search_options, top_k, frequency_penalty, presence_penalty
@context_length 200000
@url https://openrouter.ai/perplexity/sonar-pro
*/
 | "perplexity/sonar-pro"
/** Perplexity: Sonar Deep Research
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, top_k, frequency_penalty, presence_penalty
@context_length 128000
@url https://openrouter.ai/perplexity/sonar-deep-research
*/
 | "perplexity/sonar-deep-research"
/** DeepSeek: DeepSeek R1 Zero (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 128000
@url https://openrouter.ai/deepseek/deepseek-r1-zero:free
*/
 | "deepseek/deepseek-r1-zero:free"
/** Qwen: QwQ 32B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 40000
@url https://openrouter.ai/qwen/qwq-32b:free
*/
 | "qwen/qwq-32b:free"
/** Qwen: QwQ 32B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, logprobs, top_logprobs, seed, tools, tool_choice, structured_outputs
@context_length 131072
@url https://openrouter.ai/qwen/qwq-32b
*/
 | "qwen/qwq-32b"
/** Moonshot AI: Moonlight 16B A3B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 8192
@url https://openrouter.ai/moonshotai/moonlight-16b-a3b-instruct:free
*/
 | "moonshotai/moonlight-16b-a3b-instruct:free"
/** Nous: DeepHermes 3 Llama 3 8B Preview (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/nousresearch/deephermes-3-llama-3-8b-preview:free
*/
 | "nousresearch/deephermes-3-llama-3-8b-preview:free"
/** OpenAI: GPT-4.5 (Preview)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4.5-preview
*/
 | "openai/gpt-4.5-preview"
/** Google: Gemini 2.0 Flash Lite
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.0-flash-lite-001
*/
 | "google/gemini-2.0-flash-lite-001"
/** Anthropic: Claude 3.7 Sonnet
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.7-sonnet
*/
 | "anthropic/claude-3.7-sonnet"
/** Anthropic: Claude 3.7 Sonnet (thinking)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, reasoning, include_reasoning, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.7-sonnet:thinking
*/
 | "anthropic/claude-3.7-sonnet:thinking"
/** Anthropic: Claude 3.7 Sonnet (self-moderated)
@capabilities max_tokens, temperature, stop, reasoning, include_reasoning, tools, tool_choice
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.7-sonnet:beta
*/
 | "anthropic/claude-3.7-sonnet:beta"
/** Perplexity: R1 1776
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, top_k, frequency_penalty, presence_penalty, stop, repetition_penalty, logit_bias, min_p, response_format
@context_length 128000
@url https://openrouter.ai/perplexity/r1-1776
*/
 | "perplexity/r1-1776"
/** Mistral: Saba
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed, top_logprobs, logprobs, logit_bias
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-saba
*/
 | "mistralai/mistral-saba"
/** Dolphin3.0 R1 Mistral 24B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/cognitivecomputations/dolphin3.0-r1-mistral-24b:free
*/
 | "cognitivecomputations/dolphin3.0-r1-mistral-24b:free"
/** Dolphin3.0 Mistral 24B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/cognitivecomputations/dolphin3.0-mistral-24b:free
*/
 | "cognitivecomputations/dolphin3.0-mistral-24b:free"
/** Llama Guard 3 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, top_logprobs, logprobs, seed
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-guard-3-8b
*/
 | "meta-llama/llama-guard-3-8b"
/** OpenAI: o3 Mini High
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o3-mini-high
*/
 | "openai/o3-mini-high"
/** DeepSeek: R1 Distill Llama 8B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 32000
@url https://openrouter.ai/deepseek/deepseek-r1-distill-llama-8b
*/
 | "deepseek/deepseek-r1-distill-llama-8b"
/** Google: Gemini 2.0 Flash
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, response_format, structured_outputs
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.0-flash-001
*/
 | "google/gemini-2.0-flash-001"
/** Qwen: Qwen VL Plus
@capabilities max_tokens, temperature, top_p, seed, response_format, presence_penalty
@context_length 7500
@url https://openrouter.ai/qwen/qwen-vl-plus
*/
 | "qwen/qwen-vl-plus"
/** AionLabs: Aion-1.0
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning
@context_length 131072
@url https://openrouter.ai/aion-labs/aion-1.0
*/
 | "aion-labs/aion-1.0"
/** AionLabs: Aion-1.0-Mini
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning
@context_length 131072
@url https://openrouter.ai/aion-labs/aion-1.0-mini
*/
 | "aion-labs/aion-1.0-mini"
/** AionLabs: Aion-RP 1.0 (8B)
@capabilities max_tokens, temperature, top_p
@context_length 32768
@url https://openrouter.ai/aion-labs/aion-rp-llama-3.1-8b
*/
 | "aion-labs/aion-rp-llama-3.1-8b"
/** Qwen: Qwen VL Max
@capabilities max_tokens, temperature, top_p, seed, response_format, presence_penalty
@context_length 7500
@url https://openrouter.ai/qwen/qwen-vl-max
*/
 | "qwen/qwen-vl-max"
/** Qwen: Qwen-Turbo
@capabilities tools, tool_choice, max_tokens, temperature, top_p, seed, response_format, presence_penalty
@context_length 1000000
@url https://openrouter.ai/qwen/qwen-turbo
*/
 | "qwen/qwen-turbo"
/** Qwen: Qwen2.5 VL 72B Instruct (free)
@capabilities max_tokens, temperature, top_p, seed, response_format, presence_penalty, stop, frequency_penalty, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/qwen/qwen2.5-vl-72b-instruct:free
*/
 | "qwen/qwen2.5-vl-72b-instruct:free"
/** Qwen: Qwen2.5 VL 72B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs
@context_length 32000
@url https://openrouter.ai/qwen/qwen2.5-vl-72b-instruct
*/
 | "qwen/qwen2.5-vl-72b-instruct"
/** Qwen: Qwen-Plus
@capabilities tools, tool_choice, max_tokens, temperature, top_p, seed, response_format, presence_penalty
@context_length 131072
@url https://openrouter.ai/qwen/qwen-plus
*/
 | "qwen/qwen-plus"
/** Qwen: Qwen-Max
@capabilities tools, tool_choice, max_tokens, temperature, top_p, seed, response_format, presence_penalty
@context_length 32768
@url https://openrouter.ai/qwen/qwen-max
*/
 | "qwen/qwen-max"
/** OpenAI: o3 Mini
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o3-mini
*/
 | "openai/o3-mini"
/** DeepSeek: R1 Distill Qwen 1.5B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/deepseek/deepseek-r1-distill-qwen-1.5b
*/
 | "deepseek/deepseek-r1-distill-qwen-1.5b"
/** Mistral: Mistral Small 3 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-small-24b-instruct-2501:free
*/
 | "mistralai/mistral-small-24b-instruct-2501:free"
/** Mistral: Mistral Small 3
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, tools, tool_choice, structured_outputs, logit_bias, logprobs
@context_length 28000
@url https://openrouter.ai/mistralai/mistral-small-24b-instruct-2501
*/
 | "mistralai/mistral-small-24b-instruct-2501"
/** DeepSeek: R1 Distill Qwen 32B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning
@context_length 16000
@url https://openrouter.ai/deepseek/deepseek-r1-distill-qwen-32b:free
*/
 | "deepseek/deepseek-r1-distill-qwen-32b:free"
/** DeepSeek: R1 Distill Qwen 32B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, logit_bias
@context_length 131072
@url https://openrouter.ai/deepseek/deepseek-r1-distill-qwen-32b
*/
 | "deepseek/deepseek-r1-distill-qwen-32b"
/** DeepSeek: R1 Distill Qwen 14B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 64000
@url https://openrouter.ai/deepseek/deepseek-r1-distill-qwen-14b:free
*/
 | "deepseek/deepseek-r1-distill-qwen-14b:free"
/** DeepSeek: R1 Distill Qwen 14B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed
@context_length 64000
@url https://openrouter.ai/deepseek/deepseek-r1-distill-qwen-14b
*/
 | "deepseek/deepseek-r1-distill-qwen-14b"
/** Perplexity: Sonar Reasoning
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, web_search_options, top_k, frequency_penalty, presence_penalty
@context_length 127000
@url https://openrouter.ai/perplexity/sonar-reasoning
*/
 | "perplexity/sonar-reasoning"
/** Perplexity: Sonar
@capabilities max_tokens, temperature, top_p, web_search_options, top_k, frequency_penalty, presence_penalty
@context_length 127072
@url https://openrouter.ai/perplexity/sonar
*/
 | "perplexity/sonar"
/** Liquid: LFM 7B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, logprobs, top_logprobs, response_format
@context_length 32768
@url https://openrouter.ai/liquid/lfm-7b
*/
 | "liquid/lfm-7b"
/** Liquid: LFM 3B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty
@context_length 32768
@url https://openrouter.ai/liquid/lfm-3b
*/
 | "liquid/lfm-3b"
/** DeepSeek: R1 Distill Llama 70B (free)
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs
@context_length 8192
@url https://openrouter.ai/deepseek/deepseek-r1-distill-llama-70b:free
*/
 | "deepseek/deepseek-r1-distill-llama-70b:free"
/** DeepSeek: R1 Distill Llama 70B
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, top_k, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, min_p, repetition_penalty, tools, tool_choice, response_format, structured_outputs
@context_length 131072
@url https://openrouter.ai/deepseek/deepseek-r1-distill-llama-70b
*/
 | "deepseek/deepseek-r1-distill-llama-70b"
/** DeepSeek: R1 (free)
@capabilities max_tokens, reasoning, include_reasoning, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, top_a, logprobs
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-r1:free
*/
 | "deepseek/deepseek-r1:free"
/** DeepSeek: R1
@capabilities max_tokens, temperature, top_p, reasoning, include_reasoning, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs, repetition_penalty, response_format, structured_outputs, min_p, tools, tool_choice
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-r1
*/
 | "deepseek/deepseek-r1"
/** MiniMax: MiniMax-01
@capabilities max_tokens, temperature, top_p
@context_length 1000192
@url https://openrouter.ai/minimax/minimax-01
*/
 | "minimax/minimax-01"
/** Mistral: Codestral 2501
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 262144
@url https://openrouter.ai/mistralai/codestral-2501
*/
 | "mistralai/codestral-2501"
/** Microsoft: Phi 4
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs, repetition_penalty, response_format, min_p
@context_length 16384
@url https://openrouter.ai/microsoft/phi-4
*/
 | "microsoft/phi-4"
/** DeepSeek: DeepSeek V3 (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs, top_a
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-chat:free
*/
 | "deepseek/deepseek-chat:free"
/** DeepSeek: DeepSeek V3
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, logit_bias, logprobs, top_logprobs, tools, tool_choice, structured_outputs
@context_length 163840
@url https://openrouter.ai/deepseek/deepseek-chat
*/
 | "deepseek/deepseek-chat"
/** Sao10K: Llama 3.3 Euryale 70B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p, logit_bias
@context_length 131072
@url https://openrouter.ai/sao10k/l3.3-euryale-70b
*/
 | "sao10k/l3.3-euryale-70b"
/** OpenAI: o1
@capabilities tools, tool_choice, seed, max_tokens, response_format, structured_outputs
@context_length 200000
@url https://openrouter.ai/openai/o1
*/
 | "openai/o1"
/** EVA Llama 3.33 70B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/eva-unit-01/eva-llama-3.33-70b
*/
 | "eva-unit-01/eva-llama-3.33-70b"
/** xAI: Grok 2 Vision 1212
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format
@context_length 32768
@url https://openrouter.ai/x-ai/grok-2-vision-1212
*/
 | "x-ai/grok-2-vision-1212"
/** xAI: Grok 2 1212
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format
@context_length 131072
@url https://openrouter.ai/x-ai/grok-2-1212
*/
 | "x-ai/grok-2-1212"
/** Cohere: Command R7B (12-2024)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r7b-12-2024
*/
 | "cohere/command-r7b-12-2024"
/** Google: Gemini 2.0 Flash Experimental (free)
@capabilities max_tokens, temperature, top_p, stop
@context_length 1048576
@url https://openrouter.ai/google/gemini-2.0-flash-exp:free
*/
 | "google/gemini-2.0-flash-exp:free"
/** Meta: Llama 3.3 70B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, tools, tool_choice, repetition_penalty, top_k, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.3-70b-instruct:free
*/
 | "meta-llama/llama-3.3-70b-instruct:free"
/** Meta: Llama 3.3 70B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, min_p, repetition_penalty, structured_outputs
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.3-70b-instruct
*/
 | "meta-llama/llama-3.3-70b-instruct"
/** Amazon: Nova Lite 1.0
@capabilities tools, max_tokens, temperature, top_p, top_k, stop
@context_length 300000
@url https://openrouter.ai/amazon/nova-lite-v1
*/
 | "amazon/nova-lite-v1"
/** Amazon: Nova Micro 1.0
@capabilities tools, max_tokens, temperature, top_p, top_k, stop
@context_length 128000
@url https://openrouter.ai/amazon/nova-micro-v1
*/
 | "amazon/nova-micro-v1"
/** Amazon: Nova Pro 1.0
@capabilities tools, max_tokens, temperature, top_p, top_k, stop
@context_length 300000
@url https://openrouter.ai/amazon/nova-pro-v1
*/
 | "amazon/nova-pro-v1"
/** Qwen: QwQ 32B Preview
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, logprobs, top_logprobs, seed, logit_bias, top_k, min_p, repetition_penalty
@context_length 32768
@url https://openrouter.ai/qwen/qwq-32b-preview
*/
 | "qwen/qwq-32b-preview"
/** EVA Qwen2.5 72B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/eva-unit-01/eva-qwen-2.5-72b
*/
 | "eva-unit-01/eva-qwen-2.5-72b"
/** OpenAI: GPT-4o (2024-11-20)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-2024-11-20
*/
 | "openai/gpt-4o-2024-11-20"
/** Mistral Large 2411
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-large-2411
*/
 | "mistralai/mistral-large-2411"
/** Mistral Large 2407
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-large-2407
*/
 | "mistralai/mistral-large-2407"
/** Mistral: Pixtral Large 2411
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 131072
@url https://openrouter.ai/mistralai/pixtral-large-2411
*/
 | "mistralai/pixtral-large-2411"
/** xAI: Grok Vision Beta
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format
@context_length 8192
@url https://openrouter.ai/x-ai/grok-vision-beta
*/
 | "x-ai/grok-vision-beta"
/** Infermatic: Mistral Nemo Inferor 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/infermatic/mn-inferor-12b
*/
 | "infermatic/mn-inferor-12b"
/** Qwen2.5 Coder 32B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-coder-32b-instruct:free
*/
 | "qwen/qwen-2.5-coder-32b-instruct:free"
/** Qwen2.5 Coder 32B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs, top_a
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-coder-32b-instruct
*/
 | "qwen/qwen-2.5-coder-32b-instruct"
/** SorcererLM 8x22B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed
@context_length 16000
@url https://openrouter.ai/raifle/sorcererlm-8x22b
*/
 | "raifle/sorcererlm-8x22b"
/** EVA Qwen2.5 32B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/eva-unit-01/eva-qwen-2.5-32b
*/
 | "eva-unit-01/eva-qwen-2.5-32b"
/** Unslopnemo 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, logprobs
@context_length 32000
@url https://openrouter.ai/thedrummer/unslopnemo-12b
*/
 | "thedrummer/unslopnemo-12b"
/** Anthropic: Claude 3.5 Haiku (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-haiku:beta
*/
 | "anthropic/claude-3.5-haiku:beta"
/** Anthropic: Claude 3.5 Haiku
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-haiku
*/
 | "anthropic/claude-3.5-haiku"
/** Anthropic: Claude 3.5 Haiku (2024-10-22) (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-haiku-20241022:beta
*/
 | "anthropic/claude-3.5-haiku-20241022:beta"
/** Anthropic: Claude 3.5 Haiku (2024-10-22)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-haiku-20241022
*/
 | "anthropic/claude-3.5-haiku-20241022"
/** NeverSleep: Lumimaid v0.2 70B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 16384
@url https://openrouter.ai/neversleep/llama-3.1-lumimaid-70b
*/
 | "neversleep/llama-3.1-lumimaid-70b"
/** Magnum v4 72B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed, logit_bias, top_a
@context_length 16384
@url https://openrouter.ai/anthracite-org/magnum-v4-72b
*/
 | "anthracite-org/magnum-v4-72b"
/** Anthropic: Claude 3.5 Sonnet (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-sonnet:beta
*/
 | "anthropic/claude-3.5-sonnet:beta"
/** Anthropic: Claude 3.5 Sonnet
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-sonnet
*/
 | "anthropic/claude-3.5-sonnet"
/** xAI: Grok Beta
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logprobs, top_logprobs, response_format
@context_length 131072
@url https://openrouter.ai/x-ai/grok-beta
*/
 | "x-ai/grok-beta"
/** Mistral: Ministral 8B
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 128000
@url https://openrouter.ai/mistralai/ministral-8b
*/
 | "mistralai/ministral-8b"
/** Mistral: Ministral 3B
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 131072
@url https://openrouter.ai/mistralai/ministral-3b
*/
 | "mistralai/ministral-3b"
/** Qwen2.5 7B Instruct (free)
@capabilities max_tokens, temperature, top_p
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-7b-instruct:free
*/
 | "qwen/qwen-2.5-7b-instruct:free"
/** Qwen2.5 7B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, structured_outputs, seed
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-7b-instruct
*/
 | "qwen/qwen-2.5-7b-instruct"
/** NVIDIA: Llama 3.1 Nemotron 70B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, repetition_penalty, min_p
@context_length 131072
@url https://openrouter.ai/nvidia/llama-3.1-nemotron-70b-instruct
*/
 | "nvidia/llama-3.1-nemotron-70b-instruct"
/** Inflection: Inflection 3 Productivity
@capabilities max_tokens, temperature, top_p, stop
@context_length 8000
@url https://openrouter.ai/inflection/inflection-3-productivity
*/
 | "inflection/inflection-3-productivity"
/** Inflection: Inflection 3 Pi
@capabilities max_tokens, temperature, top_p, stop
@context_length 8000
@url https://openrouter.ai/inflection/inflection-3-pi
*/
 | "inflection/inflection-3-pi"
/** Google: Gemini 1.5 Flash 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, tools, tool_choice, seed, response_format, structured_outputs
@context_length 1000000
@url https://openrouter.ai/google/gemini-flash-1.5-8b
*/
 | "google/gemini-flash-1.5-8b"
/** Rocinante 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed, logit_bias
@context_length 32768
@url https://openrouter.ai/thedrummer/rocinante-12b
*/
 | "thedrummer/rocinante-12b"
/** Magnum v2 72B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed
@context_length 32768
@url https://openrouter.ai/anthracite-org/magnum-v2-72b
*/
 | "anthracite-org/magnum-v2-72b"
/** Liquid: LFM 40B MoE
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, logprobs, top_logprobs, response_format
@context_length 32768
@url https://openrouter.ai/liquid/lfm-40b
*/
 | "liquid/lfm-40b"
/** Meta: Llama 3.2 3B Instruct (free)
@capabilities max_tokens, temperature, top_p
@context_length 20000
@url https://openrouter.ai/meta-llama/llama-3.2-3b-instruct:free
*/
 | "meta-llama/llama-3.2-3b-instruct:free"
/** Meta: Llama 3.2 3B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, min_p, repetition_penalty
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-3b-instruct
*/
 | "meta-llama/llama-3.2-3b-instruct"
/** Meta: Llama 3.2 1B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-1b-instruct:free
*/
 | "meta-llama/llama-3.2-1b-instruct:free"
/** Meta: Llama 3.2 1B Instruct
@capabilities max_tokens, temperature, top_p, top_k, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, seed, min_p, logit_bias, top_logprobs, logprobs
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-1b-instruct
*/
 | "meta-llama/llama-3.2-1b-instruct"
/** Meta: Llama 3.2 90B Vision Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-90b-vision-instruct
*/
 | "meta-llama/llama-3.2-90b-vision-instruct"
/** Meta: Llama 3.2 11B Vision Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-11b-vision-instruct:free
*/
 | "meta-llama/llama-3.2-11b-vision-instruct:free"
/** Meta: Llama 3.2 11B Vision Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, response_format, top_logprobs, tools, tool_choice, logprobs
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.2-11b-vision-instruct
*/
 | "meta-llama/llama-3.2-11b-vision-instruct"
/** Qwen2.5 72B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-72b-instruct:free
*/
 | "qwen/qwen-2.5-72b-instruct:free"
/** Qwen2.5 72B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, response_format, structured_outputs, logit_bias, logprobs, top_logprobs, seed, min_p
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-72b-instruct
*/
 | "qwen/qwen-2.5-72b-instruct"
/** NeverSleep: Lumimaid v0.2 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed, logit_bias, top_a
@context_length 32768
@url https://openrouter.ai/neversleep/llama-3.1-lumimaid-8b
*/
 | "neversleep/llama-3.1-lumimaid-8b"
/** OpenAI: o1-preview
@capabilities seed, max_tokens
@context_length 128000
@url https://openrouter.ai/openai/o1-preview
*/
 | "openai/o1-preview"
/** OpenAI: o1-preview (2024-09-12)
@capabilities seed, max_tokens
@context_length 128000
@url https://openrouter.ai/openai/o1-preview-2024-09-12
*/
 | "openai/o1-preview-2024-09-12"
/** OpenAI: o1-mini
@capabilities seed, max_tokens
@context_length 128000
@url https://openrouter.ai/openai/o1-mini
*/
 | "openai/o1-mini"
/** OpenAI: o1-mini (2024-09-12)
@capabilities seed, max_tokens
@context_length 128000
@url https://openrouter.ai/openai/o1-mini-2024-09-12
*/
 | "openai/o1-mini-2024-09-12"
/** Mistral: Pixtral 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, logprobs, top_logprobs, seed, logit_bias, top_k, min_p, repetition_penalty, tools, tool_choice, response_format, structured_outputs
@context_length 32768
@url https://openrouter.ai/mistralai/pixtral-12b
*/
 | "mistralai/pixtral-12b"
/** Cohere: Command R+ (08-2024)
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r-plus-08-2024
*/
 | "cohere/command-r-plus-08-2024"
/** Cohere: Command R (08-2024)
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r-08-2024
*/
 | "cohere/command-r-08-2024"
/** Qwen: Qwen2.5-VL 7B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-vl-7b-instruct:free
*/
 | "qwen/qwen-2.5-vl-7b-instruct:free"
/** Qwen: Qwen2.5-VL 7B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, logprobs, top_logprobs, min_p, seed
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2.5-vl-7b-instruct
*/
 | "qwen/qwen-2.5-vl-7b-instruct"
/** Sao10K: Llama 3.1 Euryale 70B v2.2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, response_format
@context_length 131072
@url https://openrouter.ai/sao10k/l3.1-euryale-70b
*/
 | "sao10k/l3.1-euryale-70b"
/** Microsoft: Phi-3.5 Mini 128K Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 131072
@url https://openrouter.ai/microsoft/phi-3.5-mini-128k-instruct
*/
 | "microsoft/phi-3.5-mini-128k-instruct"
/** Nous: Hermes 3 70B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, min_p, repetition_penalty, tools, tool_choice
@context_length 131072
@url https://openrouter.ai/nousresearch/hermes-3-llama-3.1-70b
*/
 | "nousresearch/hermes-3-llama-3.1-70b"
/** Nous: Hermes 3 405B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, repetition_penalty, min_p
@context_length 131072
@url https://openrouter.ai/nousresearch/hermes-3-llama-3.1-405b
*/
 | "nousresearch/hermes-3-llama-3.1-405b"
/** OpenAI: ChatGPT-4o
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/chatgpt-4o-latest
*/
 | "openai/chatgpt-4o-latest"
/** Sao10K: Llama 3 8B Lunaris
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, response_format
@context_length 8192
@url https://openrouter.ai/sao10k/l3-lunaris-8b
*/
 | "sao10k/l3-lunaris-8b"
/** Aetherwiing: Starcannon 12B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/aetherwiing/mn-starcannon-12b
*/
 | "aetherwiing/mn-starcannon-12b"
/** OpenAI: GPT-4o (2024-08-06)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-2024-08-06
*/
 | "openai/gpt-4o-2024-08-06"
/** Meta: Llama 3.1 405B (base) (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 64000
@url https://openrouter.ai/meta-llama/llama-3.1-405b:free
*/
 | "meta-llama/llama-3.1-405b:free"
/** Meta: Llama 3.1 405B (base)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, logprobs, top_logprobs, seed, logit_bias, top_k, min_p, repetition_penalty
@context_length 32768
@url https://openrouter.ai/meta-llama/llama-3.1-405b
*/
 | "meta-llama/llama-3.1-405b"
/** Mistral Nemo 12B Celeste
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/nothingiisreal/mn-celeste-12b
*/
 | "nothingiisreal/mn-celeste-12b"
/** Perplexity: Llama 3.1 Sonar 8B Online
@capabilities max_tokens, temperature, top_p, top_k, frequency_penalty, presence_penalty
@context_length 127072
@url https://openrouter.ai/perplexity/llama-3.1-sonar-small-128k-online
*/
 | "perplexity/llama-3.1-sonar-small-128k-online"
/** Perplexity: Llama 3.1 Sonar 70B Online
@capabilities max_tokens, temperature, top_p, top_k, frequency_penalty, presence_penalty
@context_length 127072
@url https://openrouter.ai/perplexity/llama-3.1-sonar-large-128k-online
*/
 | "perplexity/llama-3.1-sonar-large-128k-online"
/** Meta: Llama 3.1 8B Instruct (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.1-8b-instruct:free
*/
 | "meta-llama/llama-3.1-8b-instruct:free"
/** Meta: Llama 3.1 8B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, repetition_penalty, structured_outputs, min_p
@context_length 16384
@url https://openrouter.ai/meta-llama/llama-3.1-8b-instruct
*/
 | "meta-llama/llama-3.1-8b-instruct"
/** Meta: Llama 3.1 405B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, response_format, structured_outputs, logit_bias, logprobs, top_logprobs, min_p, seed
@context_length 32768
@url https://openrouter.ai/meta-llama/llama-3.1-405b-instruct
*/
 | "meta-llama/llama-3.1-405b-instruct"
/** Meta: Llama 3.1 70B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs, structured_outputs
@context_length 131072
@url https://openrouter.ai/meta-llama/llama-3.1-70b-instruct
*/
 | "meta-llama/llama-3.1-70b-instruct"
/** Mistral: Codestral Mamba
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, seed
@context_length 262144
@url https://openrouter.ai/mistralai/codestral-mamba
*/
 | "mistralai/codestral-mamba"
/** Mistral: Mistral Nemo (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-nemo:free
*/
 | "mistralai/mistral-nemo:free"
/** Mistral: Mistral Nemo
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs, tools, tool_choice, response_format, structured_outputs, repetition_penalty, min_p
@context_length 131072
@url https://openrouter.ai/mistralai/mistral-nemo
*/
 | "mistralai/mistral-nemo"
/** OpenAI: GPT-4o-mini
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs, tools, tool_choice
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-mini
*/
 | "openai/gpt-4o-mini"
/** OpenAI: GPT-4o-mini (2024-07-18)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-mini-2024-07-18
*/
 | "openai/gpt-4o-mini-2024-07-18"
/** Google: Gemma 2 27B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs
@context_length 8192
@url https://openrouter.ai/google/gemma-2-27b-it
*/
 | "google/gemma-2-27b-it"
/** Magnum 72B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 16384
@url https://openrouter.ai/alpindale/magnum-72b
*/
 | "alpindale/magnum-72b"
/** Google: Gemma 2 9B (free)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logprobs, logit_bias, top_logprobs
@context_length 8192
@url https://openrouter.ai/google/gemma-2-9b-it:free
*/
 | "google/gemma-2-9b-it:free"
/** Google: Gemma 2 9B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias, response_format, top_logprobs, logprobs
@context_length 8192
@url https://openrouter.ai/google/gemma-2-9b-it
*/
 | "google/gemma-2-9b-it"
/** 01.AI: Yi Large
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, response_format, structured_outputs, logit_bias, logprobs, top_logprobs
@context_length 32768
@url https://openrouter.ai/01-ai/yi-large
*/
 | "01-ai/yi-large"
/** Anthropic: Claude 3.5 Sonnet (2024-06-20) (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-sonnet-20240620:beta
*/
 | "anthropic/claude-3.5-sonnet-20240620:beta"
/** Anthropic: Claude 3.5 Sonnet (2024-06-20)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3.5-sonnet-20240620
*/
 | "anthropic/claude-3.5-sonnet-20240620"
/** Sao10k: Llama 3 Euryale 70B v2.1
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 8192
@url https://openrouter.ai/sao10k/l3-euryale-70b
*/
 | "sao10k/l3-euryale-70b"
/** Dolphin 2.9.2 Mixtral 8x22B 🐬
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 16000
@url https://openrouter.ai/cognitivecomputations/dolphin-mixtral-8x22b
*/
 | "cognitivecomputations/dolphin-mixtral-8x22b"
/** Qwen 2 72B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/qwen/qwen-2-72b-instruct
*/
 | "qwen/qwen-2-72b-instruct"
/** Mistral: Mistral 7B Instruct (free)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, response_format, top_k, seed, min_p
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-7b-instruct:free
*/
 | "mistralai/mistral-7b-instruct:free"
/** Mistral: Mistral 7B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, tools, tool_choice, structured_outputs
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-7b-instruct
*/
 | "mistralai/mistral-7b-instruct"
/** NousResearch: Hermes 2 Pro - Llama-3 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, top_k, min_p, repetition_penalty
@context_length 131072
@url https://openrouter.ai/nousresearch/hermes-2-pro-llama-3-8b
*/
 | "nousresearch/hermes-2-pro-llama-3-8b"
/** Mistral: Mistral 7B Instruct v0.3
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, tools, tool_choice, logprobs, structured_outputs
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-7b-instruct-v0.3
*/
 | "mistralai/mistral-7b-instruct-v0.3"
/** Microsoft: Phi-3 Mini 128K Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p
@context_length 128000
@url https://openrouter.ai/microsoft/phi-3-mini-128k-instruct
*/
 | "microsoft/phi-3-mini-128k-instruct"
/** Microsoft: Phi-3 Medium 128K Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 131072
@url https://openrouter.ai/microsoft/phi-3-medium-128k-instruct
*/
 | "microsoft/phi-3-medium-128k-instruct"
/** NeverSleep: Llama 3 Lumimaid 70B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 8192
@url https://openrouter.ai/neversleep/llama-3-lumimaid-70b
*/
 | "neversleep/llama-3-lumimaid-70b"
/** DeepSeek-Coder-V2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 128000
@url https://openrouter.ai/deepseek/deepseek-coder
*/
 | "deepseek/deepseek-coder"
/** Google: Gemini 1.5 Flash
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, tools, tool_choice, seed, response_format, structured_outputs
@context_length 1000000
@url https://openrouter.ai/google/gemini-flash-1.5
*/
 | "google/gemini-flash-1.5"
/** OpenAI: GPT-4o
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o
*/
 | "openai/gpt-4o"
/** OpenAI: GPT-4o (extended)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o:extended
*/
 | "openai/gpt-4o:extended"
/** Meta: LlamaGuard 2 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 8192
@url https://openrouter.ai/meta-llama/llama-guard-2-8b
*/
 | "meta-llama/llama-guard-2-8b"
/** OpenAI: GPT-4o (2024-05-13)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, web_search_options, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4o-2024-05-13
*/
 | "openai/gpt-4o-2024-05-13"
/** OLMo 7B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, logit_bias, logprobs, top_logprobs
@context_length 2048
@url https://openrouter.ai/allenai/olmo-7b-instruct
*/
 | "allenai/olmo-7b-instruct"
/** NeverSleep: Llama 3 Lumimaid 8B (extended)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 24576
@url https://openrouter.ai/neversleep/llama-3-lumimaid-8b:extended
*/
 | "neversleep/llama-3-lumimaid-8b:extended"
/** NeverSleep: Llama 3 Lumimaid 8B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed, logit_bias, top_a
@context_length 24576
@url https://openrouter.ai/neversleep/llama-3-lumimaid-8b
*/
 | "neversleep/llama-3-lumimaid-8b"
/** Fimbulvetr 11B v2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 4096
@url https://openrouter.ai/sao10k/fimbulvetr-11b-v2
*/
 | "sao10k/fimbulvetr-11b-v2"
/** Meta: Llama 3 8B Instruct
@capabilities max_tokens, temperature, top_p, top_k, seed, repetition_penalty, frequency_penalty, presence_penalty, stop, min_p, logit_bias, tools, tool_choice, response_format, top_logprobs, logprobs, top_a
@context_length 8192
@url https://openrouter.ai/meta-llama/llama-3-8b-instruct
*/
 | "meta-llama/llama-3-8b-instruct"
/** Meta: Llama 3 70B Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, top_logprobs, logprobs, seed, tools, tool_choice
@context_length 8192
@url https://openrouter.ai/meta-llama/llama-3-70b-instruct
*/
 | "meta-llama/llama-3-70b-instruct"
/** Mistral: Mixtral 8x22B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed, top_k, repetition_penalty, logit_bias, logprobs, top_logprobs
@context_length 65536
@url https://openrouter.ai/mistralai/mixtral-8x22b-instruct
*/
 | "mistralai/mixtral-8x22b-instruct"
/** WizardLM-2 8x22B
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k, stop, seed, min_p, logit_bias, response_format
@context_length 65536
@url https://openrouter.ai/microsoft/wizardlm-2-8x22b
*/
 | "microsoft/wizardlm-2-8x22b"
/** Google: Gemini 1.5 Pro
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, tools, tool_choice, seed, response_format, structured_outputs
@context_length 2000000
@url https://openrouter.ai/google/gemini-pro-1.5
*/
 | "google/gemini-pro-1.5"
/** OpenAI: GPT-4 Turbo
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 128000
@url https://openrouter.ai/openai/gpt-4-turbo
*/
 | "openai/gpt-4-turbo"
/** Cohere: Command R+
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r-plus
*/
 | "cohere/command-r-plus"
/** Cohere: Command R+ (04-2024)
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r-plus-04-2024
*/
 | "cohere/command-r-plus-04-2024"
/** Midnight Rose 70B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, top_k, min_p, repetition_penalty, logit_bias
@context_length 4096
@url https://openrouter.ai/sophosympatheia/midnight-rose-70b
*/
 | "sophosympatheia/midnight-rose-70b"
/** Cohere: Command
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 4096
@url https://openrouter.ai/cohere/command
*/
 | "cohere/command"
/** Cohere: Command R
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r
*/
 | "cohere/command-r"
/** Anthropic: Claude 3 Haiku (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-haiku:beta
*/
 | "anthropic/claude-3-haiku:beta"
/** Anthropic: Claude 3 Haiku
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-haiku
*/
 | "anthropic/claude-3-haiku"
/** Anthropic: Claude 3 Opus (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-opus:beta
*/
 | "anthropic/claude-3-opus:beta"
/** Anthropic: Claude 3 Opus
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-opus
*/
 | "anthropic/claude-3-opus"
/** Anthropic: Claude 3 Sonnet (self-moderated)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-sonnet:beta
*/
 | "anthropic/claude-3-sonnet:beta"
/** Anthropic: Claude 3 Sonnet
@capabilities tools, tool_choice, max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-3-sonnet
*/
 | "anthropic/claude-3-sonnet"
/** Cohere: Command R (03-2024)
@capabilities tools, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, seed, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/cohere/command-r-03-2024
*/
 | "cohere/command-r-03-2024"
/** Mistral Large
@capabilities tools, tool_choice, max_tokens, temperature, top_p, response_format, stop, seed, frequency_penalty, presence_penalty, structured_outputs
@context_length 128000
@url https://openrouter.ai/mistralai/mistral-large
*/
 | "mistralai/mistral-large"
/** OpenAI: GPT-3.5 Turbo (older v0613)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 4095
@url https://openrouter.ai/openai/gpt-3.5-turbo-0613
*/
 | "openai/gpt-3.5-turbo-0613"
/** OpenAI: GPT-4 Turbo Preview
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4-turbo-preview
*/
 | "openai/gpt-4-turbo-preview"
/** Nous: Hermes 2 Mixtral 8x7B DPO
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/nousresearch/nous-hermes-2-mixtral-8x7b-dpo
*/
 | "nousresearch/nous-hermes-2-mixtral-8x7b-dpo"
/** Mistral Medium
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-medium
*/
 | "mistralai/mistral-medium"
/** Mistral Small
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-small
*/
 | "mistralai/mistral-small"
/** Mistral Tiny
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, response_format, structured_outputs, seed
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-tiny
*/
 | "mistralai/mistral-tiny"
/** Mistral: Mistral 7B Instruct v0.2
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 32768
@url https://openrouter.ai/mistralai/mistral-7b-instruct-v0.2
*/
 | "mistralai/mistral-7b-instruct-v0.2"
/** Mistral: Mixtral 8x7B Instruct
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed, logprobs, top_logprobs
@context_length 32768
@url https://openrouter.ai/mistralai/mixtral-8x7b-instruct
*/
 | "mistralai/mixtral-8x7b-instruct"
/** Noromaid 20B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 8192
@url https://openrouter.ai/neversleep/noromaid-20b
*/
 | "neversleep/noromaid-20b"
/** Anthropic: Claude v2.1 (self-moderated)
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-2.1:beta
*/
 | "anthropic/claude-2.1:beta"
/** Anthropic: Claude v2.1
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-2.1
*/
 | "anthropic/claude-2.1"
/** Anthropic: Claude v2 (self-moderated)
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-2:beta
*/
 | "anthropic/claude-2:beta"
/** Anthropic: Claude v2
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 200000
@url https://openrouter.ai/anthropic/claude-2
*/
 | "anthropic/claude-2"
/** Toppy M 7B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed
@context_length 4096
@url https://openrouter.ai/undi95/toppy-m-7b
*/
 | "undi95/toppy-m-7b"
/** Goliath 120B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 6144
@url https://openrouter.ai/alpindale/goliath-120b
*/
 | "alpindale/goliath-120b"
/** Auto Router
@capabilities
@context_length 2000000
@url https://openrouter.ai/openrouter/auto
*/
 | "openrouter/auto"
/** OpenAI: GPT-3.5 Turbo 16k (older v1106)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 16385
@url https://openrouter.ai/openai/gpt-3.5-turbo-1106
*/
 | "openai/gpt-3.5-turbo-1106"
/** OpenAI: GPT-4 Turbo (older v1106)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 128000
@url https://openrouter.ai/openai/gpt-4-1106-preview
*/
 | "openai/gpt-4-1106-preview"
/** OpenAI: GPT-3.5 Turbo Instruct
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 4095
@url https://openrouter.ai/openai/gpt-3.5-turbo-instruct
*/
 | "openai/gpt-3.5-turbo-instruct"
/** Mistral: Mistral 7B Instruct v0.1
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format, seed
@context_length 2824
@url https://openrouter.ai/mistralai/mistral-7b-instruct-v0.1
*/
 | "mistralai/mistral-7b-instruct-v0.1"
/** Pygmalion: Mythalion 13B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 4096
@url https://openrouter.ai/pygmalionai/mythalion-13b
*/
 | "pygmalionai/mythalion-13b"
/** OpenAI: GPT-3.5 Turbo 16k
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 16385
@url https://openrouter.ai/openai/gpt-3.5-turbo-16k
*/
 | "openai/gpt-3.5-turbo-16k"
/** OpenAI: GPT-4 32k
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 32767
@url https://openrouter.ai/openai/gpt-4-32k
*/
 | "openai/gpt-4-32k"
/** OpenAI: GPT-4 32k (older v0314)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 32767
@url https://openrouter.ai/openai/gpt-4-32k-0314
*/
 | "openai/gpt-4-32k-0314"
/** Mancer: Weaver (alpha)
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, logit_bias, top_k, min_p, seed, top_a
@context_length 8000
@url https://openrouter.ai/mancer/weaver
*/
 | "mancer/weaver"
/** Anthropic: Claude v2.0 (self-moderated)
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 100000
@url https://openrouter.ai/anthropic/claude-2.0:beta
*/
 | "anthropic/claude-2.0:beta"
/** Anthropic: Claude v2.0
@capabilities max_tokens, temperature, top_p, top_k, stop
@context_length 100000
@url https://openrouter.ai/anthropic/claude-2.0
*/
 | "anthropic/claude-2.0"
/** ReMM SLERP 13B
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, repetition_penalty, top_k, min_p, seed, logit_bias, top_a
@context_length 4096
@url https://openrouter.ai/undi95/remm-slerp-l2-13b
*/
 | "undi95/remm-slerp-l2-13b"
/** MythoMax 13B
@capabilities max_tokens, temperature, top_p, presence_penalty, frequency_penalty, repetition_penalty, top_k, stop, seed, min_p, logit_bias, response_format, top_a
@context_length 4096
@url https://openrouter.ai/gryphe/mythomax-l2-13b
*/
 | "gryphe/mythomax-l2-13b"
/** Meta: Llama 2 70B Chat
@capabilities max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, top_k, repetition_penalty, logit_bias, min_p, response_format
@context_length 4096
@url https://openrouter.ai/meta-llama/llama-2-70b-chat
*/
 | "meta-llama/llama-2-70b-chat"
/** OpenAI: GPT-3.5 Turbo
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 16385
@url https://openrouter.ai/openai/gpt-3.5-turbo
*/
 | "openai/gpt-3.5-turbo"
/** OpenAI: GPT-3.5 Turbo 16k
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 16385
@url https://openrouter.ai/openai/gpt-3.5-turbo-0125
*/
 | "openai/gpt-3.5-turbo-0125"
/** OpenAI: GPT-4
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format
@context_length 8191
@url https://openrouter.ai/openai/gpt-4
*/
 | "openai/gpt-4"
/** OpenAI: GPT-4 (older v0314)
@capabilities tools, tool_choice, max_tokens, temperature, top_p, stop, frequency_penalty, presence_penalty, seed, logit_bias, logprobs, top_logprobs, response_format, structured_outputs
@context_length 8191
@url https://openrouter.ai/openai/gpt-4-0314
*/
 | "openai/gpt-4-0314" | (string & {});
declare const toolCallingModels: readonly ["anthropic/claude-opus-4", "anthropic/claude-sonnet-4", "mistralai/devstral-small", "google/gemini-2.5-flash-preview-05-20", "google/gemini-2.5-flash-preview-05-20:thinking", "openai/codex-mini", "meta-llama/llama-3.3-8b-instruct:free", "mistralai/mistral-medium-3", "google/gemini-2.5-pro-preview", "arcee-ai/caller-large", "qwen/qwen3-30b-a3b", "qwen/qwen3-14b", "qwen/qwen3-32b", "qwen/qwen3-235b-a22b", "google/gemini-2.5-flash-preview", "google/gemini-2.5-flash-preview:thinking", "openai/o4-mini-high", "openai/o3", "openai/o4-mini", "openai/gpt-4.1", "openai/gpt-4.1-mini", "openai/gpt-4.1-nano", "x-ai/grok-3-mini-beta", "x-ai/grok-3-beta", "meta-llama/llama-4-maverick:free", "meta-llama/llama-4-maverick", "meta-llama/llama-4-scout:free", "meta-llama/llama-4-scout", "all-hands/openhands-lm-32b-v0.1", "google/gemini-2.5-pro-exp-03-25", "deepseek/deepseek-chat-v3-0324", "mistralai/mistral-small-3.1-24b-instruct:free", "mistralai/mistral-small-3.1-24b-instruct", "ai21/jamba-1.6-large", "ai21/jamba-1.6-mini", "qwen/qwq-32b", "openai/gpt-4.5-preview", "google/gemini-2.0-flash-lite-001", "anthropic/claude-3.7-sonnet", "anthropic/claude-3.7-sonnet:thinking", "anthropic/claude-3.7-sonnet:beta", "mistralai/mistral-saba", "openai/o3-mini-high", "google/gemini-2.0-flash-001", "qwen/qwen-turbo", "qwen/qwen-plus", "qwen/qwen-max", "openai/o3-mini", "mistralai/mistral-small-24b-instruct-2501", "deepseek/deepseek-r1-distill-llama-70b", "deepseek/deepseek-r1", "mistralai/codestral-2501", "deepseek/deepseek-chat", "openai/o1", "x-ai/grok-2-1212", "meta-llama/llama-3.3-70b-instruct:free", "meta-llama/llama-3.3-70b-instruct", "amazon/nova-lite-v1", "amazon/nova-micro-v1", "amazon/nova-pro-v1", "openai/gpt-4o-2024-11-20", "mistralai/mistral-large-2411", "mistralai/mistral-large-2407", "mistralai/pixtral-large-2411", "anthropic/claude-3.5-haiku:beta", "anthropic/claude-3.5-haiku", "anthropic/claude-3.5-haiku-20241022:beta", "anthropic/claude-3.5-haiku-20241022", "anthropic/claude-3.5-sonnet:beta", "anthropic/claude-3.5-sonnet", "x-ai/grok-beta", "mistralai/ministral-8b", "mistralai/ministral-3b", "nvidia/llama-3.1-nemotron-70b-instruct", "google/gemini-flash-1.5-8b", "meta-llama/llama-3.2-3b-instruct", "meta-llama/llama-3.2-11b-vision-instruct", "qwen/qwen-2.5-72b-instruct", "mistralai/pixtral-12b", "cohere/command-r-plus-08-2024", "cohere/command-r-08-2024", "microsoft/phi-3.5-mini-128k-instruct", "nousresearch/hermes-3-llama-3.1-70b", "openai/gpt-4o-2024-08-06", "meta-llama/llama-3.1-8b-instruct", "meta-llama/llama-3.1-405b-instruct", "meta-llama/llama-3.1-70b-instruct", "mistralai/codestral-mamba", "mistralai/mistral-nemo", "openai/gpt-4o-mini", "openai/gpt-4o-mini-2024-07-18", "anthropic/claude-3.5-sonnet-20240620:beta", "anthropic/claude-3.5-sonnet-20240620", "mistralai/mistral-7b-instruct:free", "mistralai/mistral-7b-instruct", "mistralai/mistral-7b-instruct-v0.3", "microsoft/phi-3-mini-128k-instruct", "microsoft/phi-3-medium-128k-instruct", "google/gemini-flash-1.5", "openai/gpt-4o", "openai/gpt-4o:extended", "openai/gpt-4o-2024-05-13", "meta-llama/llama-3-8b-instruct", "meta-llama/llama-3-70b-instruct", "mistralai/mixtral-8x22b-instruct", "google/gemini-pro-1.5", "openai/gpt-4-turbo", "cohere/command-r-plus", "cohere/command-r-plus-04-2024", "cohere/command-r", "anthropic/claude-3-haiku:beta", "anthropic/claude-3-haiku", "anthropic/claude-3-opus:beta", "anthropic/claude-3-opus", "anthropic/claude-3-sonnet:beta", "anthropic/claude-3-sonnet", "cohere/command-r-03-2024", "mistralai/mistral-large", "openai/gpt-3.5-turbo-0613", "openai/gpt-4-turbo-preview", "mistralai/mistral-medium", "mistralai/mistral-small", "mistralai/mistral-tiny", "mistralai/mixtral-8x7b-instruct", "openai/gpt-3.5-turbo-1106", "openai/gpt-4-1106-preview", "mistralai/mistral-7b-instruct-v0.1", "openai/gpt-3.5-turbo-16k", "openai/gpt-4-32k", "openai/gpt-4-32k-0314", "openai/gpt-3.5-turbo", "openai/gpt-3.5-turbo-0125", "openai/gpt-4", "openai/gpt-4-0314"];
type ToolCallingModel = (typeof toolCallingModels)[number] | (string & {});

interface IHttpClient {
    post(url: string, data: any, config?: any): Promise<any>;
    get(url: string): Promise<any>;
}
interface IStreamHandler {
    handleStream(stream: unknown): EventEmitter__default;
}
interface QueryResponseModel {
    id: string;
    name: string;
    created: number;
    description: string;
    pricing: ModelPricing;
    context_length: number;
    supported_parameters: string[];
    architecture: ModelArchitecture;
    top_provider: TopProvider;
    per_request_limits: PerRequestLimits;
}
interface ModelPricing {
    prompt: string;
    completion: string;
    request: string;
    image: string;
}
interface ModelArchitecture {
    tokenizer: "Router";
    instruct_type: "none" | string;
    modality: "text->text" | string;
}
interface TopProvider {
    context_length: number;
    max_completion_tokens: number;
    is_moderated: boolean;
}
interface PerRequestLimits {
    prompt_tokens: number | null;
    completion_tokens: number | null;
}
type Request = {
    /**
     * The prompt to generate completions formatted as a string
     * Either `prompt` or `messages` is required
     */
    prompt?: string;
    /**
     * The messages to generate completions formatted as an array of objects
     * Either `prompt` or `messages` is required
     */
    messages?: Message[];
    /**
     * The model identifier to use for the request
     * If unspecified, uses the user's default model
     * @see {@link https://openrouter.ai/docs} for supported models
     * @optional
     */
    model?: RouterModel;
    /**
     * Forces the model to produce output in a specific format
     * Only supported by certain models - check model documentation
     * @optional
     */
    response_format?: {
        /** The type of response format to enforce */
        type: "json_object";
    };
    /**
     * Sequences that will cause the model to stop generating
     * Can be a single string or array of strings
     * @optional
     */
    stop?: string | string[];
    /**
     * Whether to stream the response tokens
     * @optional
     * @default false
     */
    stream?: boolean;
    /**
     * Maximum number of tokens to generate
     * @optional
     * @range [1, context_length)
     */
    max_tokens?: number;
    /**
     * Controls randomness in the output
     * Higher values = more random, lower = more focused
     * @optional
     * @range [0, 2]
     */
    temperature?: number;
    /**
     * Tool configurations for function calling capabilities
     * Passed directly to providers implementing OpenAI's interface
     * Transformed to YAML template for other providers
     * @see {@link https://openrouter.ai/models?supported_parameters=tools}
     * @optional
     */
    tools?: Tool[];
    /**
     * Specifies how tools should be used
     * @optional
     */
    tool_choice?: ToolChoice;
    /**
     * Random seed for reproducible outputs
     * Must be an integer
     * @optional
     */
    seed?: number;
    /**
     * Nucleus sampling threshold
     * @optional
     * @range (0, 1]
     */
    top_p?: number;
    /**
     * Limits vocabulary to k highest probability tokens
     * Not available for OpenAI models
     * @optional
     * @range [1, Infinity)
     */
    top_k?: number;
    /**
     * Penalizes tokens based on their frequency
     * @optional
     * @range [-2, 2]
     */
    frequency_penalty?: number;
    /**
     * Penalizes tokens based on their presence
     * @optional
     * @range [-2, 2]
     */
    presence_penalty?: number;
    /**
     * Penalizes token repetition
     * @optional
     * @range (0, 2]
     */
    repetition_penalty?: number;
    /**
     * Token-level bias adjustments
     * @optional
     */
    logit_bias?: {
        [key: number]: number;
    };
    /**
     * Number of most likely tokens to return with their probabilities
     * Must be an integer
     * @optional
     */
    top_logprobs?: number;
    /**
     * Minimum probability threshold for token selection
     * @optional
     * @range [0, 1]
     */
    min_p?: number;
    /**
     * Dynamic nucleus sampling threshold
     * @optional
     * @range [0, 1]
     */
    top_a?: number;
    /**
     * Predicted output to reduce latency
     * @see {@link https://platform.openai.com/docs/guides/latency-optimization#use-predicted-outputs}
     * @optional
     */
    prediction?: {
        type: "content";
        content: string;
    };
    /**
     * Array of prompt transformation identifiers
     * @see {@link https://openrouter.ai/docs/transforms}
     * @optional
     */
    transforms?: string[];
    /**
     * Array of model identifiers for routing
     * @see {@link https://openrouter.ai/docs/model-routing}
     * @optional
     */
    models?: RouterModel[];
    /**
     * Routing strategy
     * @optional
     */
    route?: "fallback";
    /**
     * Provider preferences for routing
     * @see {@link https://openrouter.ai/docs/provider-routing}
     * @optional
     */
    provider?: ProviderPreferences;
    /**
     * Signal for aborting the request
     */
    signal?: AbortSignal;
};
type TextContent = {
    type: "text";
    text: string;
};
type ImageContentPart = {
    type: "image_url";
    image_url: {
        url: string;
        detail?: string;
    };
};
type ContentPart = TextContent | ImageContentPart;
type Message = {
    role: "user" | "assistant" | "system";
    content: string | ContentPart[];
    name?: string;
} | {
    role: "tool";
    content: string;
    tool_call_id: string;
    name?: string;
};
type FunctionDescription = {
    description?: string;
    name: string;
    parameters: object;
};
type Tool = {
    type: "function";
    function: FunctionDescription;
};
type ToolChoice = "none" | "auto" | {
    type: "function";
    function: {
        name: string;
    };
};
type ProviderName = "AI21" | "AionLabs" | "Alibaba" | "Amazon Bedrock" | "Anthropic" | "Atoma" | "Avian.io" | "Azure" | "CentML" | "Chutes" | "Cloudflare" | "Cohere" | "Crusoe" | "DeepInfra" | "DeepSeek" | "Enfer" | "Featherless" | "Fireworks" | "Friendli" | "GMICloud" | "Google AI Studio" | "Google Vertex" | "Groq" | "Hyperbolic" | "Hyperbolic (quantized)" | "Inception" | "inference.net" | "Infermatic" | "Inflection" | "InoCloud" | "kluster.ai" | "Lambda" | "Lepton" | "Liquid" | "Mancer" | "Mancer (private)" | "Minimax" | "Mistral" | "nCompass" | "Nebius AI Studio" | "NextBit" | "Nineteen" | "NovitaAI" | "OpenAI" | "OpenInference" | "Parasail" | "Perplexity" | "Phala" | "Reflection" | "SambaNova" | "Stealth" | "Targon" | "Together" | "Together (lite)" | "Ubicloud" | "Venice" | "xAI";
type DataCollectionSetting = "deny" | "allow";
type Quantization = "int4" | "int8" | "fp6" | "fp8" | "fp16" | "bf16" | "unknown";
interface ProviderPreferences {
    /**
     * Whether to allow backup providers to serve requests
     * - true: (default) when the primary provider (or your custom providers in "order") is unavailable, use the next best provider.
     * - false: use only the primary/custom provider, and return the upstream error if it's unavailable.
     */
    allow_fallbacks?: boolean | null;
    /**
     * Whether to filter providers to only those that support the parameters you've provided.
     * If this setting is omitted or set to false, then providers will receive only the parameters they support,
     * and ignore the rest.
     */
    require_parameters?: boolean | null;
    /**
     * Data collection setting. If no available model provider meets the requirement, your request will return an error.
     * - allow: (default) allow providers which store user data non-transiently and may train on it
     * - deny: use only providers which do not collect user data.
     */
    data_collection?: DataCollectionSetting | null;
    /**
     * An ordered list of provider names. The router will attempt to use the first provider in the subset
     * of this list that supports your requested model, and fall back to the next if it is unavailable.
     * If no providers are available, the request will fail with an error message.
     */
    order?: ProviderName[] | null;
    /**
     * List of provider names to ignore. If provided, this list is merged with your account-wide
     * ignored provider settings for this request.
     */
    ignore?: ProviderName[] | null;
    /**
     * A list of quantization levels to filter the provider by.
     */
    quantizations?: Quantization[] | null;
}
type BaseRequest$1 = {
    model?: string;
    stream?: boolean;
    temperature?: number;
};
type CompletionRequest$1 = (BaseRequest$1 & {
    messages: Message[];
    prompt?: undefined;
}) | (BaseRequest$1 & {
    prompt: string;
    messages?: undefined;
});
type BaseResponse = {
    id: string;
    provider: string;
    model: string;
    created: number;
    system_fingerprint: string;
    usage?: ResponseUsage;
};
type MessageBasedResponse = BaseResponse & {
    object: "chat.completion";
    choices: Array<{
        logprobs: null;
        finish_reason: string | null;
        index?: number;
        message: {
            role: string;
            content: string;
            refusal?: string;
        };
        text: never;
    }>;
};
type PromptBasedResponse = BaseResponse & {
    object: "chat.completion";
    choices: Array<{
        logprobs: null;
        finish_reason: string | null;
        index?: number;
        text: string;
        message: never;
    }>;
};
type StreamingResponse = BaseResponse & {
    object: "chat.completion.chunk";
    choices: Array<{
        index: number;
        finish_reason: string | null;
        delta: {
            content?: string;
            role?: string;
            tool_calls?: ToolCall[];
        };
        error?: ErrorResponse$1;
    }>;
};
type ChatCompletionResult<TStreaming extends boolean, TRequest extends CompletionRequest$1> = TStreaming extends true ? EventEmitter__default : TRequest extends {
    messages: Message[];
} ? MessageBasedResponse : PromptBasedResponse;
type ResponseUsage = {
    /** Including images and tools if any */
    prompt_tokens: number;
    /** The tokens generated */
    completion_tokens: number;
    /** Sum of the above two fields */
    total_tokens: number;
};
type ErrorResponse$1 = {
    code: number;
    message: string;
    metadata?: Record<string, unknown>;
};
type ToolCall = {
    id: string;
    type: "function";
    function: any;
};
type GenerationStats = {
    id: string;
    upstream_id: string;
    total_cost: number;
    cache_discount: any;
    provider_name: string;
    created_at: string;
    model: string;
    app_id: any;
    streamed: boolean;
    cancelled: boolean;
    latency: number;
    moderation_latency: any;
    generation_time: number;
    finish_reason: string;
    tokens_prompt: number;
    tokens_completion: number;
    native_tokens_prompt: number;
    native_tokens_completion: number;
    native_tokens_reasoning: any;
    num_media_prompt: any;
    num_media_completion: any;
    origin: string;
    usage: number;
};
/**
 * Configuration options for the Agent
 */
interface AgentOptions {
    /**
     * Maximum number of iterations the agent will perform before giving up
     * @default 5
     */
    maxIterations?: number;
    /**
     * The model to use for the agent
     * If not provided, falls back to the client's default model
     */
    model?: RouterModel;
    /**
     * System prompt to instruct the agent
     * If not provided, a default prompt will be generated based on markers
     */
    systemPrompt?: string;
    /**
     * Whether to prepend the default system prompt to the user's system prompt
     * @default false
     */
    prependDefaultPrompt?: boolean;
    /**
     * Tools the agent can use to perform tasks
     * @default []
     */
    tools?: AgentTool[];
    /**
     * Whether to emit verbose debugging events
     * @default false
     */
    verbose?: boolean;
    /**
     * Markers for different parts of the agent's thought process
     * Used for UI rendering and response formatting
     */
    markers?: AgentMarkers;
    /**
     * Custom function to determine when the agent should stop iterations
     * By default, stops when the finalAnswer marker is found
     */
    stopCondition?: (messages: Message[]) => boolean;
}
/**
 * UI markers for different parts of the agent's thought process
 */
interface AgentMarkers {
    /**
     * Opening and closing markers for the agent's thinking/reasoning process
     * @default "<thinking>" for both opening and closing
     */
    thinking?: string | {
        open: string;
        close: string;
    };
    /**
     * Opening and closing markers for when the agent decides to take an action (usually using a tool)
     * @default "<action>" for both opening and closing
     */
    action?: string | {
        open: string;
        close: string;
    };
    /**
     * Opening and closing markers for observations after receiving tool results
     * @default "<observation>" for both opening and closing
     */
    observation?: string | {
        open: string;
        close: string;
    };
    /**
     * Opening and closing markers for the final answer/conclusion
     * @default "<answer>" for both opening and closing
     */
    finalAnswer?: string | {
        open: string;
        close: string;
    };
}
/**
 * Tool definition for agent functions
 */
interface AgentTool {
    /**
     * Name of the tool - used by the LLM to invoke it
     */
    name: string;
    /**
     * Description of what the tool does
     * This helps the LLM understand when to use the tool
     */
    description: string;
    /**
     * JSON Schema defining the parameters for the tool
     * Should be an object type with properties
     */
    parameters: object;
    /**
     * Function that executes the tool's functionality
     * Returns a promise that resolves to the tool's result
     */
    execute: (params: any) => Promise<any>;
}
/**
 * Events emitted by the Agent during execution
 */
interface AgentEvents {
    /**
     * Emitted for each token when streaming
     */
    token: (token: string) => void;
    /**
     * Emitted when a marker (thinking/action/observation/answer) is found
     */
    marker: (data: {
        type: string;
        content: string;
    }) => void;
    /**
     * Emitted when the agent calls a tool
     */
    tool_call: (data: {
        name: string;
        args: any;
    }) => void;
    /**
     * Emitted when a tool returns a result
     */
    tool_result: (data: {
        tool: string;
        args: any;
        result: any;
    }) => void;
    /**
     * Emitted when a tool throws an error
     */
    tool_error: (data: {
        tool: string;
        args: any;
        error: any;
    }) => void;
    /**
     * Emitted at the start of each iteration when verbose is true
     */
    iteration: (data: {
        iteration: number;
        messages: Message[];
    }) => void;
    /**
     * Emitted when the agent gets a response from the LLM
     */
    response: (message: Message) => void;
    /**
     * Emitted when the agent extracts a final answer
     */
    final_answer: (answer: string) => void;
    /**
     * Emitted when the agent completes execution
     */
    complete: () => void;
    /**
     * Emitted when an error occurs
     */
    error: (error: Error) => void;
}
/**
 * Return type for non-streaming agent execution
 */
type AgentResult = string;
/**
 * Return type for streaming agent execution
 */
type AgentStreamResult = EventEmitter__default;

type BaseRequest = Omit<Request, "messages" | "prompt">;
type MessagesRequest = BaseRequest & {
    messages: Message[];
    prompt?: never;
};
type PromptRequest = BaseRequest & {
    prompt: string;
    messages?: never;
};
type CompletionRequest = MessagesRequest | PromptRequest;
declare class OpenRouterClient {
    private readonly apiKey;
    private readonly defaultConfig;
    private readonly baseURL;
    private httpClient;
    private streamHandler;
    constructor(apiKey: string, defaultConfig?: {
        siteUrl?: string;
        siteName?: string;
        model?: RouterModel;
    }, httpClient?: IHttpClient, streamHandler?: IStreamHandler);
    private getDefaultHeaders;
    chatCompletion<TStreaming extends boolean = false, TRequest extends CompletionRequest = CompletionRequest>(options: TRequest & {
        stream?: TStreaming;
    }): Promise<ChatCompletionResult<TStreaming, TRequest>>;
    getGenerationStats(generationId: string): Promise<GenerationStats>;
    getModels(): Promise<QueryResponseModel[]>;
}

/**
 * Agent class for performing chain-of-thought reasoning with LLMs
 */
declare class Agent extends EventEmitter$1 {
    private client;
    private options;
    private messages;
    private normalizedMarkers;
    constructor(client: OpenRouterClient, options?: AgentOptions);
    /**
     * Default stop condition - checks if the message contains the final answer marker
     */
    private defaultStopCondition;
    /**
     * Gets the default system prompt with markers
     */
    private getDefaultSystemPrompt;
    /**
     * Run the agent on a query (non-streaming)
     */
    run(query: string): Promise<string>;
    /**
     * Helper method to escape special regex characters
     */
    private escapeRegExp;
    /**
     * Run the agent on a query with streaming support
     */
    runStream(query: string): Promise<EventEmitter$1>;
    /**
     * Format tools for the LLM API
     */
    private formatTools;
}

interface ErrorResponse {
    error: {
        code: number;
        message: string;
        metadata?: ModerationErrorMetadata | ProviderErrorMetadata;
    };
}
interface ModerationErrorMetadata {
    reasons: string[];
    flagged_input: string;
    provider_name: string;
    model_slug: string;
}
interface ProviderErrorMetadata {
    provider_name: string;
    raw: unknown;
}
declare class OpenRouterErrorAdapter {
    private static readonly ERROR_MESSAGES;
    static handleError(error: unknown): never;
    private static isAxiosError;
    private static handleAxiosError;
    private static isOpenRouterError;
    private static createDetailedError;
    private static isModerationError;
    private static isProviderError;
}

declare class HttpClient implements IHttpClient {
    private client;
    constructor(baseURL: string, headers: Record<string, string>);
    post(url: string, data: any, config?: any): Promise<axios.AxiosResponse<any, any>>;
    get(url: string): Promise<axios.AxiosResponse<any, any>>;
}

declare class StreamHandler implements IStreamHandler {
    handleStream(stream: EventEmitter): EventEmitter$1;
}

export { Agent, type AgentEvents, type AgentMarkers, type AgentOptions, type AgentResult, type AgentStreamResult, type AgentTool, type ChatCompletionResult, type DataCollectionSetting, type ErrorResponse, type GenerationStats, HttpClient, type IHttpClient, type IStreamHandler, type Message, OpenRouterClient, OpenRouterErrorAdapter, type ProviderName, type ProviderPreferences, type Quantization, type QueryResponseModel, type Request, type RouterModel, StreamHandler, type StreamingResponse, type ToolCallingModel, toolCallingModels };
