<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by LIBAOXIA on Medium]]></title>
        <description><![CDATA[Stories by LIBAOXIA on Medium]]></description>
        <link>https://medium.com/@108729447?source=rss-a7341ae8d6f2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by LIBAOXIA on Medium</title>
            <link>https://medium.com/@108729447?source=rss-a7341ae8d6f2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 14:16:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@108729447/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[he messy truth about team AI spending — and how we tamed it]]></title>
            <link>https://medium.com/@108729447/he-messy-truth-about-team-ai-spending-and-how-we-tamed-it-892ead995e9c?source=rss-a7341ae8d6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/892ead995e9c</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[gls]]></category>
            <category><![CDATA[government]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[LIBAOXIA]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 01:59:29 GMT</pubDate>
            <atom:updated>2026-08-20T01:59:29.810Z</atom:updated>
            <content:encoded><![CDATA[<p>After small teams adopt AI, the first component that typically fails is not model performance, but **billing management**.</p><p>We encountered this exact issue early on: one team member ran batch processing via DeepSeek, another called Zhipu to generate copy, and another used Tongyi for retrieval tasks. Each person configured an individual API Key on their local device and registered a separate account with the corresponding platform. Everything operated smoothly for the first two weeks, but when month-end arrived:</p><p>- A dozen invoices piled up, with no one able to clearly match which expenditure corresponded to which project;<br>- A high-cost model was invoked repeatedly, leading to unnoticeable budget overruns;<br>- When a team member left the company, their local API Key remained active, as no one remembered to revoke it.</p><p>This is not an isolated case. Almost all teams transitioning from “individual trial use” to “team-wide usage” hit this bottleneck: **the more models are adopted, the more fragmented billing becomes; the larger the team grows, the less controllable API Keys are**.</p><p>Our subsequent solution was to unify 31 models under **a single account**, and manage them via an aggregation layer such as API Hub. The core implementation covers four key aspects:</p><p>**1. One account with multiple revocable API Keys** <br>We no longer distribute the primary account’s API Key. Instead, we issue an independent API Key for each team member and each project. When an employee leaves, the key can be revoked with one click in the backend without accessing the primary account. This achieves decoupling between personnel and credentials.</p><p>**2. Unified quota pool and a single consolidated bill** <br>All API Keys share the same quota pool. At the end of the month, you only need to check one balance statement and one usage detail sheet, eliminating the need to reconcile invoices from ten different suppliers. This simplifies workflows for both finance teams and team leaders.</p><p>**3. Full visibility of all usage** <br>Every model invocation can be traced back to details including “which model was called / how many tokens were consumed / how much was spent”. Usage data can be filtered and queried by API Key or by model. Which team member or service is consuming excessive costs can be identified at a glance — no more discovering overruns only after the bill is issued.</p><p>**4. Configurable budget caps** <br>The account balance itself acts as a hard upper limit: you spend only what you pre-charge, and service is suspended once the balance is exhausted to prevent overspending. Furthermore, quotas can be **locked to specified models**, preventing accidental invocation of high-cost models that would exhaust the entire budget.</p><p>Technically, the solution provides an OpenAI-compatible `/v1` interface for external calls, resulting in extremely low migration costs: you only need to modify the `base_url` in your code, and almost no changes are required for original invocations. Upstream providers including DeepSeek, Zhipu, Tongyi and Kimi are all aggregated behind a single unified key.</p><p>In retrospect, the true cost of AI adoption for teams does not solely come from model unit pricing, but from the hidden losses caused by **invisibility, uncontrollability, and unreconcilability of expenditures**. Managing a unified account well is far more valuable than arguing over which model saves one cent per thousand tokens.</p><p>If you are also troubled by your team’s AI billing management, you can register to claim 1 million tokens for a free trial, and experience for yourself what it feels like to “manage 31 models through one single account” at: apihub4u.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=892ead995e9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cross-posting our experience, since vendor risk keeps coming up here:]]></title>
            <link>https://medium.com/@108729447/cross-posting-our-experience-since-vendor-risk-keeps-coming-up-here-b78bce5c497d?source=rss-a7341ae8d6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b78bce5c497d</guid>
            <dc:creator><![CDATA[LIBAOXIA]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 02:47:46 GMT</pubDate>
            <atom:updated>2026-08-17T02:47:46.226Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a7Q8EBV-P5vZ2REQJ9F9Sg.png" /></figure><p>We were burning on single-provider keys — pricing spikes (DeepSeek peak = 4.5× now), throttling, the works. Moved to a single OpenAI-compatible gateway with 31 models (DeepSeek / Qwen / GLM / Kimi) behind one key; switching models is a one-parameter change. Flat pricing absorbs upstream peak surges so cost stays predictable.</p><p>Happy to share what we learned / the gateway we use — ask away.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b78bce5c497d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your AI bill shouldn’t 4.5× just because a provider hit peak hours.]]></title>
            <link>https://medium.com/@108729447/your-ai-bill-shouldnt-4-5-just-because-a-provider-hit-peak-hours-768fff5a7b3f?source=rss-a7341ae8d6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/768fff5a7b3f</guid>
            <category><![CDATA[deepseek]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[LIBAOXIA]]></dc:creator>
            <pubDate>Mon, 17 Aug 2026 02:44:53 GMT</pubDate>
            <atom:updated>2026-08-17T02:44:53.892Z</atom:updated>
            <content:encoded><![CDATA[<p>We put 31 models (DeepSeek, Qwen, GLM, Kimi…) behind one OpenAI-compatible key. Switch by changing one param. Flat rate absorbs upstream spikes. No vendor lock-in.</p><p>100M free tokens to start: apihub4u.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=768fff5a7b3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Stopped Maintaining 3 LLM SDKs — Here’s the OpenAI-Compatible Shortcut]]></title>
            <link>https://medium.com/@108729447/i-stopped-maintaining-3-llm-sdks-heres-the-openai-compatible-shortcut-93ee489d51bd?source=rss-a7341ae8d6f2------2</link>
            <guid isPermaLink="false">https://medium.com/p/93ee489d51bd</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[openai]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[api]]></category>
            <dc:creator><![CDATA[LIBAOXIA]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 03:55:41 GMT</pubDate>
            <atom:updated>2026-07-21T03:55:41.918Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*YxHDzej36UGQivVdf3Go0A.jpeg" /></figure><p>If you’re building with LLMs in 2026, the hard part usually isn’t “which model is smartest.”</p><p>It’s integration tax.</p><p>Every new vendor means another SDK, another auth flow, another set of quirks, and another weekend spent rewriting glue code you already solved once with the OpenAI client.</p><p>I got tired of that.</p><p>So I standardized on one rule:</p><p>&gt; If a model can’t be reached through an OpenAI-compatible chat API, I postpone it until the product actually needs it.</p><p>That led me to a simple setup: keep the OpenAI SDK, change `base_url` + `api_key`, then switch providers by changing the `model` field.</p><p><strong>## What I needed</strong></p><p>- One request shape for chat completions</p><p>- Streaming (SSE) for UI demos</p><p>- An easy way to A/B test DeepSeek / Qwen / GLM</p><p>- Clear listed pricing</p><p>- A path for overseas billing</p><p>I’m currently using API Hub for that workflow:</p><p>- Site: <a href="https://apihub4u.com/">https://apihub4u.com</a></p><p>- Docs: <a href="https://apihub4u.com/docs.html">https://apihub4u.com/docs.html</a></p><p>- API base: <a href="https://apihub4u.com/v1">https://apihub4u.com/v1</a></p><p>Signup includes trial credits. Overseas top-ups go through PayPal.</p><p><strong>## Quick start (Python)</strong></p><p>```python</p><p>from openai import OpenAI</p><p>client = OpenAI(</p><p>api_key=”YOUR_KEY”,</p><p>base_url=”https://apihub4u.com/v1&quot;,)</p><p>resp = client.chat.completions.create(</p><p>model=”deepseek-chat”,</p><p>messages=[{“role”: “user”,</p><p>“content”: “Give me one practical tip for shipping AI features faster.”,}],)</p><p>print(resp.choices[0].message.content)</p><p>```</p><p><strong>## Same idea in Node.js</strong></p><p>```js</p><p>import OpenAI from “openai”;</p><p>const client = new OpenAI({</p><p>apiKey: process.env.APIHUB_KEY,</p><p>baseURL: “https://apihub4u.com/v1&quot;,});</p><p>const resp = await client.chat.completions.create({</p><p>model: “qwen-turbo”,</p><p>messages: [{ role: “user”, content: “Write a 1-line release note.” }],});</p><p>console.log(resp.choices[0].message.content);</p><p>```</p><p><strong>## Streaming example</strong></p><p>```python</p><p>stream = client.chat.completions.create(</p><p>model=”deepseek-chat”,</p><p>messages=[{“role”: “user”, “content”: “Explain SSE streaming in 5 bullets.”}],</p><p>stream=True,</p><p>)</p><p>for chunk in stream:</p><p>print(chunk.choices[0].delta.content or “”, end=””, flush=True)</p><p>```</p><p><strong>## How I choose models in practice</strong></p><p>I don’t look for one forever-best model.</p><p>I route by job:</p><p>| Job | What I try first |</p><p>| — — -| — — — — — — — — — |</p><p>| General drafting | `deepseek-chat` |</p><p>| High-volume / cheaper passes | `qwen-turbo` |</p><p>| Stronger Qwen tiers | `qwen-plus` / `qwen-max` |</p><p>The important part is that switching models does not mean rewriting the app.</p><p><strong>## Why this matters for small teams</strong></p><p>Solo builders and small teams lose time in three places:</p><p>1. Re-learning vendor SDKs</p><p>2. Rebuilding auth and client wrappers</p><p>3. Re-testing basic chat + streaming paths</p><p>An OpenAI-compatible gateway collapses those into one path.</p><p>You still need to evaluate quality, latency, and price for your use case. But you can do that with experiments — not with a rewrite.</p><p><strong>## Honest caveats</strong></p><p>- Always check the live model list and prices on the dashboard/docs</p><p>- Credits are added after payment verification</p><p>- Treat any gateway like infrastructure: monitor usage and keep keys private</p><p><strong>## If you want to try the same workflow</strong></p><p>1. Create an account at <a href="https://apihub4u.com/">https://apihub4u.com</a></p><p>2. Generate an API key</p><p>3. Point your OpenAI SDK to `https://apihub4u.com/v1`</p><p>4. Start with `deepseek-chat` or `qwen-turbo`</p><p>Docs are here: <a href="https://apihub4u.com/docs.html">https://apihub4u.com/docs.html</a></p><p>If you’re also trying to keep multi-model experiments without drowning in SDKs, I’d love to hear what setup you’re using.</p><p>```</p><p>**Medium tags 建议：** `Artificial Intelligence` `OpenAI` `API` `Software Development` `LLM`</p><p>```</p><p>Title: OpenAI-compatible gateway for DeepSeek / Qwen / GLM</p><p>Body:</p><p>Shipping a small tool and didn’t want 3 vendor SDKs.</p><p>So I use API Hub:</p><p>- OpenAI-compatible /v1</p><p>- one key, switch model field</p><p>- trial credits on signup</p><p>- PayPal for overseas top-ups</p><p>Site: <a href="https://apihub4u.com/">https://apihub4u.com</a></p><p>Curious how others handle multi-provider LLM access without exploding integration cost.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93ee489d51bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>