<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yucong Chen</title>
    <description>The latest articles on DEV Community by Yucong Chen (@moozechen).</description>
    <link>https://dev.to/moozechen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4038368%2F2fdbcc6b-ac4a-48fa-b6b1-70356c50d332.png</url>
      <title>DEV Community: Yucong Chen</title>
      <link>https://dev.to/moozechen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/moozechen"/>
    <language>en</language>
    <item>
      <title>The 4:1 bill: routing agent and coding traffic across two wire protocols</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Tue, 24 Nov 2026 10:29:45 +0000</pubDate>
      <link>https://dev.to/moozechen/the-41-bill-routing-agent-and-coding-traffic-across-two-wire-protocols-4711</link>
      <guid>https://dev.to/moozechen/the-41-bill-routing-agent-and-coding-traffic-across-two-wire-protocols-4711</guid>
      <description>&lt;p&gt;Most agent bills are not output problems. They are input problems wearing an output costume.&lt;/p&gt;

&lt;p&gt;A coding agent reads a repo, a tool schema, a diff, a stack trace, and twelve previous turns before writing twenty lines. An eval harness replays the same prompts every run. A browser agent re-sends page state on every step. In all three, the ratio of input to output tokens is roughly &lt;strong&gt;4:1&lt;/strong&gt;, and sometimes worse. Optimizing the output side is optimizing the cheap side.&lt;/p&gt;

&lt;p&gt;This post is about the bill math at that shape, the two wire protocols that let an existing client move without a rewrite, and a routing policy that puts each kind of traffic on the model that fits it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bill at 4:1
&lt;/h2&gt;

&lt;p&gt;Here are list prices per million tokens, and what a 4:1 read/write block — &lt;strong&gt;4M input + 1M output&lt;/strong&gt; — costs. The baseline is OpenAI GPT-6.2 Sol at $2.00 input / $10.00 output.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Input $/1M&lt;/th&gt;
&lt;th&gt;Output $/1M&lt;/th&gt;
&lt;th&gt;4:1 block (4M in + 1M out)&lt;/th&gt;
&lt;th&gt;vs GPT-6.2 Sol&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Sol&lt;/td&gt;
&lt;td&gt;2.00&lt;/td&gt;
&lt;td&gt;10.00&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18.00&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DeepSeek-V4.1-Flash&lt;/td&gt;
&lt;td&gt;0.30&lt;/td&gt;
&lt;td&gt;1.20&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;2.40&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;−86.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GLM-5.3&lt;/td&gt;
&lt;td&gt;1.20&lt;/td&gt;
&lt;td&gt;4.20&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;9.00&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;−50.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Qwen3.8-Max&lt;/td&gt;
&lt;td&gt;2.00&lt;/td&gt;
&lt;td&gt;6.00&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14.00&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;−22.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Kimi K3.1 Pro&lt;/td&gt;
&lt;td&gt;2.00&lt;/td&gt;
&lt;td&gt;10.00&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18.00&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;0.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two rows are deliberately unflattering. &lt;strong&gt;Kimi K3.1 Pro is at parity with GPT-6.2 Sol on a 4:1 mix.&lt;/strong&gt; Qwen3.8-Max is only 22% cheaper. If you route everything to the most expensive Chinese model, you have changed vendors, not economics.&lt;/p&gt;

&lt;p&gt;The savings come from routing, not from a single model being magic. A realistic agent mix — 55% DeepSeek-V4.1-Flash, 25% GLM-5.3, 12% Qwen3.8-Max, 8% Kimi K3.1 Pro — lands at &lt;strong&gt;$6.69 per 4:1 block&lt;/strong&gt;, or &lt;strong&gt;−62.8%&lt;/strong&gt; against the same mix on GPT-6.2 Sol. Push more volume to DeepSeek and GLM and it goes lower; push more to Kimi and it converges back to the baseline.&lt;/p&gt;

&lt;p&gt;At a monthly shape of &lt;strong&gt;1B input tokens + 250M output tokens&lt;/strong&gt;, the same arithmetic looks like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Route&lt;/th&gt;
&lt;th&gt;Monthly bill&lt;/th&gt;
&lt;th&gt;vs GPT-6.2 Sol&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Sol&lt;/td&gt;
&lt;td&gt;$4,500&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All DeepSeek-V4.1-Flash&lt;/td&gt;
&lt;td&gt;$600&lt;/td&gt;
&lt;td&gt;−86.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All GLM-5.3&lt;/td&gt;
&lt;td&gt;$2,250&lt;/td&gt;
&lt;td&gt;−50.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All Qwen3.8-Max&lt;/td&gt;
&lt;td&gt;$3,500&lt;/td&gt;
&lt;td&gt;−22.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All Kimi K3.1 Pro&lt;/td&gt;
&lt;td&gt;$4,500&lt;/td&gt;
&lt;td&gt;0.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;55/25/12/8 routed mix&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;$1,672.50&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;−62.8%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is the argument in one table. The 40–65% range is a property of the mix, not of a model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two protocols, one catalog
&lt;/h2&gt;

&lt;p&gt;The client surface is already standardized, so this is routing, not a rewrite. Two shapes matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;OpenAI shape&lt;/strong&gt;: &lt;code&gt;POST /v1/chat/completions&lt;/code&gt;, used by the OpenAI SDKs, Cline, Roo Code, OpenCode, and most in-house agent loops.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Anthropic shape&lt;/strong&gt;: &lt;code&gt;POST /v1/messages&lt;/code&gt;, used by Claude Code and anything built on the Messages API, including &lt;code&gt;tool_use&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both are native here, not translated at the edge. The same API key and model catalog serve both.&lt;/p&gt;

&lt;p&gt;OpenAI SDK:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;OpenAI&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://flintapi.ai/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;key&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;resp&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;chat&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;completions&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"deepseek-v4.1-flash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Refactor this function and run the tests."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;stream&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Anthropic SDK, including tool use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;anthropic&lt;/span&gt;

&lt;span class="n"&gt;client&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;anthropic&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;Anthropic&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://flintapi.ai"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;api_key&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;key&amp;gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;client&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"glm-5.3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;max_tokens&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;2048&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;messages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Extract the clauses into this JSON schema."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;tools&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For Claude Code, the environment variable is the whole migration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://flintapi.ai"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&amp;lt;key&amp;gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What matters in an agent loop is not the happy-path 200: real SSE frames, &lt;code&gt;tool_use&lt;/code&gt; / &lt;code&gt;tool_calls&lt;/code&gt; preserved end to end, chain-of-thought kept out of the visible answer, reasoning tokens in their own field, and &lt;code&gt;usage&lt;/code&gt; on both protocols. In our compatibility pass, both surfaces returned &lt;strong&gt;45/45&lt;/strong&gt; successful streaming responses on the three models tested, and the Anthropic path produced its first SSE frame at &lt;strong&gt;1.88s&lt;/strong&gt;. Typical first-token latency on the current fleet is &lt;strong&gt;1.3–2.5s&lt;/strong&gt;, with frontier reasoning models at the higher end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The routing policy
&lt;/h2&gt;

