Qora API — AI API Gateway for Developers

AI API Gateway for Developers

One clear API workflow for your apps, scripts and automations.

SillyTavern DeepSeek V4.1 Flash: Setup, Settings & Price

Published

DeepSeek V4.1 Flash has become the default “cheap but good” model for SillyTavern: a 1M-token context window, fast replies and a price low enough that a long roleplay evening costs cents. This guide shows exactly how to connect SillyTavern to DeepSeek V4.1 Flash through an OpenAI-compatible endpoint (Qora API), which settings to change on day one, how the thinking mode affects your sliders and your bill, and how to fix the errors people hit most often.

Quick answer: in SillyTavern open API Connections (the plug icon) and enter:

API:                      Chat Completion
Chat Completion Source:   Custom (OpenAI-compatible)
Custom Endpoint (Base URL): https://qoraapi.com/v1
Custom API Key:           sk-... (your Qora API key)
Model ID:                 deepseek/deepseek-v4.1-flash

Click Connect, then Test Message. Before your first real chat, raise Context Size from 4,095 and Max Response Length from 300 (details below).

Why use DeepSeek V4.1 Flash in SillyTavern?

DeepSeek V4.1 Flash (released September 2026) replaced V4 Flash as DeepSeek’s low-cost model. According to DeepSeek’s Models & Pricing page, it has a 1M-token context, up to 384K output tokens, tool calls, JSON output and a thinking mode that is on by default. For SillyTavern users three things matter most:

  • Long memory for little money. A big context lets you keep more of the chat, the character card and lorebook entries in every request without the bill exploding.
  • Speed. With thinking turned off, replies start almost immediately, which suits casual one-on-one chats.
  • A thinking mode when you want it. For campaigns with stats, inventory or strict rules, letting the model reason first helps it keep track.

You can connect to DeepSeek directly with SillyTavern’s built-in DeepSeek source, or through an OpenAI-compatible gateway such as Qora API. The gateway route means one key for DeepSeek, Claude, GPT, Gemini and GLM, so you can switch the model behind the same character without new accounts.

DeepSeek V4.1 Flash price: Qora vs official

Prices per 1M tokens. Qora prices come from the live Qora pricing page (default group, checked November 11, 2026). Official prices are from DeepSeek’s pricing page on the same day; DeepSeek charges half price off-peak (all hours except 01:00–04:00 and 06:00–10:00 UTC, Monday to Friday).

Model (SillyTavern Model ID on Qora) Qora input / output DeepSeek official, peak DeepSeek official, off-peak
DeepSeek V4.1 Flash
deepseek/deepseek-v4.1-flash
$0.15 / $0.45 $0.30 / $1.20 $0.15 / $0.60
DeepSeek V4 Pro
deepseek/deepseek-v4-pro
$0.51 / $1.05 $1.32 / $3.96 $0.66 / $1.98
DeepSeek V4 Flash (0731 snapshot)
deepseek/deepseek-v4-flash-0731
$0.15 / $0.45 Retired; DeepSeek routes the old name to V4.1 Flash —

Honest reading of the table: on Flash, Qora’s input price equals DeepSeek’s off-peak price and is half the peak price, while output is cheaper at every hour. V4 Pro is cheaper on Qora at any time of day. DeepSeek direct is very cheap for cache hits ($0.006 per 1M at peak), so if you chat mostly off-peak with a prompt that rarely changes at the top, the official API can come out ahead. Where Qora wins is output-heavy use (long replies, thinking mode, since reasoning is billed as output), peak-hour chatting, V4 Pro, and having every other model on the same key. More detail is on the DeepSeek V4.1 Flash API page and the DeepSeek V4 Pro API page.

What a SillyTavern message actually costs

Every turn sends the card, your persona, lorebook entries and as much chat history as your Context Size allows, then gets one reply. With DeepSeek V4.1 Flash on Qora:

