Nodes/ComfyUI-OllamaPromptsGeneratorTlant/OpenRouter API (Tlant V1)
ComfyUI Node

OpenRouter API (Tlant V1)

Call OpenRouter API with automatic caching. Same inputs + same seed = skip API call.

By Tlant·Created 2 years ago·Updated 4 months ago· 2
OpenRouter API (Tlant V1)
  • images
  • response_text
  • reasoning_content
model_namexiaomi/mimo-v2-flash
base_urlhttps://openrouter.ai/api/v1/chat/completions
api_key
system_promptYou are a helpful assistant.
user_prompt
temperature0.70
max_tokens2048
seed0
remove_think_tagsfalse
proxy_url
top_p1.00
timeout300
image_detailauto
user_prompt_input
system_prompt_input
CategoryTlant/API

Inputs (16)

NameTypeDefaultDescription
model_nameSTRINGxiaomi/mimo-v2-flashOpenRouter model identifier, e.g. google/gemini-2.5-pro-preview
base_urlSTRINGhttps://openrouter.ai/api/v1/chat/completionsAPI endpoint URL
api_keySTRINGOpenRouter API key (sk-or-v1-...)
system_promptSTRINGYou are a helpful assistant.System prompt to set model behavior
user_promptSTRINGUser prompt / instruction
temperatureFLOAT0.700–2Controls randomness. Lower = more deterministic
max_tokensINT20481–128000Maximum number of tokens in the response
seedINT00–18446744073709550000Change seed to force re-execution; keep fixed to use cache
remove_think_tagsBOOLEANfalseRemove <think>...</think> blocks from output
proxy_urlSTRINGOptional proxy. e.g. http://127.0.0.1:1080 or socks5://127.0.0.1:1080
top_pFLOAT1.000–1Nucleus sampling threshold
timeoutINT30010–1200Request timeout in seconds
image_detailCOMBOautoImage detail level for vision models
imagesoptIMAGEOptional image input for vision models. Supports batch.
user_prompt_inputoptSTRINGExternal user prompt input, will be appended to user_prompt
system_prompt_inputoptSTRINGExternal system prompt input, will be appended to system_prompt

Outputs (2)

NameTypeDescription
response_textSTRINGThe model's text response
reasoning_contentSTRINGReasoning content returned by reasoning models (if available)