&lt;p&gt;The policy is boring: classify, pick one primary, keep one fallback, never let the expensive model win by default.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Traffic&lt;/th&gt;
&lt;th&gt;Primary&lt;/th&gt;
&lt;th&gt;Fallback&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Tool-loop coding, repo edits, test-fix cycles&lt;/td&gt;
&lt;td&gt;&lt;code&gt;deepseek-v4.1-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Input-heavy, latency-sensitive, cost per solved task dominates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long-context review, 100k+ token specs&lt;/td&gt;
&lt;td&gt;&lt;code&gt;kimi-k3.1-pro&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Only slice where the long-context premium pays for itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bilingual / schema-constrained extraction&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Strict JSON and mixed-language inputs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Multilingual analysis, general chat&lt;/td&gt;
&lt;td&gt;&lt;code&gt;qwen3.8-max&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Capability tier, not the cost play&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anything unmatched&lt;/td&gt;
&lt;td&gt;&lt;code&gt;deepseek-v4.1-flash&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;glm-5.3&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Explicit default; never implicit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A minimal router is a function over three signals: estimated input tokens, whether the request carries tools, and the CJK ratio of the prompt. If &lt;code&gt;tokens &amp;gt; 100_000&lt;/code&gt;, try Kimi. If &lt;code&gt;tools&lt;/code&gt; is non-empty and the task is code, use DeepSeek. If the response must match a schema, use GLM. Otherwise default to DeepSeek.&lt;/p&gt;

&lt;p&gt;Two rules keep it from becoming a latency lottery: one pinned upstream per key, so prompt caches survive mid-session, and billing that follows the model that actually served the call.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we measured, and what we did not
&lt;/h2&gt;

&lt;p&gt;The numbers above are list-price arithmetic, not a benchmark of answer quality. What we actually measured is narrower: protocol compatibility (45/45 on each surface), first-token latency (1.88s on the Anthropic path; 1.3–2.5s typical), tool-call round trips, and per-request &lt;code&gt;usage&lt;/code&gt;. We did not run a head-to-head quality eval against GPT-6.2 Sol for your workload, and we would not pretend a list-price table proves one.&lt;/p&gt;

&lt;p&gt;Prompt caching is passed through only when the upstream reports cached tokens; otherwise the field is &lt;code&gt;null&lt;/code&gt;, not &lt;code&gt;0&lt;/code&gt; — a missing measurement is not a zero.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this does not fit
&lt;/h2&gt;

&lt;p&gt;Three cases, stated plainly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Low-end traffic.&lt;/strong&gt; If your workload runs on GPT-6 Luna-class models at low per-token prices, the migration overhead is larger than the savings. The 4:1 math still holds, but the absolute dollars are too small to justify a compatibility pass. Stay where you are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You need OpenAI-only features.&lt;/strong&gt; Moderation, batch, realtime audio, and fine-tuning are not part of this surface. If they are load-bearing, this is not a drop-in.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You need cross-provider failover.&lt;/strong&gt; &lt;code&gt;deepseek-v4.1-flash&lt;/code&gt; and &lt;code&gt;glm-5.3&lt;/code&gt; have primary/standby upstreams; the gateway switches on primary failure. It never retries a stream mid-way. &lt;code&gt;qwen3.8-max&lt;/code&gt; / &lt;code&gt;kimi-k3.1-pro&lt;/code&gt; are single-upstream. If your SLA needs cross-provider DR for all models, this is not yet the right layer.&lt;/p&gt;

&lt;p&gt;Check your own ratio: if generation dominates, the table stops being useful. Recompute before migrating.&lt;/p&gt;

&lt;h2&gt;
  
  
  The $0, 24-hour Go-No-Go
&lt;/h2&gt;

&lt;p&gt;Send one real agent workflow. We run it against the four models at your token shape, compare it to your current bill, and return one page: cost per task, the routing mix that holds quality, and the compatibility issues. If it does not hold, the answer is no.&lt;/p&gt;

&lt;p&gt;It is $0, it takes 24 hours, and it does not require a meeting. That is the whole offer: &lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;flintapi.ai&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>agents</category>
      <category>llm</category>
    </item>
    <item>
      <title>Two ways model markup reaches your users: leaked DSML and a grammar deadlock</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Fri, 20 Nov 2026 10:20:25 +0000</pubDate>
      <link>https://dev.to/moozechen/two-ways-model-markup-reaches-your-users-leaked-dsml-and-a-grammar-deadlock-2i5o</link>
      <guid>https://dev.to/moozechen/two-ways-model-markup-reaches-your-users-leaked-dsml-and-a-grammar-deadlock-2i5o</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;How to use this file.&lt;/strong&gt; It is the Dev.to-ready copy of the post that is already live at&lt;br&gt;
&lt;code&gt;https://flintapi.ai/blog/model-markup-leaks-dsml-grammar-deadlock&lt;/code&gt;. &lt;code&gt;published: false&lt;/code&gt; keeps it a draft&lt;br&gt;
until someone flips it. &lt;code&gt;canonical_url&lt;/code&gt; points at our own copy so search engines credit the original.&lt;br&gt;
Publish via the Dev.to editor (paste body below the frontmatter) or via the API if a key is configured.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Both of these bugs look like "the model output is broken." Neither is. In both cases the model did something legal, and the layer that was supposed to interpret it disagreed.&lt;/p&gt;

&lt;p&gt;One leaks markup into the visible answer. The other turns a legal token into an HTTP 500. They share a root: &lt;strong&gt;the boundary between reasoning, content, and tool calls is a token, and every layer that touches it assumes a different vocabulary.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Two public reports cover this: OmniRoute #13930 (DeepSeek V4 native DSML markup leaking into message content) and vLLM #61574 (structured-output requests terminating with &lt;code&gt;grammar rejected tokens&lt;/code&gt;).&lt;/p&gt;




