<?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: XLB223</title>
    <description>The latest articles on DEV Community by XLB223 (@xlb223).</description>
    <link>https://dev.to/xlb223</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%2F4036071%2F34de8ff8-3c8e-42bc-8939-140afd5aa6a0.png</url>
      <title>DEV Community: XLB223</title>
      <link>https://dev.to/xlb223</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/xlb223"/>
    <language>en</language>
    <item>
      <title>One account to rule your team's AI spend</title>
      <dc:creator>XLB223</dc:creator>
      <pubDate>Thu, 20 Aug 2026 01:48:28 +0000</pubDate>
      <link>https://dev.to/xlb223/one-account-to-rule-your-teams-ai-spend-49d0</link>
      <guid>https://dev.to/xlb223/one-account-to-rule-your-teams-ai-spend-49d0</guid>
      <description>&lt;p&gt;Managing AI API keys across a team is chaos: keys scattered on laptops, separate bills per model, no idea who burned the budget.&lt;br&gt;&lt;br&gt;
We collapsed it into one account:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One account, multiple revocable API keys (per dev / per project)&lt;/li&gt;
&lt;li&gt;A single shared balance = one invoice&lt;/li&gt;
&lt;li&gt;Per-call usage: model, tokens, cost&lt;/li&gt;
&lt;li&gt;Balance = hard spend ceiling; lock credits to specific models
31 models, OpenAI-compatible /v1, one key. 1M free tokens to start: apihub4u.com&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>tutorial</category>
      <category>javascript</category>
      <category>python</category>
    </item>
    <item>
      <title>**API Hub — One key for 31 AI models, no vendor lock-in**</title>
      <dc:creator>XLB223</dc:creator>
      <pubDate>Mon, 17 Aug 2026 02:28:20 +0000</pubDate>
      <link>https://dev.to/xlb223/api-hub-one-key-for-31-ai-models-no-vendor-lock-in-52j0</link>
      <guid>https://dev.to/xlb223/api-hub-one-key-for-31-ai-models-no-vendor-lock-in-52j0</guid>
      <description>&lt;p&gt;Tired of rewriting code every time a model provider hikes prices or throttles your key? API Hub is an OpenAI-compatible gateway: one key, 31 models (DeepSeek, Qwen, GLM, Kimi…), switch by changing one parameter. Flat pricing absorbs upstream peak spikes — your bill stays predictable.&lt;/p&gt;

&lt;p&gt;🎁 100M free tokens on signup.&lt;br&gt;
👉 apihub4u.com&lt;/p&gt;

</description>
    </item>
    <item>
      <title>**Stop coupling your AI features to a single vendor's API**</title>
      <dc:creator>XLB223</dc:creator>
      <pubDate>Mon, 17 Aug 2026 02:22:04 +0000</pubDate>
      <link>https://dev.to/xlb223/stop-coupling-your-ai-features-to-a-single-vendors-api-3062</link>
      <guid>https://dev.to/xlb223/stop-coupling-your-ai-features-to-a-single-vendors-api-3062</guid>
      <description>&lt;p&gt;Last year taught everyone a lesson: model providers change pricing, throttle, and occasionally ban — often with little warning. If your code is hard-wired to one provider's key, every change is a rewrite.&lt;/p&gt;

&lt;p&gt;A cleaner pattern is an aggregation layer: one OpenAI-compatible key, 31 models (DeepSeek, Qwen, GLM, Kimi…) behind a single &lt;code&gt;/v1&lt;/code&gt; endpoint. Switch models by changing one parameter — no code or key changes. And when upstreams spike during peak hours (DeepSeek recently went 4.5× during peak), the flat rate absorbs the hit, so your bill stays predictable.&lt;/p&gt;

&lt;p&gt;100M free tokens to try: apihub4u.com&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>OpenAI SDK DeepSeek / Qwen / GLM without rewriting your app</title>
      <dc:creator>XLB223</dc:creator>
      <pubDate>Sun, 19 Jul 2026 05:34:06 +0000</pubDate>
      <link>https://dev.to/xlb223/openai-sdk-deepseek-qwen-glm-without-rewriting-your-app-4ggc</link>
      <guid>https://dev.to/xlb223/openai-sdk-deepseek-qwen-glm-without-rewriting-your-app-4ggc</guid>
      <description>&lt;h2&gt;
  
  
  Problem
&lt;/h2&gt;

&lt;p&gt;I wanted to try Chinese LLMs (DeepSeek, Qwen, GLM) without maintaining multiple SDKs.&lt;br&gt;
I wanted to try Chinese LLMs (DeepSeek, Qwen, GLM) without maintaining three different SDKs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Approach
&lt;/h2&gt;

