Model Option Settings
Option Settings
- You can specify the LLM model and its options in a single line. The format is
model_name [--option1=value] [--option2=value] .... If options are not specified, default values are used.
AI Model Specification Options
| Option | Description | Default |
|---|---|---|
baseurl | Base URL of the API endpoint. Change this when using providers other than OpenRouter. | https://openrouter.ai/api/v1 |
reasoning | Specify reasoning mode for supported models. Value true is sent as medium, value false as none. Also accepts: none, minimal, low, medium, high, xhigh (Ver2.6.21) | (none) |
kwargs_reasoning | Specify reasoning mode for the chat_template_kwargs.enable_thinking type. (Ver2.6.24) | (none) |
temperature | Controls randomness of generation. Lower values are more deterministic. | (model default) |
top_p | Nucleus sampling parameter. | (model default) |
top_k | Top-k sampling parameter. | (model default) |
frequency_penalty | Penalizes new tokens based on their existing frequency. | (model default) |
presence_penalty | Penalizes new tokens based on whether they appear in the text. | (model default) |
repetition_penalty | Penalizes repetition of token sequences. | (model default) |
min_p | Sets the minimum probability for tokens to be considered. | (model default) |
top_a | Filters tokens based on the cumulative probability of the most likely tokens. | (model default) |
max_tokens | Maximum number of tokens to generate. | 10240 |
timeout | Timeout for story generation (milliseconds) | 600000 |
only | (OpenRouter only) Use only a specific provider | (none) |
Examples
- Using Grok-4.1 fast:
x-ai/grok-4.1-fast - Enabling reasoning mode with DeepSeek:
deepseek/deepseek-v3.2 --reasoning=true - Connecting to a local LM Studio instance:
dummy --baseurl=http://127.0.0.1:1234/v1- Even if you don't specify a model name, please include dummy text.
- Using Google AI Studio's Gemini 3.1 Flash lite preview via OpenRouter:
google/gemini-3.1-flash-lite-preview --only=google-ai-studio- Using OpenRouter's BYOK allows you to use Google AI Studio's free tier (check the site's logs for billing status to be safe).
- Setting BaseURL to directly access providers that don't accept CORS (like Google AI Studio) will result in an error.
Option Validity
- The options accepted vary by model. Options not accepted by a model will be ignored.
Using Presets
- Instead of specifying the above options, you can configure and use OpenRouter presets, which will be automatically applied during API calls.
Connecting to Non-OpenRouter Providers
- This application uses the OpenAI SDK. Specify an OpenAI SDK-compatible URL for BaseURL.
- Connection to all providers claiming compatibility is not guaranteed.