<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GTokens blog</title>
    <link>https://gtokens.io/blog/</link>
    <atom:link href="https://gtokens.io/blog/rss.xml" rel="self" type="application/rss+xml" />
    <description>Guides for calling frontier models through one gateway.</description>
    <language>en</language>
    <lastBuildDate>Sun, 01 Nov 2026 00:00:00 GMT</lastBuildDate>
    <item>
      <title>API key spending limits: daily, weekly and monthly ceilings</title>
      <link>https://gtokens.io/blog/api-key-spend-limits/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/api-key-spend-limits/</guid>
      <pubDate>Tue, 27 Oct 2026 00:00:00 GMT</pubDate>
      <category>API</category>
      <description>Give each API key its own spending ceiling and reset period, read what is left from GET /api/v1/key, and stop a batch before it runs into a 402.</description>
    </item>
    <item>
      <title>429 vs 503: retrying LLM API requests with Retry-After</title>
      <link>https://gtokens.io/blog/retry-429-503-retry-after/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/retry-429-503-retry-after/</guid>
      <pubDate>Fri, 23 Oct 2026 00:00:00 GMT</pubDate>
      <category>API</category>
      <description>What 429 and 503 ask of your client: read Retry-After, back off with jitter, cap the attempts, and know which errors are never worth retrying.</description>
    </item>
    <item>
      <title>Image generation API: aspect ratio, 2K tiers and exact size</title>
      <link>https://gtokens.io/blog/image-generation-exact-size-aspect-ratio/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/image-generation-exact-size-aspect-ratio/</guid>
      <pubDate>Tue, 20 Oct 2026 00:00:00 GMT</pubDate>
      <category>Guides</category>
      <description>Ask for exact pixels or a tier and an aspect ratio: what size comes back, where the fields go, what is refused with 400 and what sets the price.</description>
    </item>
    <item>
      <title>ANTHROPIC_BASE_URL explained: run a coding agent through a custom endpoint</title>
      <link>https://gtokens.io/blog/custom-base-url-coding-agents/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/custom-base-url-coding-agents/</guid>
      <pubDate>Tue, 13 Oct 2026 00:00:00 GMT</pubDate>
      <category>Guides</category>
      <description>Two environment variables move a terminal coding agent onto a gateway: the base URL and a bearer token. What to set, how to check it, and what stops the first call.</description>
    </item>
    <item>
      <title>LLM API cost per request: usage.cost, logs and totals</title>
      <link>https://gtokens.io/blog/llm-request-cost-usage-cost/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/llm-request-cost-usage-cost/</guid>
      <pubDate>Tue, 06 Oct 2026 00:00:00 GMT</pubDate>
      <category>API</category>
      <description>Every chat completion reports what it charged in usage.cost. Find it in a reply and a stream, log it per request and check the sums against the key route.</description>
    </item>
    <item>
      <title>Messages API with a custom base URL in Python and TypeScript</title>
      <link>https://gtokens.io/blog/messages-api-custom-base-url/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/messages-api-custom-base-url/</guid>
      <pubDate>Tue, 29 Sep 2026 00:00:00 GMT</pubDate>
      <category>Guides</category>
      <description>Point the Messages API client libraries at a different endpoint: the base URL, an auth token instead of an API key, streaming, token usage and typed errors.</description>
    </item>
    <item>
      <title>HTTP 402 payment_required: balance, spend limits and fixes</title>
      <link>https://gtokens.io/blog/http-402-payment-required/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/http-402-payment-required/</guid>
      <pubDate>Wed, 23 Sep 2026 00:00:00 GMT</pubDate>
      <category>API</category>
      <description>Why an API call comes back 402 payment_required: the prepaid balance, a key spend limit or an account ceiling. How to tell which, and what to do.</description>
    </item>
    <item>
      <title>OpenAI SDK with a custom base URL: text, streaming and images</title>
      <link>https://gtokens.io/blog/openai-sdk-custom-base-url/</link>
      <guid isPermaLink="true">https://gtokens.io/blog/openai-sdk-custom-base-url/</guid>
      <pubDate>Tue, 15 Sep 2026 00:00:00 GMT</pubDate>
      <category>Guides</category>
      <description>Change base_url and api_key in the OpenAI client library and keep the rest of the code: chat completions, streaming, tool calls and image generation at exact sizes.</description>
    </item>
  </channel>
</rss>