&lt;h2&gt;
  
  
  Case 1 — markup that arrives in &lt;code&gt;content&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;DeepSeek V4 emits native markup around tool invocations, using &lt;strong&gt;fullwidth vertical bars&lt;/strong&gt; (U+FF5C) rather than ASCII &lt;code&gt;|&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight xml"&gt;&lt;code&gt;&amp;lt;｜｜DSML｜｜ calls&amp;gt;
&amp;lt;｜｜DSML｜｜ invoke name="Read"&amp;gt;
&amp;lt;｜｜DSML｜｜ parameter name="path"&amp;gt;docs/parser.md&lt;span class="nt"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="na"&gt;｜｜DSML｜｜&lt;/span&gt; &lt;span class="na"&gt;parameter&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A parser that only knows &lt;code&gt;&amp;lt;tool&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; matches nothing, so the envelope is treated as ordinary text and streamed to the user verbatim. That is the OmniRoute report.&lt;/p&gt;

&lt;p&gt;The detail I find most useful: &lt;code&gt;｜&lt;/code&gt; and &lt;code&gt;|&lt;/code&gt; are visually identical in most terminals and editors. The bytes are &lt;code&gt;ef bd 9c&lt;/code&gt;, not &lt;code&gt;7c&lt;/code&gt;. So debug the bytes, not the log.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Minimal repro&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sN https://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;your-endpoint&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/v1/chat/completions \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"model":"deepseek-v4-flash","stream":true,
       "messages":[{"role":"user","content":"Read docs/parser.md and summarise it."}],
       "tools":[{"type":"function","function":{"name":"Read",
         "parameters":{"type":"object","required":["path"],
           "properties":{"path":{"type":"string"}}}}}]}'&lt;/span&gt; \
  &lt;span class="o"&gt;|&lt;/span&gt; tee raw.sse

&lt;span class="c"&gt;# is the leak a dialect gap or a real text answer?&lt;/span&gt;
grep -c &lt;span class="s1"&gt;$'\xef\xbd\x9c'&lt;/span&gt; raw.sse      &lt;span class="c"&gt;# &amp;gt;0  =&amp;gt; DSML bytes present&lt;/span&gt;
grep -o &lt;span class="s1"&gt;'"content":"[^"]\{0,80\}'&lt;/span&gt; raw.sse &lt;span class="o"&gt;|&lt;/span&gt; head
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then re-run the &lt;strong&gt;same&lt;/strong&gt; conversation with the &lt;code&gt;tools&lt;/code&gt; array removed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Markers vanish with no tools registered → the tags came from your prompt template or an upstream transform, not from the model's tool-call channel.&lt;/li&gt;
&lt;li&gt;Markers still appear → it is the parser's vocabulary, which is the OmniRoute case.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Three candidate causes, and how to tell them apart&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Candidate&lt;/th&gt;
&lt;th&gt;Discriminator&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Dialect gap&lt;/strong&gt; — parser only knows &lt;code&gt;&amp;lt;tool&amp;gt;&lt;/code&gt; / &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Hexdump shows &lt;code&gt;ef bd 9c&lt;/code&gt;; the tag never appears in the &lt;code&gt;tool_calls&lt;/code&gt; field either&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Dropped envelope on long context&lt;/strong&gt; — model skips &lt;code&gt;&amp;lt;invoke&amp;gt;&lt;/code&gt; and emits bare &lt;code&gt;&amp;lt;parameter&amp;gt;&lt;/code&gt; blocks&lt;/td&gt;
&lt;td&gt;Same prompt at ~5k vs ~30k input tokens; the failure appears only on the long one&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Demux ordering&lt;/strong&gt; — content is assembled from the byte stream before tool-call extraction runs&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;tool_calls&lt;/code&gt; object arrives &lt;strong&gt;and&lt;/strong&gt; the text still contains the envelope (duplication, not misclassification)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Those three need different fixes: a parser patch, schema-based matching on nameless blocks, and extraction before any content delta is emitted.&lt;/p&gt;




&lt;h2&gt;
  
  
  Case 2 — 649 five-hundreds in eight hours
&lt;/h2&gt;

&lt;p&gt;The vLLM report is the cleanest write-up of this class I have seen. A GLM-5.3 deployment logged &lt;strong&gt;649 &lt;code&gt;grammar rejected tokens&lt;/code&gt; terminations in 8 hours&lt;/strong&gt;, and &lt;strong&gt;625 of them ended on &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; (token 154843)&lt;/strong&gt;. Non-streaming requests terminated this way return HTTP 500.&lt;/p&gt;

&lt;p&gt;The sequence: a pure JSON-schema &lt;code&gt;response_format&lt;/code&gt;; an unconstrained bitmask row while reasoning; the model ending reasoning &lt;em&gt;implicitly&lt;/em&gt; with &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; instead of &lt;code&gt;&amp;lt;/think&amp;gt;&lt;/code&gt;; that token fed to a grammar that cannot start with it; &lt;code&gt;Failed to advance FSM&lt;/code&gt; → 500.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Minimal repro&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -s -o /dev/null -w &lt;span class="s1"&gt;'%{http_code}\n'&lt;/span&gt; https://&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;your-endpoint&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/v1/chat/completions \
  -H &lt;span class="s1"&gt;'content-type: application/json'&lt;/span&gt; \
  -d &lt;span class="s1"&gt;'{"model":"glm-5.3","temperature":0,"max_tokens":96,
       "messages":[
        {"role":"user","content":"Read docs/parser.md, then summarise it as JSON."},
        {"role":"assistant","content":"","tool_calls":[{"id":"c1","type":"function",
          "function":{"name":"Read","arguments":"{\"path\":\"docs/parser.md\"}"}}]},
        {"role":"tool","tool_call_id":"c1",
         "content":"GLM wraps calls in &amp;lt;tool_call&amp;gt;...&amp;lt;arg_key&amp;gt;k&amp;lt;/arg_key&amp;gt;&amp;lt;arg_value&amp;gt;v&amp;lt;/arg_value&amp;gt;"}],
       "response_format":{"type":"json_schema","json_schema":{"name":"s","schema":{
         "type":"object","properties":{"summary":{"type":"string"}},
         "required":["summary"],"additionalProperties":false}}}}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A tool result that &lt;strong&gt;quotes the model's own tags&lt;/strong&gt; is what makes it sample &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; mid-reasoning. Plain-worded tool results usually do not reproduce it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Three candidate causes, and how to tell them apart&lt;/strong&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Candidate&lt;/th&gt;