Context Size used Reply length Cost per message Messages per $1
16,000 tokens 500 tokens ≈ $0.0026 ≈ 380
32,000 tokens 500 tokens ≈ $0.0050 ≈ 200
32,000 tokens 500 + 1,000 reasoning tokens ≈ $0.0055 ≈ 180
64,000 tokens 500 tokens ≈ $0.0098 ≈ 100

These are worst-case figures once the context is full; early in a chat you send far fewer tokens. The lesson: Context Size drives your bill much more than the model’s list price.

Step-by-step: connect SillyTavern to DeepSeek V4.1 Flash

Step 1: Get an API key

  1. Create a Qora API account and top up (pay as you go in USD, no subscription).
  2. In the console, open the API keys (tokens) page and create a key named “SillyTavern”, so you can revoke it later without breaking other tools.
  3. Copy the key (it starts with sk-) and keep it private; anyone holding it can spend your balance.

New users can ask for $5 of trial credit by messaging @QoraAPI on X or emailing [email protected] (it is not added automatically). Qora API serves users outside mainland China only.

Step 2: Fill in API Connections

  1. Click the plug icon to open API Connections.
  2. Set API to Chat Completion.
  3. Set Chat Completion Source to Custom (OpenAI-compatible).
  4. In Custom Endpoint (Base URL) enter https://qoraapi.com/v1. SillyTavern’s own docs say to add /v1 if needed but not to add /chat/completions, because SillyTavern appends the path itself. (Janitor AI is the opposite and needs the full path; see our Janitor AI DeepSeek proxy guide.)
  5. Paste your key into Custom API Key.
  6. Click Connect. SillyTavern then asks the endpoint’s /v1/models list for your key, and you can pick deepseek/deepseek-v4.1-flash from the dropdown, or type it into the Model ID field.
  7. Click Test Message. A short reply means the connection works.

Model IDs differ between providers: on DeepSeek direct the name is deepseek-flash, on Qora it is deepseek/deepseek-v4.1-flash. Always use the ID of the service whose key you pasted.

Step 3: Change two defaults before you chat

Open the AI Response Configuration panel (the sliders icon) and change:

Setting SillyTavern default Suggested for V4.1 Flash
Context Size (tokens) 4,095 16,000–64,000 (tick Unlocked Context Size to go past the default cap)
Max Response Length (tokens) 300 Your desired reply length with thinking off (e.g. 500–800); at least 1,024 with thinking on
Streaming Depends on preset On, so you see text (and reasoning) arrive

At 4,095 tokens a detailed character card and a few lorebook entries leave room for only the last handful of messages, which is the most common cause of “the bot forgot what just happened”. A 300-token limit is the most common cause of empty or cut-off replies when thinking is on, because the reasoning uses up the budget first.

Thinking mode, temperature and presets

DeepSeek’s Thinking Mode guide says thinking is enabled by default at “high” effort, and that in thinking mode temperature, presence_penalty and frequency_penalty are accepted but have no effect. For V4.1 Flash, top_p only works in thinking mode (range 0.95–1.0) and is fixed at 1.0 when thinking is off. In practice that means:

  • Thinking on: your temperature and penalty sliders do nothing. Style comes from the prompt and preset text, not the samplers.
  • Thinking off: temperature and penalties work again. DeepSeek’s own guidance is 1.0 by default, 1.3 for general conversation and 1.5 for creative writing.

Turning thinking off on a Custom endpoint

With SillyTavern’s built-in DeepSeek source, the Request model reasoning checkbox switches thinking on and off at DeepSeek. On a Custom (OpenAI-compatible) source, that checkbox mainly controls whether reasoning is requested and shown, so the reliable switch is DeepSeek’s own parameter. In the Custom source’s Additional Parameters dialog, add this under Include Body Parameters:

thinking:
  type: disabled

To keep thinking but make it cheaper and faster, use enabled and add reasoning_effort: low instead. Then send a test message: if a reasoning block still appears above the reply, thinking is still on. If you prefer to check outside SillyTavern, this request does the same thing:

curl https://qoraapi.com/v1/chat/completions \
  -H "Authorization: Bearer $QORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4.1-flash",
    "messages": [{"role": "user", "content": "Say hi in character as a grumpy innkeeper."}],
    "thinking": {"type": "disabled"},
    "max_tokens": 300
  }'

