Skip to main content

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

OptionDescriptionDefault
baseurlBase URL of the API endpoint. Change this when using providers other than OpenRouter.https://openrouter.ai/api/v1
reasoningSpecify 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_reasoningSpecify reasoning mode for the chat_template_kwargs.enable_thinking type. (Ver2.6.24)(none)
temperatureControls randomness of generation. Lower values are more deterministic.(model default)
top_pNucleus sampling parameter.(model default)
top_kTop-k sampling parameter.(model default)
frequency_penaltyPenalizes new tokens based on their existing frequency.(model default)
presence_penaltyPenalizes new tokens based on whether they appear in the text.(model default)
repetition_penaltyPenalizes repetition of token sequences.(model default)
min_pSets the minimum probability for tokens to be considered.(model default)
top_aFilters tokens based on the cumulative probability of the most likely tokens.(model default)
max_tokensMaximum number of tokens to generate.10240
timeoutTimeout 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.