&lt;th&gt;Discriminator&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Unconstrained reasoning row&lt;/strong&gt; — implicit end sampled where the grammar cannot start with it&lt;/td&gt;
&lt;td&gt;Engine log has one &lt;code&gt;Failed to advance FSM ... tokens 154843&lt;/code&gt; per 500; 200 comes back when &lt;code&gt;tool_choice:"auto"&lt;/code&gt; or a tool is required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Template injects the token&lt;/strong&gt; — chat template puts &lt;code&gt;&amp;lt;tool_call&amp;gt;&lt;/code&gt; into the prompt before generation&lt;/td&gt;
&lt;td&gt;Render the template and inspect it; the literal token appears before sampling starts, on every seed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Backend difference&lt;/strong&gt; — xgrammar vs a different structured-output backend&lt;/td&gt;
&lt;td&gt;Same seeded request against each backend; only one returns 500&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first is fixed upstream by masking implicit reasoning-end tokens in unconstrained rows. The other two are configuration problems on your side, and no upstream patch will find them.&lt;/p&gt;




&lt;h2&gt;
  
  
  What we changed on our side
&lt;/h2&gt;

&lt;p&gt;We run a gateway for these models, so both bugs land on us first. Four rules came out of it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Count latency at the first frame, not the first &lt;code&gt;content&lt;/code&gt; delta.&lt;/strong&gt; On reasoning models the gap is large: one measured request had a first token at 2.13s and a total of 7.22s. Timing to first &lt;em&gt;content&lt;/em&gt; measures the model's thinking, not your network.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Stream through, never buffer and replay.&lt;/strong&gt; We measured our own gateway at a first-token-to-total ratio of 0.9977 when it buffered the upstream response: first token and completion arrived together, which makes every latency number a lie. After per-frame forwarding the ratio is 0.389, with about 5.3 ms of overhead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate reasoning by field, never by regex over content.&lt;/strong&gt; Five field spellings are stripped; a normal answer is byte-identical afterwards. A turn that produced only reasoning returns a fixed fallback string plus a status field, instead of a 200 with empty content — the failure mode that makes this class invisible.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Report tokens you did not receive as null, not zero.&lt;/strong&gt; If the upstream omits &lt;code&gt;reasoning_tokens&lt;/code&gt;, the field is &lt;code&gt;null&lt;/code&gt;. A fabricated zero would make an unmeasured bill look measured.&lt;/p&gt;

&lt;p&gt;None of this is exotic. It is just the unglamorous part: pick one vocabulary for the boundary, enforce it at the edge, and make the unmeasurable case look different from the zero case.&lt;/p&gt;

&lt;p&gt;If you are chasing either bug, hexdump the frame before you read the logs.&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>programming</category>
      <category>debugging</category>
    </item>
    <item>
      <title>A real consulting deliverable, unedited</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 14:31:27 +0000</pubDate>
      <link>https://dev.to/moozechen/a-real-consulting-deliverable-unedited-2a4j</link>
      <guid>https://dev.to/moozechen/a-real-consulting-deliverable-unedited-2a4j</guid>
      <description>&lt;p&gt;This is the &lt;strong&gt;unedited output&lt;/strong&gt; of a consulting pipeline, for a prompt about a 5-person B2B SaaS&lt;br&gt;
at 30k MRR with 40 customers on a flat 750/month plan, asking whether to raise prices 20% for&lt;br&gt;
new customers or add a cheaper tier. The question is generic, so nothing here is confidential.&lt;/p&gt;

&lt;p&gt;Two honest facts before you read it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It took about six minutes&lt;/strong&gt; end to end. A trivial prompt finishes in about 30–80 seconds; a real
decision question does not. Anyone claiming a strategy document in two seconds is returning a
single model's stream-of-consciousness.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It cost a few cents of tokens&lt;/strong&gt;, metered from the balance — not a retainer, not a seat license.&lt;/li&gt;
&lt;/ul&gt;




&lt;h1&gt;
  
  
  Consulting Report: Pricing Decision for a B2B SaaS at $30k MRR
&lt;/h1&gt;

&lt;h2&gt;
  
  
  1. Executive Summary
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Decision: Raise prices 20% for new customers. Do not add a cheaper tier at this time.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Raise the standard rate from &lt;strong&gt;$750/month to $900/month for new customers&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Grandfather the existing 40 customers at $750/month, at least for a defined period.&lt;/li&gt;
&lt;li&gt;Hold off on a cheaper tier until there is clear evidence of a distinct lower-price segment with acceptable unit economics.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The company is at a scale where improving ARPU, margin, and positioning matters more than adding operational complexity or chasing lower-end volume. A 20% increase is moderate, protects the existing revenue base, and requires minimal operational change.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Current Economics
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Customers&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Price&lt;/td&gt;
&lt;td&gt;$750/month flat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MRR&lt;/td&gt;
&lt;td&gt;$30,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARR run rate&lt;/td&gt;
&lt;td&gt;$360,000&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ARPU&lt;/td&gt;
&lt;td&gt;$750/month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Team size&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The business has a single plan, one price point, and a small team. This means pricing changes should be simple and should avoid creating new support, onboarding, or packaging burdens unless the ROI is very clear.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Option Analysis
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Option A: Raise prices 20% for new customers
&lt;/h3&gt;

&lt;p&gt;Proposed new price: &lt;strong&gt;$900/month&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Revenue impact:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;
Each new customer adds &lt;strong&gt;$150/month more&lt;/strong&gt; than under the current price. Existing revenue remains stable at $30k MRR.&lt;/p&gt;

&lt;p&gt;For example, acquiring 10 new customers in a year would generate:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Current pricing: &lt;code&gt;10 × $750 × 12 = $90,000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;New pricing: &lt;code&gt;10 × $900 × 12 = $108,000&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Incremental revenue: &lt;strong&gt;$18,000&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The short-term revenue lift is modest because the existing base is grandfathered, but the strategic benefit is meaningful: you reset the value anchor without risking current customers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key advantages:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Low operational complexity: only sales and marketing pricing updates.&lt;/li&gt;
&lt;li&gt;Low churn risk for existing customers.&lt;/li&gt;
&lt;li&gt;Improves unit economics and ARPU.&lt;/li&gt;
&lt;li&gt;Positions the product as more valuable.&lt;/li&gt;
&lt;li&gt;Keeps the product and packaging unchanged.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Main concern:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Some new prospects may push back on the higher price if the value story is weak.&lt;/li&gt;
&lt;/ul&gt;




&lt;h3&gt;
  
  
  Option B: Add a cheaper tier
&lt;/h3&gt;

&lt;p&gt;A cheaper tier might be, for example, &lt;strong&gt;$390–$450/month&lt;/strong&gt; with limited features or usage.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Revenue impact depends heavily on mix.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Suppose a cheaper tier is set at $450/month:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If one existing $750 customer downgrades, the company loses &lt;strong&gt;$300/month&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It takes &lt;strong&gt;two new lower-tier customers just to replace the revenue&lt;/strong&gt; of one downgrade.&lt;/li&gt;
&lt;li&gt;If lower-tier customers also demand more support relative to their spend, the ne&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;The full, unstyled version (with the risk section) is here:&lt;/em&gt;&lt;br&gt;
&lt;a href="https://flintapi.ai/blog/2026-10-28-sample-consulting-report" rel="noopener noreferrer"&gt;https://flintapi.ai/blog/2026-10-28-sample-consulting-report&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you want to try the same thing on your own problem, describe it and you get the plan first,&lt;br&gt;
then decide whether to run it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>consulting</category>
      <category>ai</category>
      <category>startup</category>
      <category>productivity</category>
    </item>
    <item>
      <title>What an 81-second strategy deliverable actually looks like</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 13:21:11 +0000</pubDate>
      <link>https://dev.to/moozechen/what-an-81-second-strategy-deliverable-actually-looks-like-2c5k</link>
      <guid>https://dev.to/moozechen/what-an-81-second-strategy-deliverable-actually-looks-like-2c5k</guid>
      <description>&lt;p&gt;We build a consulting product. Not an API, not a chatbot — a thing you describe a business&lt;br&gt;
problem to, and 81 seconds later a structured, CEO-ready document comes back that you could&lt;br&gt;
put in front of a board.&lt;/p&gt;

&lt;p&gt;That number came from a deliberate measurement, not marketing. Last night I ran the smallest&lt;br&gt;
possible request through our pipeline and timed it end to end:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;POST /v1/consulting/tasks   { query: "Say hi in one sentence.", mode: consulting_report }
→ 11s running
→ 21s running
→ 71s running
→ 81s succeeded          answer length: 2,178 characters   artifacts: 1
→ balance charged, usage row written
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A trivial prompt, and it still took 81 seconds. That is the honest cost of a multi-stage&lt;br&gt;
pipeline: reframe the question, decompose it into sub-tasks, route each sub-task to a&lt;br&gt;
different model, synthesise the results, then assemble a report. Anyone who tells you their&lt;br&gt;
LLM product answers a &lt;em&gt;strategic&lt;/em&gt; question in two seconds is either caching, or returning a&lt;br&gt;
single model's stream-of-consciousness and calling it a deliverable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the deliverable is made of
&lt;/h2&gt;

&lt;p&gt;The output is not a paragraph. It is a document with a fixed skeleton:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Executive summary&lt;/strong&gt; — the answer, in the form you could read aloud in a meeting&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Context and goals&lt;/strong&gt; — what we understood the problem to be&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Key findings&lt;/strong&gt; — the parts that surprised us, or that constrain the answer&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recommended design&lt;/strong&gt; — the actual proposal, with options and trade-offs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Risks and mitigations&lt;/strong&gt; — what would make this fail, and what we'd do about it&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The interesting engineering problem is not generating text. It is &lt;strong&gt;making five sections that&lt;br&gt;
agree with each other&lt;/strong&gt;, when each was produced by a different model with a different context&lt;br&gt;
window. That is where most of the 81 seconds goes, and it is why a single-model answer reads&lt;br&gt;
fluent but incoherent if you check one section against another.&lt;/p&gt;

&lt;h2&gt;
  
  
  The boring parts nobody shows you
&lt;/h2&gt;

&lt;p&gt;Three things we had to fix before the pipeline was worth shipping:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A dead upstream must not kill the whole run.&lt;/strong&gt; Our router used to pick models from a&lt;br&gt;
fixed per-domain list. When one provider's account ran out of credit, every request died with&lt;br&gt;
&lt;code&gt;HTTP 403 用户额度不足&lt;/code&gt; — and the failure surfaced as a &lt;em&gt;content&lt;/em&gt; string inside a 200 response.&lt;br&gt;
Now: failures are detected as failures, the run does not get billed, and the router fails over&lt;br&gt;
to a provider that is actually healthy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. A thinking model leaks its thinking.&lt;/strong&gt; Some upstreams stream the entire answer in a&lt;br&gt;
&lt;code&gt;reasoning_content&lt;/code&gt; field and leave &lt;code&gt;content&lt;/code&gt; empty. Our first fix was to copy it into&lt;br&gt;
&lt;code&gt;content&lt;/code&gt; so clients saw &lt;em&gt;something&lt;/em&gt;; the second fix was to buffer it and only emit it if no&lt;br&gt;
real content ever arrives. Streaming should give you the answer, not the rehearsal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Never promise a channel you cannot deliver on.&lt;/strong&gt; The product page used to say "leave and&lt;br&gt;
we'll email you the report." For one day our transactional email quota was exhausted, which&lt;br&gt;
meant leaving the page meant losing the report. The copy now says the report stays on the page,&lt;br&gt;
and email is a &lt;em&gt;if available&lt;/em&gt; extra. Two words change, one broken promise avoided.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it's not
&lt;/h2&gt;

&lt;p&gt;It is not a replacement for a consultant who knows your industry. It is the thing you do&lt;br&gt;
&lt;em&gt;before&lt;/em&gt; hiring one: getting a structured initial position, in a minute, so that the expensive&lt;br&gt;
conversation starts from a draft instead of a blank page.&lt;/p&gt;

&lt;p&gt;And it costs tokens, not retainer hours — which is exactly why it runs on a token-metered&lt;br&gt;
pipeline rather than a per-seat subscription.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;If you want to see the shape of the output, describe a problem you actually have. The report&lt;br&gt;
appears in the page, usually under two minutes.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>consulting</category>
      <category>ai</category>
      <category>startup</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Build a Multimodal App in an Afternoon with FlintAPI</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:34:10 +0000</pubDate>
      <link>https://dev.to/moozechen/build-a-multimodal-app-in-an-afternoon-with-flintapi-5g62</link>
      <guid>https://dev.to/moozechen/build-a-multimodal-app-in-an-afternoon-with-flintapi-5g62</guid>
      <description>&lt;p&gt;FlintAPI unifies a dozen Chinese AI models behind one OpenAI-compatible endpoint. Swap your base URL to &lt;a href="https://flintapi.ai/v1" rel="noopener noreferrer"&gt;https://flintapi.ai/v1&lt;/a&gt; and start building in minutes. New accounts get free starter credit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a unified API
&lt;/h2&gt;

&lt;p&gt;Managing multiple provider accounts wastes engineering time. One key, one SDK, every model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;

&lt;p&gt;Send a request to /v1/chat/completions and switch models by changing one field.&lt;/p&gt;

&lt;p&gt;Learn more at &lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;https://flintapi.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>api</category>
      <category>programming</category>
    </item>
    <item>
      <title>How Flint-Smart Routing Can Cut Your AI Bill</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:33:29 +0000</pubDate>
      <link>https://dev.to/moozechen/how-flint-smart-routing-can-cut-your-ai-bill-1l6a</link>
      <guid>https://dev.to/moozechen/how-flint-smart-routing-can-cut-your-ai-bill-1l6a</guid>
      <description>&lt;p&gt;FlintAPI unifies a dozen Chinese AI models behind one OpenAI-compatible endpoint. Instead of juggling a dozen provider accounts, you send every request to &lt;a href="https://flintapi.ai/v1/chat/completions" rel="noopener noreferrer"&gt;https://flintapi.ai/v1/chat/completions&lt;/a&gt; and switch models by changing a single field.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why automatic routing matters
&lt;/h2&gt;

&lt;p&gt;Picking the right model per task is tedious and expensive. A flagship model is overkill for classification; a small model struggles with reasoning. Flint-Smart analyzes each prompt and routes to the best model for the job — usually the cheapest one that still does it well.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;

&lt;p&gt;Point your OpenAI-compatible client at FlintAPI, set model=flint-smart, and ship. New accounts get free starter credit — no credit card required.&lt;/p&gt;

&lt;p&gt;Learn more at &lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;https://flintapi.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>productivity</category>
    </item>
    <item>
      <title>The Chinese LLM Landscape in 2026: A Practical Guide</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:32:47 +0000</pubDate>
      <link>https://dev.to/moozechen/the-chinese-llm-landscape-in-2026-a-practical-guide-522h</link>
      <guid>https://dev.to/moozechen/the-chinese-llm-landscape-in-2026-a-practical-guide-522h</guid>
      <description>&lt;p&gt;FlintAPI unifies a dozen Chinese AI models behind one OpenAI-compatible endpoint. Swap your base URL to &lt;a href="https://flintapi.ai/v1" rel="noopener noreferrer"&gt;https://flintapi.ai/v1&lt;/a&gt; and start building in minutes. New accounts get free starter credit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a unified API
&lt;/h2&gt;

&lt;p&gt;Managing multiple provider accounts wastes engineering time. One key, one SDK, every model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get started
&lt;/h2&gt;

&lt;p&gt;Send a request to /v1/chat/completions and switch models by changing one field.&lt;/p&gt;

&lt;p&gt;Learn more at &lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;https://flintapi.ai&lt;/a&gt;&lt;/p&gt;

</description>
      <category>llm</category>
      <category>ai</category>
      <category>china</category>
      <category>programming</category>
    </item>
    <item>
      <title>What we tell users when 9 of our 13 models are down</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:30:01 +0000</pubDate>
      <link>https://dev.to/moozechen/what-we-tell-users-when-9-of-our-13-models-are-down-21j9</link>
      <guid>https://dev.to/moozechen/what-we-tell-users-when-9-of-our-13-models-are-down-21j9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Update (2026-10-28, 21:44 UTC+8).&lt;/strong&gt; The upstream account behind these models recovered within hours: &lt;code&gt;GET /api/health/models&lt;/code&gt; now reports &lt;strong&gt;11 of 13 healthy&lt;/strong&gt;. The numbers below (four healthy, one account at minus three cents) are the state at the time of writing and are kept as the reason this contract exists — not as the current status. For the live number, always call the endpoint.&lt;br&gt;
A gateway fails in two ways. The loud way is a 500. The quiet way is a model that&lt;br&gt;
has been returning &lt;code&gt;503&lt;/code&gt; for six hours while every dashboard says "active".&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We shipped the quiet way twice this month. This is what we changed, and the&lt;br&gt;
contract you can now check before you build against us.&lt;/p&gt;
&lt;h2&gt;
  
  
  The mistake
&lt;/h2&gt;

&lt;p&gt;We had a health checker that did this, more or less:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;catalogue&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;upstream_returns_2xx&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;   &lt;span class="nf"&gt;mark_healthy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;                        &lt;span class="nf"&gt;mark_unhealthy&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;unhealthy_for_2_checks&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt; &lt;span class="nf"&gt;deactivate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;model&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Two assumptions in four lines, both wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One: "unhealthy" is not always the model's fault.&lt;/strong&gt; When the upstream account&lt;br&gt;
runs out of balance, &lt;em&gt;every&lt;/em&gt; model behind it fails at the same instant, with the&lt;br&gt;
same error. My checker saw eight failures and dutifully deactivated eight models.&lt;br&gt;
The models were fine. The account was empty. Deactivating them made the outage&lt;br&gt;
longer, because now they would not even be retried.&lt;/p&gt;

&lt;p&gt;The fix was a distinction the code did not previously have:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;all_checks_failed_with_account_level_error&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;SKIP auto-isolate: account-level failure (balance) -- do NOT deactivate&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;isolate_the_single_bad_model&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now that line exists in the log, and it looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[auto-isolate] SKIP kimi-k3: account-level failure (balance) -- do NOT deactivate the model
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Two: "2xx from upstream" does not mean "works for this model name".&lt;/strong&gt; Some&lt;br&gt;
suppliers route by model name and return a perfectly valid 200 with an error body,&lt;br&gt;
or accept the name in &lt;code&gt;/models&lt;/code&gt; and reject it in &lt;code&gt;/chat/completions&lt;/code&gt;. A health&lt;br&gt;
check that only looks at status codes will mark those models healthy forever.&lt;/p&gt;
&lt;h2&gt;
  
  
  The contract we publish now
&lt;/h2&gt;

&lt;p&gt;If a model is unavailable, the response is not a mystery. It is this, with&lt;br&gt;
&lt;code&gt;HTTP 503&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"message"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Service temporarily unavailable: upstream model capacity is exhausted for the requested model. Please retry later or contact support@flintapi.ai."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"service_unavailable"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"upstream_capacity_exhausted"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"hint"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Other models may still be available right now: https://flintapi.ai/api/health/models"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"available_models"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"deepseek-v4-pro"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"deepseek-v4.1-flash"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"glm-5.3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"glm-5.3-flash"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Three properties matter here:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;A machine-readable code&lt;/strong&gt; (&lt;code&gt;upstream_capacity_exhausted&lt;/code&gt;), so your retry and
failover logic does not have to parse English.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The list of models that are working right now&lt;/strong&gt;, so a 503 is actionable
— you can fall back without a human.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;Retry-After&lt;/code&gt;&lt;/strong&gt;, so a naive client does not hammer us in a loop.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And the single source of truth, which is public and needs no auth:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET https://flintapi.ai/api/health/models
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It returns &lt;code&gt;total&lt;/code&gt; and &lt;code&gt;healthy&lt;/code&gt; counts joined against the catalogue that we&lt;br&gt;
actually serve. If that endpoint says four models are healthy, then four models&lt;br&gt;
are healthy — we do not keep a second, prettier number anywhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we do not "just multiply the model list"
&lt;/h2&gt;

&lt;p&gt;It is tempting to advertise thirty models and route whatever works. That converts&lt;br&gt;
our availability problem into your correctness problem: your temperature, your&lt;br&gt;
token budget, your structured-output assumptions silently run on a different model&lt;br&gt;
than the one you named. We would rather return a loud 503 for a named model than a&lt;br&gt;
quiet 200 from a substitute.&lt;/p&gt;

&lt;p&gt;If you &lt;em&gt;do&lt;/em&gt; want substitution, it is opt-in: send &lt;code&gt;model: "flint"&lt;/code&gt; and the router&lt;br&gt;
decomposes the prompt and picks per sub-task, and it says which model answered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers, dated
&lt;/h2&gt;

&lt;p&gt;As of 2026-10-28: &lt;strong&gt;13 models in the catalogue, 4 healthy&lt;/strong&gt;, because one upstream&lt;br&gt;
account is at a negative balance of about three cents. This post exists partly&lt;br&gt;
because that is an embarrassing ratio and partly because the interesting part is&lt;br&gt;
not the ratio — it is that the ratio is &lt;em&gt;published, checkable, and per-model&lt;/em&gt;&lt;br&gt;
rather than hidden behind a green dashboard.&lt;/p&gt;

&lt;p&gt;If you are running something similar, two checks are worth adding today:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Distinguish &lt;strong&gt;account-level&lt;/strong&gt; failures from &lt;strong&gt;model-level&lt;/strong&gt; failures before any
automated isolation runs. Otherwise one billing problem takes out your whole
catalogue and looks like thirteen separate bugs.&lt;/li&gt;
&lt;li&gt;Return the &lt;strong&gt;currently-available list&lt;/strong&gt; inside your error body. It costs one
join and turns every 503 into a self-healing instruction.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Related: &lt;a href="https://dev.to/blog/chinese-llm-api-pricing-2026"&gt;What Chinese LLM APIs actually cost in 2026&lt;/a&gt; and&lt;br&gt;
&lt;a href="https://dev.to/blog/health-check-said-up-model-was-gone"&gt;Why your health check said "up" while the model was gone&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>devops</category>
      <category>api</category>
      <category>programming</category>
    </item>
    <item>
      <title>Flint-Smart: The Model That Picks the Best Model</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:29:03 +0000</pubDate>
      <link>https://dev.to/moozechen/flint-smart-the-model-that-picks-the-best-model-21nb</link>
      <guid>https://dev.to/moozechen/flint-smart-the-model-that-picks-the-best-model-21nb</guid>
      <description>&lt;h1&gt;
  
  
  Flint-Smart: The Model That Picks the Best Model
&lt;/h1&gt;

&lt;p&gt;Choosing the right AI model for every request wastes engineering time. Flint-Smart does it automatically.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Works
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Send request with model: flint-smart&lt;/li&gt;
&lt;li&gt;FlintAPI analyzes your prompt&lt;/li&gt;
&lt;li&gt;Routes to the best model&lt;/li&gt;
&lt;li&gt;Same API, smarter backend&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why This Matters
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;No model selection overhead&lt;/li&gt;
&lt;li&gt;Always up-to-date&lt;/li&gt;
&lt;li&gt;Cost-aware routing&lt;/li&gt;
&lt;li&gt;One key, zero decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;Try flint-smart free&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>programming</category>
    </item>
    <item>
      <title>Why Your AI Stack Needs a Unified API in 2026</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:28:44 +0000</pubDate>
      <link>https://dev.to/moozechen/why-your-ai-stack-needs-a-unified-api-in-2026-nod</link>
      <guid>https://dev.to/moozechen/why-your-ai-stack-needs-a-unified-api-in-2026-nod</guid>
      <description>&lt;h1&gt;
  
  
  Why Your AI Stack Needs a Unified API in 2026
&lt;/h1&gt;

&lt;p&gt;Managing 15 different AI provider accounts in 2026 is like managing 15 different bank accounts. Every provider has their own SDK, auth scheme, rate limit, and pricing model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;FlintAPI solves this with one API key, a dozen models.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Real Cost
&lt;/h2&gt;

&lt;p&gt;A typical AI startup in 2026 juggles: DeepSeek for reasoning, Qwen for long context, GLM for Chinese, Kimi for coding. That is 4 API keys, 4 dashboards, 4 rate limit monitors. Engineering time spent on glue instead of product.&lt;/p&gt;

&lt;h2&gt;
  
  
  One Endpoint, All Models
&lt;/h2&gt;

&lt;p&gt;Send requests to &lt;a href="https://flintapi.ai/v1/chat/completions" rel="noopener noreferrer"&gt;https://flintapi.ai/v1/chat/completions&lt;/a&gt;. Switch models by changing one field.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try Free
&lt;/h2&gt;

&lt;p&gt;New accounts get 20 dollars free credit. No credit card.&lt;br&gt;
&lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;Get started&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Related: &lt;a href="https://dev.to/blog/chinese-llm-api-pricing-2026"&gt;what Chinese LLM APIs actually cost per 1M tokens&lt;/a&gt;, and &lt;a href="https://dev.to/pricing"&gt;the exact prices on this site&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
      <category>startup</category>
    </item>
    <item>
      <title>DeepSeek V4 Pro on FlintAPI: Quick Start</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:28:25 +0000</pubDate>
      <link>https://dev.to/moozechen/deepseek-v4-pro-on-flintapi-quick-start-4m6i</link>
      <guid>https://dev.to/moozechen/deepseek-v4-pro-on-flintapi-quick-start-4m6i</guid>
      <description>&lt;h1&gt;
  
  
  DeepSeek V4 Pro on FlintAPI: Quick Start
&lt;/h1&gt;

&lt;p&gt;DeepSeek V4 Pro is one of the strongest reasoning models available.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why DeepSeek V4 Pro
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Top-tier reasoning for math, logic, code&lt;/li&gt;
&lt;li&gt;128K context window&lt;/li&gt;
&lt;li&gt;Competitive pricing through FlintAPI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Quick Start
&lt;/h2&gt;