Suggested starting settings

Setting Fast, casual chat Rules-heavy campaign
Model ID deepseek/deepseek-v4.1-flash deepseek/deepseek-v4.1-flash or deepseek/deepseek-v4-pro
Thinking Disabled Enabled, effort low
Temperature 1.3 (1.5 for more creative prose) Ignored
Frequency / Presence Penalty 0 to start Ignored
Context Size 16K–32K 32K–64K
Max Response Length 500–800 1,024–2,048
Prompt Post-Processing Semi-strict Semi-strict

Why Semi-strict: SillyTavern’s built-in DeepSeek source applies it automatically, but on a Custom source you choose it yourself. It merges consecutive roles and keeps one optional system message, which avoids format problems when lorebook entries or Author’s Notes are inserted mid-chat as extra system messages.

Do you need a “DeepSeek V4 preset”?

“sillytavern deepseek v4 preset” is one of the most searched phrases for this model. A Chat Completion preset is two things: sampler values and prompt text. With thinking on, most of the sampler values are ignored, so what you are really importing is the prompt. Community presets written for V4 Flash are a reasonable starting point for V4.1 Flash too, but start small: import one preset, test it with one card and a short scene, then add optional blocks one at a time. Long chain-of-thought prompts often clash with the model’s own thinking mode; if replies become stiff or repetitive, try a short system prompt with thinking off before stacking more rules.

Troubleshooting

401 / invalid token

The key is wrong, revoked or has a stray space. Re-copy it from the Qora console, and make sure the key, endpoint and model ID all belong to the same provider.

404 or “connection failed”

Check the endpoint is exactly https://qoraapi.com/v1, with no /chat/completions and no trailing space. If SillyTavern warns about the API status but replies work, tick Bypass API status check.

Model not found

Use the exact ID deepseek/deepseek-v4.1-flash. deepseek-flash is DeepSeek-direct naming and deepseek-chat / deepseek-reasoner were retired by DeepSeek in July 2026.

Empty or cut-off replies

Raise Max Response Length to 1,024+ or disable thinking. If it persists, check your balance in the console.

Sliders change nothing / the bot repeats itself

Thinking is probably still on, so temperature and penalties are ignored. Disable thinking as shown above, or fix repetition in the prompt instead of the samplers.

FAQ

What is the model name for DeepSeek V4.1 Flash in SillyTavern?

It depends on the provider. On Qora API it is deepseek/deepseek-v4.1-flash; on DeepSeek’s own API it is deepseek-flash (the old deepseek-v4-flash name is still accepted there and served by V4.1 Flash).

Is DeepSeek V4.1 Flash free in SillyTavern?

No. SillyTavern is free, but the model is paid per token. On Qora it costs $0.15 per 1M input and $0.45 per 1M output tokens, so a typical message with 16K tokens of context costs about a quarter of a cent.

Should I use V4.1 Flash or V4 Pro for roleplay?

Start with Flash for everyday chats. Try V4 Pro ($0.51 / $1.05 on Qora) for long campaigns where character consistency matters more than speed, using the same card and scene to compare.

What Context Size should I use?

16K–32K covers most chats; 64K helps long campaigns. The model supports 1M, but every extra token is paid on every turn, so bigger is not automatically better.

Can I use Claude or GPT with the same SillyTavern setup?

Yes. Keep the same endpoint and key and change only the Model ID. See our SillyTavern Claude API guide for Claude-specific settings.

Get started

Connecting SillyTavern to DeepSeek V4.1 Flash takes about two minutes: one endpoint, one key, one model ID, then two defaults changed. Create your Qora API account, paste the values from the quick answer above, and compare Flash, V4 Pro and other models on the same character card. Questions or trial credit: @QoraAPI or [email protected].

Build AI features with one clear API

Qora API gives you a single, focused gateway to connect your apps, scripts and automations to AI. Start with one request.

qoraapi.com · AI API gateway for developers

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *