OpenAI-compatible
Point any OpenAI client at the base URL. Chat completions, responses, and SSE streaming work without a translation layer.
A focused, OpenAI-compatible API for deepseek-v4.1-flash and accountless glm-5.3-flash. Stream answers, call tools, watch every token, and pay only for what you use — starting at $0.15 per million input tokens.
Most API platforms are a menu. Flashline is a scalpel: two Flash models, two independent lanes, and a meter you can actually read. Everything else is noise.
Point any OpenAI client at the base URL. Chat completions, responses, and SSE streaming work without a translation layer.
DeepSeek V4.1 Flash and GLM-5.3 Flash, each with its own queue. No pro aliases, no silent remapping, and a busy provider never blocks the other.
Tokens leave the upstream the moment they arrive. The gateway keeps SSE chunks intact and flushes them without buffering the whole answer.
Input, output, cache-miss pricing, and search fees are recorded per request. Your balance moves in the same ledger you can inspect.
Share a code. When a friend makes their first paid request you get a $0.25 bonus, then 10% of every charge after that.
Keys, usage rows, transactions, promos, and manual top-ups are all visible in the dashboard. No spreadsheet required.
No sales call, no provisioning delay. The first account gets $0.25 of credit and can make a real request in under a minute.
Sign up with an email and password. The welcome credit lands immediately, so you can test the real endpoint, not a sandbox.
Name the key after its environment. The raw value is shown once; the server keeps only a SHA-256 hash. Revoke it whenever you like.
Use the base URL, send deepseek-v4.1-flash or glm-5.3-flash, and stream the answer. Your dashboard updates with tokens and cost.
No tiers, no seat fees, no minimum. DeepSeek's published V4.1 Flash rates are passed through with peak and off-peak windows; GLM guest rates are flat. Both are shown in UTC.
deepseek-v4.1-flash · USD
Peak hours: 01:00–04:00 and 06:00–10:00 UTC, Monday–Friday, excluding Chinese public holidays. China date: —.
Input is billed at the cache-miss rate. Cache-hit and search rates are listed for reference. Your transaction ledger records the exact micro-dollar amount for every request.
Flat Z.ai list rates · no peak schedule
Rates mirror DeepSeek's published V4.1 Flash pricing. Peak pricing follows the official UTC windows.
The request shape is the OpenAI one you already know. Change the base URL, send either Flash model, and keep your existing client.
curl __BASE_URL__/chat/completions \
-H "Authorization: Bearer $FLASHLINE_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash",
"messages": [
{ "role": "user", "content": "Give me three names for a coffee robot." }
],
"stream": true
}'
from openai import OpenAI
client = OpenAI(
base_url="__BASE_URL__",
api_key="sk-fl-...",
)
stream = client.chat.completions.create(
model="deepseek-v4.1-flash",
messages=[{"role": "user", "content": "Hello, Flash."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "__BASE_URL__",
apiKey: process.env.FLASHLINE_KEY,
});
const stream = await client.chat.completions.create({
model: "deepseek-v4.1-flash",
messages: [{ role: "user", content: "Hello, Flash." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? "");
}
Give a friend a working gateway with $0.25 to start. When they make their first paid request, you get a $0.25 bonus. After that, 10% of every charge lands in your balance automatically.
The short version of the operating model. The docs cover request shapes, headers, and the full error table.
deepseek-v4.1-flash and the accountless guest model glm-5.3-flash. Both are Flash variants. Requests for pro, expert, other GLM versions, or unknown model IDs are rejected with a 400 instead of being silently remapped.402 insufficient_balance. A request already in flight can settle slightly below zero; the next request is blocked until you add credit. Operator traffic is unbilled and separate from user accounts.tools; Flashline bridges them through the model prompt and returns tool_calls (chat completions) or function_call items (responses). Your client executes the tool and sends the result back with the same conversation. Tool definitions and results count as input tokens. It is best-effort: the model can occasionally answer without calling a tool or emit a malformed call.$0.25 of welcome credit. No card, no subscription, no pro aliases.