Skip to main content
Version: Legacy

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. true, false, none, minimal, low, medium, high, xhigh (Ver2.6.21, 2.7.3)(none)
reasoning_effortSpecify reasoning mode for reasoning_effort type specification. (Ver2.7.3)(none)
kwargs_reasoningSpecify reasoning mode for chat_template_kwargs.enable_thinking type specification. (Ver2.6.24)(none)
temperatureControls randomness of generation. Lower values make output 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 so far.(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 cumulative probability of 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)
strictFor structured output: json_schema when true, json_object when false.false
streamSpecify whether to use streaming generation. (Ver2.7.3)true

Examples

  • To use DeepSeek V4 Flash 0731: deepseek/deepseek-v4-flash-0731
  • To connect to a local LM Studio instance: dummy --baseurl=http://127.0.0.1:1234/v1
    • Even when not specifying a model name, please include dummy text.
  • To use Google AI Studio's Gemini 3.5 Flash lite preview via OpenRouter: google/gemini-3.5-flash-lite-preview --only=google-ai-studio
    • To use Google AI Studio directly as provider: gemini-3.5-flash-lite --baseurl=https://generativelanguage.googleapis.com/v1beta/openai/

Option Validity​

  • The options accepted vary by model. Options not accepted by a model will be ignored.

Using Presets​

  • Instead of specifying the options above, 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 the BaseURL.
  • Connection to all providers claiming compatibility is not guaranteed.