&lt;p&gt;Use the standard OpenAI-compatible endpoint with model deepseek-v4-pro.&lt;/p&gt;

&lt;h2&gt;
  
  
  Model Guide
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task&lt;/th&gt;
&lt;th&gt;Best Model&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coding&lt;/td&gt;
&lt;td&gt;deepseek-v4-pro, kimi-k2.6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Chinese&lt;/td&gt;
&lt;td&gt;glm-5.1, qwen3.7-max&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Long docs&lt;/td&gt;
&lt;td&gt;qwen3.7-max&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fast/cheap&lt;/td&gt;
&lt;td&gt;flint-smart&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://flintapi.ai" rel="noopener noreferrer"&gt;Get your API key&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deepseek</category>
      <category>ai</category>
      <category>tutorial</category>
      <category>api</category>
    </item>
    <item>
      <title>Selling tokens below cost — what a margin audit found in our own gateway</title>
      <dc:creator>Yucong Chen</dc:creator>
      <pubDate>Wed, 28 Oct 2026 12:25:07 +0000</pubDate>
      <link>https://dev.to/moozechen/selling-tokens-below-cost-what-a-margin-audit-found-in-our-own-gateway-2665</link>
      <guid>https://dev.to/moozechen/selling-tokens-below-cost-what-a-margin-audit-found-in-our-own-gateway-2665</guid>
      <description>&lt;p&gt;We run a small OpenAI-compatible gateway in front of Chinese LLMs. Today we did&lt;br&gt;
something uncomfortable: we took our own rate card, divided every sell price by the&lt;br&gt;
cost we pay upstream, and looked at the ratios. We expected a narrow spread. What we&lt;br&gt;
found was a range from 0.13x to 12.5x, with five models priced below cost.&lt;/p&gt;

&lt;p&gt;The worst offender was also the easiest to measure, because the upstream publishes its&lt;br&gt;
price page and we have our own usage logs.&lt;/p&gt;
&lt;h2&gt;
  
  
  The arithmetic
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;deepseek-v4-pro&lt;/code&gt; is quoted by its vendor, per 1M tokens, in USD:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;                        input (cache miss)   output
off-peak                        $0.66         $1.98
peak                            $1.32         $3.96
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Peak hours are 01:00–04:00 and 06:00–10:00 UTC on weekdays; everything else is&lt;br&gt;
off-peak. We were charging &lt;strong&gt;$0.98 in / $1.96 out&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Then we pulled every usage row for that model from our own database — 23 rows, 800&lt;br&gt;
input tokens and 6,341 output tokens total, split by whether the request fell in peak&lt;br&gt;
hours:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;period     rows   input tok   output tok   we charged   upstream cost   margin
off-peak     10         680        6,121      $0.00647        $0.01257   -$0.00610
peak         13         120          220      $0.00030        $0.00103   -$0.00073
total        23         800        6,341      $0.00676        $0.01360   -$0.00683
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Minus 101%. We were paying roughly two dollars for every dollar we billed, and the&lt;br&gt;
sample was small enough that nobody had noticed. The input side was fine; the output&lt;br&gt;
side was underwater at every hour of the day.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this happens
&lt;/h2&gt;

&lt;p&gt;Not through one bad decision. Through a series of locally reasonable ones:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The rate card was a collage.&lt;/strong&gt; Some models were priced at 1.43x cost (sane), some
at 3.3x (also fine, cheap models), some at 1.00x (no margin at all), and five below
1.0x. Each number was defensible when it was typed. Nobody ever computed the whole
column.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost drifted under a fixed price.&lt;/strong&gt; The upstream changed its price list at least
once while our sell price sat still. A price you set once is a price you are
accidentally holding against a moving cost.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The cost field itself was untrustworthy.&lt;/strong&gt; One model's stored cost implied a 12x
markup would be needed to break even — a strong signal that the stored number was
wrong, not the price. If you multiply a bad cost by any margin, you get a confident
wrong answer.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That third point is the one that generalizes. Before you reprice, audit the&lt;br&gt;
denominator.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "peak" does to a flat price
&lt;/h2&gt;

&lt;p&gt;The same model costs twice as much between 06:00 and 10:00 UTC on a weekday. A single&lt;br&gt;
flat output price therefore has to cover the peak, or it is only profitable on&lt;br&gt;
weekends. If you publish one number per model, that number is a peak-hours number and&lt;br&gt;
should be set that way — or you should say plainly that you route around the peak.&lt;/p&gt;

&lt;p&gt;We have not finished repricing. The honest status is: we know which rows are safely&lt;br&gt;
above cost, which rows are safely below, and which rows are blocked on getting a real&lt;br&gt;
bill from a supplier whose price list we do not have. Guessing the last group would&lt;br&gt;
just move the error.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four checks we now run
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Ratio audit, per row.&lt;/strong&gt; &lt;code&gt;sell / cost&lt;/code&gt; for input and output, weekly. Any row below
1.25x opens a ticket; below 1.0x is an incident.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Official list prices, not memory.&lt;/strong&gt; Fetch the vendor's pricing page when auditing;
third-party comparison sites disagreed with the vendor by up to 2x in our sample.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Realized margin from your own logs, not from the rate card.&lt;/strong&gt; The rate card says
what you intended. The usage table says what happened. Split by peak/off-peak and by
cached/uncached input if the vendor bills them differently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Do not reprice off an unaudited cost field.&lt;/strong&gt; If the implied markup is absurd in
either direction, the cost is the suspect.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Why publish this
&lt;/h2&gt;

&lt;p&gt;Because the alternative is a quiet number that quietly gets worse. A gateway is a&lt;br&gt;
margin business with a thin spread and a moving denominator; the failure mode is not a&lt;br&gt;
crash, it is a ratio. And because a price article without a date is a rumour — so the&lt;br&gt;
numbers above are dated 2026-10-28, and the live model list is at&lt;br&gt;
&lt;a href="https://flintapi.ai/api/health/models" rel="noopener noreferrer"&gt;&lt;code&gt;/api/health/models&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you are running something similar: pull one week of usage, join it to your cost&lt;br&gt;
table, and compute the ratio per row. It takes twenty minutes and it is the most&lt;br&gt;
uncomfortable twenty minutes of the quarter.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Related: &lt;a href="https://dev.to/blog/chinese-llm-api-pricing-2026"&gt;What Chinese LLM APIs actually cost in 2026&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>startup</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