&lt;p&gt;Use an OpenAI-compatible gateway. Keep your existing client; change base URL + API key.&lt;br&gt;
If your stack already speaks OpenAI, you can keep the same client and only change:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;base_url&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;api_key&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;model&lt;/code&gt;
That's what I use API Hub for: an OpenAI-compatible endpoint.
## Quick start&lt;/li&gt;
&lt;li&gt;Sign up at &lt;a href="https://apihub4u.com" rel="noopener noreferrer"&gt;https://apihub4u.com&lt;/a&gt; (trial credits on signup)&lt;/li&gt;
&lt;li&gt;Create an API key&lt;/li&gt;
&lt;li&gt;Point your SDK to: &lt;a href="https://apihub4u.com/v1" rel="noopener noreferrer"&gt;https://apihub4u.com/v1&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Set model to e.g. deepseek-chat or qwen-turbo
## Example (Python)&lt;/li&gt;
&lt;li&gt;Sign up at &lt;a href="https://apihub4u.com" rel="noopener noreferrer"&gt;apihub4u.com&lt;/a&gt; (trial credits on signup)&lt;/li&gt;
&lt;li&gt;Create an API key in the dashboard&lt;/li&gt;
&lt;li&gt;Point your SDK to &lt;code&gt;https://apihub4u.com/v1&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Pick a model, e.g. &lt;code&gt;deepseek-chat&lt;/code&gt; or &lt;code&gt;qwen-turbo&lt;/code&gt;
## Python example
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;openai&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&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;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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;deepseek-chat&lt;/span&gt;&lt;span class="sh"&gt;"&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello&lt;/span&gt;&lt;span class="sh"&gt;"&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;role&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Hello! Give me one productivity tip.&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;}],&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;resp&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;choices&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="n"&gt;message&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;h2&gt;
  
  
  Why this helped me
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;One integration path for multiple models&lt;/li&gt;
&lt;li&gt;Switch providers by changing the &lt;code&gt;model&lt;/code&gt; field&lt;/li&gt;
&lt;li&gt;Streaming works (SSE)&lt;/li&gt;
&lt;li&gt;Prices are listed on the dashboard / docs&lt;/li&gt;
&lt;li&gt;Prices are listed on the dashboard/docs&lt;/li&gt;
&lt;li&gt;Overseas top-ups via PayPal
Docs: &lt;a href="https://apihub4u.com/docs.html" rel="noopener noreferrer"&gt;https://apihub4u.com/docs.html&lt;/a&gt;
Docs: &lt;a href="https://apihub4u.com/docs.html" rel="noopener noreferrer"&gt;apihub4u.com/docs.html&lt;/a&gt;
If you're prototyping or running a small product, this cuts a lot of glue code. Feedback welcome.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
    <item>
      <title>OpenAI SDK DeepSeek / Qwen / GLM without rewriting your app</title>
      <dc:creator>XLB223</dc:creator>
      <pubDate>Sun, 19 Jul 2026 05:26:16 +0000</pubDate>
      <link>https://dev.to/xlb223/openai-sdk-deepseek-qwen-glm-without-rewriting-your-app-2nkb</link>
      <guid>https://dev.to/xlb223/openai-sdk-deepseek-qwen-glm-without-rewriting-your-app-2nkb</guid>
      <description>&lt;p&gt;I wanted to try Chinese LLMs (DeepSeek, Qwen, GLM) without maintaining multiple SDKs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Approach
&lt;/h2&gt;

&lt;p&gt;Use an OpenAI-compatible gateway. Keep your existing client; change base URL + API key.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Sign up at &lt;a href="https://apihub4u.com" rel="noopener noreferrer"&gt;https://apihub4u.com&lt;/a&gt; (trial credits on signup)&lt;/li&gt;
&lt;li&gt;Create an API key&lt;/li&gt;
&lt;li&gt;Point your SDK to: &lt;a href="https://apihub4u.com/v1" rel="noopener noreferrer"&gt;https://apihub4u.com/v1&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Set model to e.g. deepseek-chat or qwen-turbo&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Example (Python)
&lt;/h2&gt;

&lt;p&gt;from openai import OpenAI&lt;/p&gt;

&lt;p&gt;client = OpenAI(&lt;br&gt;
    api_key="YOUR_KEY",&lt;br&gt;
    base_url="&lt;a href="https://apihub4u.com/v1" rel="noopener noreferrer"&gt;https://apihub4u.com/v1&lt;/a&gt;",&lt;br&gt;
)&lt;/p&gt;

&lt;p&gt;resp = client.chat.completions.create(&lt;br&gt;
    model="deepseek-chat",&lt;br&gt;
    messages=[{"role": "user", "content": "Hello"}],&lt;br&gt;
)&lt;br&gt;
print(resp.choices[0].message.content)&lt;/p&gt;

&lt;h2&gt;
  
  
  Notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Streaming works (SSE)&lt;/li&gt;
&lt;li&gt;Prices are listed on the dashboard / docs&lt;/li&gt;
&lt;li&gt;Overseas top-ups via PayPal&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Docs: &lt;a href="https://apihub4u.com/docs.html" rel="noopener noreferrer"&gt;https://apihub4u.com/docs.html&lt;/a&gt;&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
    </item>
  </channel>
</rss>
