<?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: Tokely — AI API Platform</title>
    <description>The latest articles on DEV Community by Tokely — AI API Platform (@tokely).</description>
    <link>https://dev.to/tokely</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%2F4199825%2Fbcfa7e9c-26dd-4a89-91ef-f2401cfe718f.png</url>
      <title>DEV Community: Tokely — AI API Platform</title>
      <link>https://dev.to/tokely</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tokely"/>
    <language>en</language>
    <item>
      <title>Agent Skills Moves to the Agentic AI Foundation: What Developers Need to Know</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Sat, 24 Oct 2026 05:02:22 +0000</pubDate>
      <link>https://dev.to/tokely/agent-skills-moves-to-the-agentic-ai-foundation-what-developers-need-to-know-1g90</link>
      <guid>https://dev.to/tokely/agent-skills-moves-to-the-agentic-ai-foundation-what-developers-need-to-know-1g90</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Anthropic donated the Agent Skills standard to the Agentic AI Foundation on October 22, 2026. This transfer places the skill specification under neutral Linux Foundation governance alongside the Model Context Protocol. Developers can build skills using simple local directories, Markdown instructions, and executable scripts, then run them across dozens of supported agent clients and model backends without encountering platform lock-in.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did Anthropic donate on October 22?
&lt;/h2&gt;

&lt;p&gt;On October 22, 2026, Anthropic transferred the Agent Skills standard and all related assets to the Agentic AI Foundation. The donation includes the core specification, the Agent Skills name and logo, the official GitHub organization, and the agentskills.io domain. Anthropic stated that it is committed to keeping Agent Skills open, community-driven, and vendor-neutral.&lt;/p&gt;

&lt;p&gt;The Agentic AI Foundation operates as a project under the Linux Foundation to host vendor-neutral agent standards. Anthropic, Block, and OpenAI co-founded the foundation in 2025 to create a shared home for open agent infrastructure. The foundation already hosts the Model Context Protocol, which Anthropic donated in an earlier governance transfer.&lt;/p&gt;

&lt;p&gt;Anthropic first launched Agent Skills inside its Claude products in October 2025. Two months later, in December 2025, Anthropic published the underlying format as an open standard for the developer community. Donating the assets to the Agentic AI Foundation completes the transition from a single-vendor feature to a neutral industry specification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who maintains Agent Skills now?
&lt;/h2&gt;

&lt;p&gt;Two Lead Maintainers, David Soria Parra and Mahesh Murag, now guide the Agent Skills project. Individual software engineers from Anthropic, Google, OpenAI, and other technology companies maintain the specification on their own behalf rather than through corporate representation.&lt;/p&gt;

&lt;p&gt;Development teams do not need to join the Agentic AI Foundation to use the standard or contribute code to the repository.&lt;/p&gt;

&lt;p&gt;Anyone who wants to suggest changes to the specification can send feedback through the project's Discord server.&lt;/p&gt;

&lt;h2&gt;
  
  
  How widely is the standard used?
&lt;/h2&gt;

&lt;p&gt;More than 70 agent platforms have integrated the Agent Skills specification across their production tools. That adoption footprint includes major coding agents and developer environments such as ChatGPT, Cursor, GitHub Copilot, and VS Code.&lt;/p&gt;

&lt;p&gt;According to Anthropic, developers have published 1 million skills and end users have installed nearly 280 million skills across those integrated platforms. These are Anthropic's own figures and are not independently audited.&lt;/p&gt;

&lt;p&gt;For skill authors, that means one package format across competing platforms. Developers who author a skill can deploy that package directly to multiple editors and command-line agents without rewriting instructions for each client.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is inside a skill?
&lt;/h2&gt;

&lt;p&gt;A skill is a directory containing at minimum a SKILL.md file with YAML frontmatter followed by standard Markdown instructions. The directory can also house optional subdirectories by convention, including scripts for executable code, references for documentation loaded on demand, and assets for templates, images, or data files.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;api-cost-check/
├── SKILL.md
├── scripts/
│   └── estimate.py
└── references/
    └── prices.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;File references inside SKILL.md should be relative paths from the skill root, kept one level deep. The specification advises against long chains of nested references.&lt;/p&gt;

&lt;p&gt;The YAML frontmatter defines two required fields: name and description. The name field takes a string between 1 and 64 characters containing only lowercase letters, digits, and single hyphens. It must match the parent directory name exactly, with no leading hyphens, trailing hyphens, or double hyphens.&lt;/p&gt;

&lt;p&gt;The description field accepts 1 to 1,024 characters explaining what the skill accomplishes and when the agent should select it. Authors should write clear descriptions with relevant keywords, because the agent runtime inspects this text to decide which skill fits a given user prompt.&lt;/p&gt;

&lt;p&gt;Frontmatter also supports four optional fields. The license field names the distribution license, while compatibility accepts up to 500 characters outlining environment requirements. Authors can provide arbitrary string key-value pairs through the metadata map, or specify an experimental allowed-tools list containing space-separated pre-approved tools.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;api-cost-check&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Estimates&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;the&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;API&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cost&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;of&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;prompt&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;or&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;job&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;before&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;it&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;runs.&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;Use&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;when&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;the&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;asks&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;what&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;request,&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;batch&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;or&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;agent&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;run&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;will&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;cost&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;on&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;a&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;given&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;model."&lt;/span&gt;
&lt;span class="na"&gt;license&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Apache-2.0&lt;/span&gt;
&lt;span class="na"&gt;metadata&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;author&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;example-org&lt;/span&gt;
  &lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;1.0"&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="gh"&gt;# API cost check&lt;/span&gt;
&lt;span class="p"&gt;
1.&lt;/span&gt; Count input tokens and estimate output tokens.
&lt;span class="p"&gt;2.&lt;/span&gt; Read per-1M-token prices from references/prices.md.
&lt;span class="p"&gt;3.&lt;/span&gt; Run scripts/estimate.py and report the cost per request and per 1,000 requests.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Developers can verify their directory structure and schema formatting before distributing a package. Running skills-ref validate ./my-skill through the skills-ref reference library checks that the frontmatter is valid and follows the naming rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does progressive disclosure keep context small?
&lt;/h2&gt;

&lt;p&gt;Roughly 100 tokens of metadata per skill enter the context window when an agent session initializes. The runtime loads only the name and description fields at startup, allowing an agent to index dozens of capabilities without consuming substantial context space.&lt;/p&gt;

&lt;p&gt;The agent defers reading the rest of the package until the user prompt triggers that specific skill. The full body of SKILL.md loads into the active prompt only upon activation, and the specification recommends keeping that body under 5,000 tokens and under 500 lines of text.&lt;/p&gt;

&lt;p&gt;Files located inside the scripts, references, and assets subdirectories remain unloaded until the activated instructions specifically call for them. This phased approach prevents large documentation files and scripts from bloating context during unrelated prompts.&lt;/p&gt;

&lt;p&gt;Fifty installed skills add about 5,000 tokens of metadata at session start. At an input price of $2 per 1M tokens before prompt caching, loading metadata for all 50 skills costs roughly $0.01 per session.&lt;/p&gt;

&lt;h2&gt;
  
  
  How are skills different from MCP?
&lt;/h2&gt;

&lt;p&gt;The Model Context Protocol connects an agent to external tools and live data stores through client-server connections. In contrast, an Agent Skill packages procedural instructions, executable scripts, and static reference files that an agent runtime reads directly from disk.&lt;/p&gt;

&lt;p&gt;MCP relies on active server processes that expose tool definitions, resources, and prompt templates over standard communication protocols. A skill functions as a static file bundle that informs the model how to complete a specific task using tools already available on the host.&lt;/p&gt;

&lt;p&gt;Both standards now operate under the Agentic AI Foundation as complementary building blocks. A skill can direct an agent on when and how to call an MCP server, while the MCP server handles the protocol communication with remote systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is on the roadmap, and why does security matter?
&lt;/h2&gt;

&lt;p&gt;The proposed starting roadmap for Agent Skills focuses on three areas: versioned releases, a formal specification proposal process, and security guidance for authors and users. A structured release cycle will help tool builders maintain compatibility as the format matures under foundation governance.&lt;/p&gt;

&lt;p&gt;Security guidance represents an immediate priority because a skill can include arbitrary code in its scripts directory. When a skill's instructions tell the agent to run those scripts, they run with whatever access the agent has on that machine.&lt;/p&gt;

&lt;p&gt;Installing a skill therefore means trusting the author who packaged it. Malicious or poorly tested scripts can modify local files, execute dangerous shell commands, or expose sensitive project data. Developers should always review the contents of the scripts directory before installing third-party skills into their environments.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you use skills with any model through one API key?
&lt;/h2&gt;

&lt;p&gt;Claude Code reads personal skills from ~/.claude/skills//SKILL.md and project-level skills from .claude/skills//SKILL.md inside the root of a repository.&lt;/p&gt;

&lt;p&gt;Skills are plain text files evaluated by the agent client rather than the upstream model provider. Because the client parses the frontmatter and passes the instructions to the model, the same skill files work whichever model the client calls, although results still depend on the model.&lt;/p&gt;

&lt;p&gt;Developers can run Claude Code through the Tokely API gateway by setting two environment variables. The skill directories stay exactly as they are.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;skills-ref validate ./api-cost-check
&lt;span class="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://api.tokely.me &lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;YOUR_TOKELY_API_KEY&amp;gt;'&lt;/span&gt; claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A single Tokely API key and unified balance grants access to Claude, GPT, Gemini, and Kimi models, including Kimi K3.1 Pro. The gateway exposes an Anthropic-compatible endpoint for Claude Code and an OpenAI-compatible endpoint for other agent clients, so a team can test the same skill on several models from one account. You can view all supported options on the &lt;a href="https://tokely.me/models" rel="noopener noreferrer"&gt;Tokely models&lt;/a&gt; page or read our guide on using &lt;a href="https://tokely.me/blog/claude-code-cheaper-api" rel="noopener noreferrer"&gt;Claude Code with a cheaper API&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Read the announcement details at &lt;a href="https://www.anthropic.com/news/donating-agent-skills-to-the-agentic-ai-foundation" rel="noopener noreferrer"&gt;Anthropic's announcement&lt;/a&gt; and explore technical definitions in the &lt;a href="https://agentskills.io/specification" rel="noopener noreferrer"&gt;Agent Skills specification&lt;/a&gt;. Further context appears in &lt;a href="https://simonwillison.net/2026/Oct/22/donating-agent-skills/" rel="noopener noreferrer"&gt;Simon Willison's note&lt;/a&gt; and our setup tutorial for &lt;a href="https://tokely.me/blog/claude-code-cheaper-api" rel="noopener noreferrer"&gt;Claude Code with a cheaper API&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/agent-skills-agentic-ai-foundation" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>opensource</category>
      <category>claude</category>
    </item>
    <item>
      <title>Kimi K3.1 Pro API Pricing: Half of Claude Opus 5.5, Same as Sonnet 5.5</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Sat, 24 Oct 2026 04:49:31 +0000</pubDate>
      <link>https://dev.to/tokely/kimi-k31-pro-api-pricing-half-of-claude-opus-55-same-as-sonnet-55-fo4</link>
      <guid>https://dev.to/tokely/kimi-k31-pro-api-pricing-half-of-claude-opus-55-same-as-sonnet-55-fo4</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Moonshot AI released Kimi K3.1 Pro at $2 per 1M input tokens and $10 per 1M output tokens. That matches Claude Sonnet 5.5 and cuts Claude Opus 5.5 pricing in half. For long prompts without tiered pricing penalties, Kimi K3.1 Pro provides 1,048,576 tokens of context at a flat rate, alongside a 2 to 3 times faster Highspeed tier at double the price.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did Moonshot release on October 23?
&lt;/h2&gt;

&lt;p&gt;Moonshot AI released Kimi K3.1 Pro on October 23, 2026, as the first model of its K3.1 series. It is a post-trained successor to Kimi K3, which Moonshot released on July 16, 2026, as a 2.8-trillion-parameter open-weight model. Moonshot announced that the full model weights for K3.1 Pro will be released by November 4, 2026.&lt;/p&gt;

&lt;p&gt;The release includes two API model IDs: kimi-k3.1-pro and kimi-k3.1-pro-highspeed. Moonshot removed cyber-attack material from training before the open release. On Moonshot's own benchmark, Kimi K3.1 Pro scored 65.7% on Terminal-Bench 4.0, compared to 66.4% for Claude Opus 5.5 and 58.2% for GPT-6 Astra. These benchmark numbers are Moonshot's own and not independently verified, and price is not capability, so test on your own prompts.&lt;/p&gt;

&lt;h2&gt;
  
  
  How much does Kimi K3.1 Pro cost?
&lt;/h2&gt;

&lt;p&gt;Kimi K3.1 Pro costs $2 per 1M input tokens on cache misses, $0.20 per 1M cached input tokens on cache hits, and $10 per 1M output tokens. Its predecessor, Kimi K3, lists at $3 per 1M input tokens, $0.30 per 1M cached input tokens, and $15 per 1M output tokens, making K3.1 Pro one third cheaper than the model it replaces.&lt;/p&gt;

&lt;p&gt;The faster variant, Kimi K3.1 Pro Highspeed, lists at $4 per 1M input tokens, $0.20 per 1M cached input tokens, and $20 per 1M output tokens. Cache writes for both models are billed separately by time to live for either 5 minutes or 1 hour. The Vercel AI Gateway lists the cache write fee at $2 per 1M tokens for K3.1 Pro and $4 per 1M tokens for Highspeed.&lt;/p&gt;

&lt;p&gt;Moonshot uses flat pay-as-you-go pricing across the entire 1,048,576-token context window. There are no price tiers or rate increases as context lengths scale up toward the one-million-token limit. Direct access on Moonshot's platform requires a top-up of at least $1, and top-up totals determine your rate-limit tier.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does it compare with Claude Opus 5.5, Sonnet 5.5, GPT-6.1 Sol and Gemini 4 Argon?
&lt;/h2&gt;

&lt;p&gt;Claude Opus 5.5 lists at $4 per 1M input tokens and $20 per 1M output tokens, exactly double the standard rates of Kimi K3.1 Pro. Claude Sonnet 5.5 matches Kimi K3.1 Pro at $2 per 1M input tokens and $10 per 1M output tokens. Anthropic bills the full 1M-token context window at standard rates for both models, with cache hits at $0.20 for Opus 5.5 and $0.10 for Sonnet 5.5, and cache writes at $5 or $8 for Opus 5.5 and $2.50 or $4 for Sonnet 5.5.&lt;/p&gt;

&lt;p&gt;GPT-6.1 Sol lists at $2 per 1M input tokens, $0.10 per 1M cached tokens, and $10 per 1M output tokens for requests up to 272K input tokens. Above 272K input tokens, GPT-6.1 Sol shifts to $4 per 1M input tokens, $0.20 per 1M cached tokens, and $15 per 1M output tokens. Gemini 4 Argon lists at $2 per 1M input tokens, $10 per 1M output tokens, and $0.10 per 1M cached tokens until November 30, 2026, after which it lists at $4 per 1M input tokens, $20 per 1M output tokens, and $0.20 per 1M cached tokens starting December 1, 2026.&lt;/p&gt;

&lt;p&gt;Workload A shows the cost of 1M input tokens and 250K output tokens at list prices. On this workload, Kimi K3.1 Pro, Claude Sonnet 5.5, GPT-6.1 Sol, and Gemini 4 Argon (until November 30) all total $4.50. Kimi K3 totals $6.75, while Claude Opus 5.5 and Kimi K3.1 Pro Highspeed both cost $9.00.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faccd1devp0l3or9h7mo0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faccd1devp0l3or9h7mo0.png" alt="Bar chart of the cost of USD for 1M input + 250K output tokens at official list prices: Kimi K3.1 Pro $4.50, Claude Sonnet 5.5 $4.50, GPT-6.1 Sol $4.50, Gemini 4 Argon to Nov 30 $4.50, Kimi K3 $6.75, Claude Opus 5.5 $9.00, Kimi K3.1 Pro Highspeed $9.00." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cost of 1M input plus 250K output tokens at official standard list prices, checked October 24, 2026. Price is not capability: test on your own prompts.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Which model is cheapest for long prompts?
&lt;/h2&gt;

&lt;p&gt;Workload B measures a single long-context request with 500K input tokens and 20K output tokens. For this request, Kimi K3.1 Pro, Claude Sonnet 5.5, and Gemini 4 Argon (until November 30) each cost $1.20. In contrast, GPT-6.1 Sol costs $2.30 because its higher rate tier applies above 272K tokens, while Claude Opus 5.5 and Kimi K3.1 Pro Highspeed each cost $2.40.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkzptv4diy4yxsot60v2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkzptv4diy4yxsot60v2.png" alt="Bar chart of the cost of USD for one request with 500K input + 20K output tokens at official list prices: Kimi K3.1 Pro $1.20, Claude Sonnet 5.5 $1.20, Gemini 4 Argon to Nov 30 $1.20, GPT-6.1 Sol $2.30, Claude Opus 5.5 $2.40, Kimi K3.1 Pro Highspeed $2.40." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cost of one request with 500K input plus 20K output tokens. Kimi K3.1 Pro, Claude and Gemini 4 Argon keep one rate across the window; GPT-6.1 Sol bills requests above 272K input tokens at its long-context rate.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Caching economics introduce a specific divergence for repetitive workloads. Cached input on K3.1 Pro costs $0.20 per 1M tokens, which is 10% of its base input price. Claude Sonnet 5.5 and GPT-6.1 Sol charge $0.10 per 1M cached tokens, cutting cache hit costs in half relative to Moonshot.&lt;/p&gt;

&lt;p&gt;That difference changes the ranking for agent loops that reuse long prefixes. If a team runs deep multi-turn sessions where the same system instructions or documents are cached again and again, Sonnet 5.5 and GPT-6.1 Sol charge less per cached token than Kimi K3.1 Pro, even though all three share the same $2 base input price.&lt;/p&gt;
&lt;h2&gt;
  
  
  When is Highspeed worth twice the price?
&lt;/h2&gt;

&lt;p&gt;Kimi K3.1 Pro Highspeed is the same model served at 2 to 3 times the generation speed for $4 per 1M input tokens and $20 per 1M output tokens. That doubling in token pricing directly matches the price tag of Claude Opus 5.5. On a 1M input and 250K output workload, Highspeed reaches $9.00 compared to $4.50 on the standard tier.&lt;/p&gt;

&lt;p&gt;This pricing premium pays off specifically when latency dictates system success. Interactive developer tools, synchronous code completion, and customer-facing interfaces benefit from cutting generation times by half or more. Moonshot keeps the cache hit price identical across both tiers at $0.20 per 1M tokens, but cache writes cost $4 per 1M tokens on Highspeed compared to $2 on K3.1 Pro.&lt;/p&gt;

&lt;p&gt;For asynchronous workflows like offline evaluation, data extraction, or night-time batch processing, the standard Kimi K3.1 Pro model provides identical quality at half the price. Engineering teams should measure whether user drop-off or task timeouts justify paying double for token throughput before setting Highspeed as the default endpoint.&lt;/p&gt;
&lt;h2&gt;
  
  
  What do you need to change in your code?
&lt;/h2&gt;

&lt;p&gt;Moonshot's K3.1 Pro quickstart defines several fixed parameters that must be omitted from API requests. The API locks temperature to 1.0, top_p to 0.95, n to 1, presence_penalty to 0, and frequency_penalty to 0. Moonshot asks callers to leave them out of every request.&lt;/p&gt;

&lt;p&gt;Thinking is always turned on in K3.1 Pro and cannot be disabled. The reasoning_effort parameter accepts low, high, and max, with max set as the default. Moonshot suggests setting reasoning_effort to low to cut reasoning time.&lt;/p&gt;

&lt;p&gt;Handling multi-turn conversations and tool calling requires strict message preservation. In multi-turn and tool-call flows, applications must send the complete assistant message back unchanged in subsequent turns.&lt;/p&gt;

&lt;p&gt;Output token caps are flexible across the full million-token window. The max_completion_tokens parameter defaults to 131,072 and can be configured up to 1,048,576. For multimodal requests, images must be submitted as base64 data URLs or uploaded file IDs, as public image URLs are not accepted. Moonshot also notes that its built-in web search is being updated and is not recommended for production workloads for now.&lt;/p&gt;
&lt;h2&gt;
  
  
  What happens to Kimi K2 models?
&lt;/h2&gt;

&lt;p&gt;Moonshot is phasing out its previous generation of models according to a published timeline. From October 31, 2026, Kimi K2 series models are no longer available to newly registered users on Moonshot's platform. Existing users are not affected by that change.&lt;/p&gt;

&lt;p&gt;Moonshot plans to retire all K2 series models entirely by the end of December 2026. Moonshot recommends migrating K2 traffic to Kimi K3.1 Pro. Teams already on Kimi K3 also save a third by moving: $2 per 1M input tokens and $10 per 1M output tokens instead of $3 and $15.&lt;/p&gt;
&lt;h2&gt;
  
  
  How do you use Kimi K3.1 Pro with one API key?
&lt;/h2&gt;

&lt;p&gt;Tokely lists Kimi K3.1 Pro at Moonshot's list price of $2 per 1M input tokens, $10 per 1M output tokens, and $0.20 per 1M cached tokens. Kimi K3.1 Pro Highspeed is also available at list price for $4 per 1M input tokens, $20 per 1M output tokens, and $0.20 per 1M cached tokens. The gateway provides access through an OpenAI-compatible interface, allowing developers to switch models by updating the model identifier.&lt;/p&gt;

&lt;p&gt;A single Tokely account, API key, and credit balance connects to Kimi K3.1 Pro alongside Western flagship models. On Tokely, Claude Opus 5.5 lists at $3 per 1M input and $15 per 1M output tokens, Claude Sonnet 5.5 lists at $1.50 per 1M input and $7.50 per 1M output tokens, GPT-6.1 Sol lists at $0.80 per 1M input and $4 per 1M output tokens, and Gemini 4 Argon lists at $1.40 per 1M input and $7 per 1M output tokens. Tokely prices can change, and developers should check the &lt;a href="https://tokely.me/models" rel="noopener noreferrer"&gt;Tokely models&lt;/a&gt; page for current rates.&lt;/p&gt;

&lt;p&gt;Testing model variations side by side requires no custom client code. The Tokely &lt;a href="https://tokely.me/playground" rel="noopener noreferrer"&gt;Playground&lt;/a&gt; allows teams to run the same prompt against Kimi K3.1 Pro and competing flagship models simultaneously to evaluate speed, reasoning depth, and formatting. You can call &lt;a href="https://tokely.me/models/kimi-k3.1-pro" rel="noopener noreferrer"&gt;Kimi K3.1 Pro on Tokely&lt;/a&gt; with the standard OpenAI Python SDK using the following snippet:&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="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;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.tokely.me/v1&lt;/span&gt;&lt;span class="sh"&gt;"&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;YOUR_TOKELY_API_KEY&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;reply&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;kimi-k3.1-pro&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;Review this function for race conditions.&lt;/span&gt;&lt;span class="sh"&gt;"&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;4096&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;reply&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;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Prices, parameters and migration dates come from the developers' documentation, checked on October 24, 2026; the Highspeed cache write price comes from the Vercel AI Gateway model list. Review implementation details in the &lt;a href="https://platform.kimi.ai/docs/guide/kimi-k3-1-pro-quickstart" rel="noopener noreferrer"&gt;Kimi K3.1 Pro quickstart&lt;/a&gt; and examine current rates on the &lt;a href="https://platform.kimi.ai/docs/pricing/chat" rel="noopener noreferrer"&gt;Kimi API pricing&lt;/a&gt; page. Compare these figures with Western flagship documentation via &lt;a href="https://platform.claude.com/docs/en/about-claude/pricing" rel="noopener noreferrer"&gt;Claude pricing&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/pricing" rel="noopener noreferrer"&gt;OpenAI API pricing&lt;/a&gt;, and &lt;a href="https://ai.google.dev/gemini-api/docs/pricing" rel="noopener noreferrer"&gt;Gemini API pricing&lt;/a&gt;. For background on training data filtering and the open release schedule, read &lt;a href="https://thenextweb.com/news/moonshot-kimi-k3-1-pro-open-weight-cyber" rel="noopener noreferrer"&gt;The Next Web on the release&lt;/a&gt;. For extended context cost evaluations, consult our earlier comparison &lt;a href="https://tokely.me/blog/gemini-4-argon-pricing" rel="noopener noreferrer"&gt;Gemini 4 Argon Pricing vs Claude Sonnet 5.5 and GPT-6.1 Sol&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/kimi-k3-1-pro-pricing" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to Review AI-Written Code: Lessons From the Claude Code Team and Hacker News</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Fri, 23 Oct 2026 09:29:11 +0000</pubDate>
      <link>https://dev.to/tokely/how-to-review-ai-written-code-lessons-from-the-claude-code-team-and-hacker-news-aba</link>
      <guid>https://dev.to/tokely/how-to-review-ai-written-code-lessons-from-the-claude-code-team-and-hacker-news-aba</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Reviewing AI-written code requires moving design decisions upstream and automating verification before a human opens the pull request. Treat the agent as an implementer working against an explicit design spec. Run tests, linters, and a fresh-context subagent review locally, gate pull requests by change risk rather than code author, and route sensitive paths to human reviewers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why is AI-written code hard to review?
&lt;/h2&gt;

&lt;p&gt;On October 19, 2026, Hacker News user rzk posted "Ask HN: How to deal with shipping AI-written code you don't understand?" on Hacker News. By October 23, 2026, the thread had 614 points and 748 comments. The post quoted a LinkedIn update from a Meta engineer detailing the core problem: "I'm writing code these days and it all feels like a black box."&lt;/p&gt;

&lt;p&gt;The same post explained why line-by-line review stops scaling when agents write most of a change: "if we're going to spend our time checking each line of code, it's going to take forever."&lt;/p&gt;

&lt;p&gt;The practical answers in the thread fall into two groups: control the design before the agent writes code, and verify behavior after it does. The Claude Code team's published process does both, and adds rules for when a human must approve.&lt;/p&gt;

&lt;h2&gt;
  
  
  What do engineers on Hacker News actually do?
&lt;/h2&gt;

&lt;p&gt;In the largest subthread of 183 replies, bitwizeshift argued that control must happen before the model writes any code. The commenter wrote: "I don't let the LLM design the code at all, I let it implement a design I have created." They added: "I may not know how each unit is implemented, but I know each unit's responsibilities and how they interact with one another."&lt;/p&gt;

&lt;p&gt;Other engineers in the thread shared this focus on separating system architecture from code implementation. Commenter jedberg summarized the dynamic plainly: "Your job is to design, the AI builds like the junior engineers. Then you review their work." Clear interfaces give the human reviewer a strict boundary against which to evaluate generated logic.&lt;/p&gt;

&lt;p&gt;Verification strategies focused heavily on rigorous execution rather than passive reading. Commenter ChrisMarshallNY stated: "Testing. Lots and lots of testing." The same engineer observed: "I don't find coding errors, but I do find implementation errors."&lt;/p&gt;

&lt;p&gt;Relying purely on automated tests brings its own specific trap. As commenter edwin0 pointed out: "The part that makes me uneasy is when the AI writes both the code and the tests. They might agree with each other and still miss the same thing."&lt;/p&gt;

&lt;p&gt;Accountability remains a requirement for production systems. Commenter plastic041 emphasized: "You must read the code before shipping it to production." The commenter continued: "At least one person in your company should be able to explain the code!"&lt;/p&gt;

&lt;p&gt;Engineers also adjust their oversight depending on the system layer. Commenter bob1029 noted that UI code is "basically entirely vibe coded", while "For things like the SQL schema I am still doing things entirely by hand."&lt;/p&gt;

&lt;h2&gt;
  
  
  How does the Claude Code team review its own code?
&lt;/h2&gt;

&lt;p&gt;Claude writes about 90 percent of Claude Code's own code. On October 15, 2026, Addy Osmani, Morgan Westlee Lunt and Qing Wang published "How the Claude Code team does code review", outlining their seven-layer pipeline.&lt;/p&gt;

&lt;p&gt;The first layer verifies the work before anyone else looks at it. Claude runs tests, the build, and the linter and shows the output. Then "a second agent reviews the diff in a fresh context".&lt;/p&gt;

&lt;p&gt;The second layer runs an automated AI review on every pull request against the whole repository and the PR's stated intent. Findings are checked by other agents and tagged Important, Nit, or Pre-existing. This directly connects to the advice from bitwizeshift and jedberg, as the explicit intent serves as the review target.&lt;/p&gt;

&lt;p&gt;The third layer is a dedicated security review that holds blocking power. The team established a strict merge condition: "A PR can't merge while any finding from the bug review or the security review is still open."&lt;/p&gt;

&lt;p&gt;The fourth layer enforces blocking automated checks across the codebase. These are lint, type checks, tests on every platform, and a build.&lt;/p&gt;

&lt;p&gt;The fifth layer applies human approval scaled strictly by risk. The sixth layer routes code into a merge queue with feature flags and gradual rollout, exposing new behavior to Anthropic employees first.&lt;/p&gt;

&lt;p&gt;The seventh layer provides fast detection and fast rollback. It relies on feature flags that "turn off without a deploy" and a weekly on-call rotation.&lt;/p&gt;

&lt;p&gt;To keep the automated reviewer accurate, the team converts past incidents into an eval set. They collected historical pull requests that caused incidents or reverts and run the reviewer against that test suite daily. Every update to the reviewer's prompts, tools, or model is scored against this incident library.&lt;/p&gt;

&lt;p&gt;Anthropic made Code Review for Claude Code generally available on October 15, 2026 for Claude Team and Enterprise organizations. Admins pick Quick, Standard (the default), or Deep per repository. Most reviews now take 6 to 10 minutes, down from about 20 minutes during the research preview.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which changes still need a human?
&lt;/h2&gt;

&lt;p&gt;The Claude Code team relies on three explicit rules to govern review responsibilities. First, "The change sets the tier, not the author." Second, "An agent's approval never counts as a person's." Third, "An approval covers one specific commit."&lt;/p&gt;

&lt;p&gt;Low-risk changes require zero human approval once automated review and security checks are green. This tier covers documentation, copy updates, internal-only features, and additive changes isolated behind a feature flag. This matches the split bob1029 described, where interface code gets lighter review than the database schema.&lt;/p&gt;

&lt;p&gt;Medium-risk changes require approval from one person. This category includes ordinary product changes and sensitive areas such as caching logic, the auto-updater, or system prompts.&lt;/p&gt;

&lt;p&gt;High-risk changes require approval from two people. This tier is reserved for the highest-risk code alongside a small set of sensitive repository paths. This keeps human attention on the changes where a missed bug costs the most.&lt;/p&gt;

&lt;h2&gt;
  
  
  Did the process work?
&lt;/h2&gt;

&lt;p&gt;The Claude Code team measured the impact of this review system on their internal pull requests. The share of pull requests passing after just one review and fix round increased from 65% to 78%. Pull requests requiring five or more rounds dropped from 8.9% to 1.5%.&lt;/p&gt;

&lt;p&gt;Review iteration cycles shortened across the engineering team. The mean number of review rounds required to pass dropped from 2.08 to 1.32.&lt;/p&gt;

&lt;p&gt;Throughput expanded alongside code stability between June and September. During that period, total merged pull requests more than doubled while the share of pull requests that had to be reverted fell by more than 40 percent. These figures represent the team's own reported numbers.&lt;/p&gt;

&lt;h2&gt;
  
  
  A review checklist you can adopt this week
&lt;/h2&gt;

&lt;p&gt;List all checks an agent can execute inside a short &lt;code&gt;CLAUDE.md&lt;/code&gt; file. Add hooks that run formatters and linters automatically.&lt;/p&gt;

&lt;p&gt;Run &lt;code&gt;/code-review&lt;/code&gt; and &lt;code&gt;/security-review&lt;/code&gt; commands locally before opening a pull request, or trigger a fresh-context subagent review. The first human reviewer then starts from a diff that has already had one review.&lt;/p&gt;

&lt;p&gt;Maintain a &lt;code&gt;REVIEW.md&lt;/code&gt; document in your repository and migrate repeated review feedback directly into its rules. Update your pull request template to require sections for "Testing", "Risk", and "How to revert".&lt;/p&gt;

&lt;p&gt;Cap the number of review rounds. After the first few rounds, restrict automated re-review so it checks only the newly modified diff rather than re-evaluating the full branch.&lt;/p&gt;

&lt;p&gt;Configure &lt;code&gt;CODEOWNERS&lt;/code&gt; and branch protection rules so that auth, billing, CI workflows, release workflows, and installers always require a human approver.&lt;/p&gt;

&lt;p&gt;Track human engineering time spent on reviews while monitoring revert and production incident rates as your primary guardrail. If revert rates rise, tighten the risk tiers or expand the automated eval suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you run these reviews through one API key?
&lt;/h2&gt;

&lt;p&gt;Claude Code can run directly with a Tokely API key through Tokely's Anthropic-compatible &lt;code&gt;/v1/messages&lt;/code&gt; endpoint. Set &lt;code&gt;ANTHROPIC_BASE_URL&lt;/code&gt; to &lt;code&gt;https://api.tokely.me&lt;/code&gt; and &lt;code&gt;ANTHROPIC_AUTH_TOKEN&lt;/code&gt; to your key, as in this single-line command from the Tokely guide:&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="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://api.tokely.me &lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;YOUR_TOKELY_API_KEY&amp;gt;'&lt;/span&gt; &lt;span class="nv"&gt;ANTHROPIC_DEFAULT_SONNET_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;claude-sonnet-5 &lt;span class="nv"&gt;ANTHROPIC_DEFAULT_OPUS_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;claude-opus-5-5 &lt;span class="nv"&gt;ANTHROPIC_DEFAULT_HAIKU_MODEL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;claude-haiku-5-5 claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Local &lt;code&gt;/code-review&lt;/code&gt; and &lt;code&gt;/security-review&lt;/code&gt; runs are billed per token from your existing Tokely balance.&lt;/p&gt;

&lt;p&gt;The same Tokely API key also accesses OpenAI and Google models, such as GPT-6.1 Sol and Gemini 4 Argon, through the OpenAI-compatible Chat Completions endpoint. That makes it possible to send an agent's diff to a model from a different developer for a second review.&lt;/p&gt;

&lt;p&gt;The switch is a change of the model ID. It is one option for edwin0's concern about code and tests sharing the same blind spot, not a proven fix. Tokely is an API gateway and does not run Anthropic's hosted Code Review GitHub App. For implementation details, consult the guide on &lt;a href="https://tokely.me/blog/claude-code-cheaper-api" rel="noopener noreferrer"&gt;Claude Code with Tokely&lt;/a&gt; and the &lt;a href="https://tokely.me/docs/claude-code" rel="noopener noreferrer"&gt;Tokely Claude Code guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;The community perspectives in this guide come from &lt;a href="https://news.ycombinator.com/item?id=50151036" rel="noopener noreferrer"&gt;the Ask HN thread&lt;/a&gt; posted on October 19, 2026. The review framework and reported metrics come from &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic/" rel="noopener noreferrer"&gt;How the Claude Code team does code review&lt;/a&gt; and the product announcement &lt;a href="https://claude.com/resources/articles/code-review-is-now-generally-available" rel="noopener noreferrer"&gt;Code Review is now generally available&lt;/a&gt;, both published on October 15, 2026.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/how-to-review-ai-written-code" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>codereview</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Gemini 4 Argon Pricing vs Claude Sonnet 5.5 and GPT-6.1 Sol: Same Price Until December 1</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Fri, 23 Oct 2026 09:29:10 +0000</pubDate>
      <link>https://dev.to/tokely/gemini-4-argon-pricing-vs-claude-sonnet-55-and-gpt-61-sol-same-price-until-december-1-1b83</link>
      <guid>https://dev.to/tokely/gemini-4-argon-pricing-vs-claude-sonnet-55-and-gpt-61-sol-same-price-until-december-1-1b83</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Gemini 4 Argon, Claude Sonnet 5.5, and GPT-6.1 Sol all list at $2 per 1M input tokens and $10 per 1M output tokens as of October 23, 2026. The tie ends on December 1, 2026, when Google doubles Argon to $4 input and $20 output. Even before then, prompts above 272K tokens cost more on GPT-6.1 Sol.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed on October 13?
&lt;/h2&gt;

&lt;p&gt;Google released Gemini 4 Argon (gemini-4-argon) to general availability on the Gemini API on October 13, 2026. Google first showed Argon on September 30, 2026 to a limited group of cyber defenders. The October 13 update opened it to any developer with a paid account.&lt;/p&gt;

&lt;p&gt;The release description from Google labels Argon as "our most capable model built for complex coding, agentic, math, and science tasks". Argon is not available on the Free tier, so access requires paid billing on the Gemini API.&lt;/p&gt;

&lt;p&gt;Price is not capability, so test each model on your own prompts before you choose one. The current Argon rate applies through November 30, 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do the list prices compare?
&lt;/h2&gt;

&lt;p&gt;Through November 30, 2026, all three models list standard requests at $2 per 1M input tokens and $10 per 1M output tokens. Cached inputs on all three models cost $0.10 per 1M tokens. Batch workloads on all three models run at $1 per 1M input tokens and $5 per 1M output tokens (up to 272K input tokens on GPT-6.1 Sol).&lt;/p&gt;

&lt;p&gt;For a workload of 1M input tokens and 250K output tokens, the total cost comes to $4.50 on Claude Sonnet 5.5, $4.50 on GPT-6.1 Sol, and $4.50 on Gemini 4 Argon. Argon's output price includes thinking tokens, so reasoning counts toward the output bill.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8fgk9l1ynlw4m6zytedz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8fgk9l1ynlw4m6zytedz.png" alt="Bar chart of the cost of USD for 1M input + 250K output tokens at official list prices: Claude Sonnet 5.5 $4.50, GPT-6.1 Sol $4.50, Gemini 4 Argon to Nov 30 $4.50, Gemini 4 Argon from Dec 1 $9.00." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cost of 1M input plus 250K output tokens at official standard list prices, checked October 23, 2026. Price is not capability: test on your own prompts.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The three models share identical base pricing for standard contexts, but their token limits differ. Argon offers a single 1,048,576-token context window shared by input, thinking, and output tokens. Claude Sonnet 5.5 provides a 1M token context with a 128K max output limit, while GPT-6.1 Sol offers a 1,050,000 context window with a 128K max output limit.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens on December 1?
&lt;/h2&gt;

&lt;p&gt;On December 1, 2026, Google raises Gemini 4 Argon standard list rates to $4 per 1M input tokens and $20 per 1M output tokens. Cached inputs increase to $0.20 per 1M tokens, and Batch API pricing rises to $2 per 1M input tokens and $10 per 1M output tokens.&lt;/p&gt;

&lt;p&gt;This adjustment doubles production costs for Argon workloads overnight. For the same workload of 1M input tokens and 250K output tokens, the list price on Argon jumps from $4.50 to $9.00. Claude Sonnet 5.5 and GPT-6.1 Sol remain at $4.50 for the same token volume.&lt;/p&gt;

&lt;p&gt;Run your evaluation tests before December 1, while Argon still costs $2 input and $10 output. Teams that plan to rely on Argon should recheck cost forecasts for December and 2027 at the doubled list price.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which model is cheapest for long prompts?
&lt;/h2&gt;

&lt;p&gt;Prompt size breaks the pricing tie between these three providers today. GPT-6.1 Sol applies a split pricing tier based on context length. Requests up to 272K input tokens run at $2 input, $0.10 cached input, and $10 output, but any request exceeding 272K input tokens shifts to $4 per 1M input tokens, $0.20 per 1M cached input tokens, and $15 per 1M output tokens.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fknwnamg7h7yfw1na415o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fknwnamg7h7yfw1na415o.png" alt="Bar chart of the cost of USD for one request with 500K input + 20K output tokens at official list prices: Claude Sonnet 5.5 $1.20, Gemini 4 Argon to Nov 30 $1.20, GPT-6.1 Sol $2.30, Gemini 4 Argon from Dec 1 $2.40." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cost of one request with 500K input plus 20K output tokens. GPT-6.1 Sol bills requests above 272K input tokens at its long-context rate.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;In contrast, Claude Sonnet 5.5 bills the full 1M-token context window at standard rates. Anthropic bills a 900K-token request at the exact same rate as a 9K-token request. Gemini 4 Argon also maintains one rate across its whole context window, with no separate tier above 200K.&lt;/p&gt;

&lt;p&gt;A single request with 500K input tokens and 20K output tokens shows the effect of the 272K threshold. Claude Sonnet 5.5 costs $1.20, and Gemini 4 Argon costs $1.20 until November 30. GPT-6.1 Sol hits the long-context tier and costs $2.30. From December 1, the same request costs $2.40 on Gemini 4 Argon, which leaves Claude Sonnet 5.5 as the cheapest of the three at list price for long prompts.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do caching and batch change the math?
&lt;/h2&gt;

&lt;p&gt;All three providers list cached input tokens at $0.10 per 1M tokens through November 30. However, Anthropic charges for cache writes in addition to read tokens. Cache writes on Sonnet 5.5 cost $2.50 per 1M tokens for a 5-minute cache or $4 per 1M tokens for a 1-hour cache, meaning your actual savings depend on how frequently you reuse a prompt prefix.&lt;/p&gt;

&lt;p&gt;Argon handles caching differently by removing explicit cache controls. Google does not support cachedContents or caches.create on Argon, relying entirely on implicit caching that activates automatically for prompts of at least 4,096 tokens. You cannot pin a cache explicitly with Argon, so cache savings depend on how often Google matches a repeated prompt prefix.&lt;/p&gt;

&lt;p&gt;Batch options cut base rates in half across all three providers. Through November 30, Argon batch runs at $1 input and $5 output per 1M tokens, matching Sonnet 5.5 Batch and GPT-6.1 Sol Batch. On December 1, Argon batch doubles to $2 input and $10 output, while Sonnet 5.5 and GPT-6.1 Sol batch prices list at $1 and $5 as of October 23 (up to 272K input tokens on GPT-6.1 Sol).&lt;/p&gt;

&lt;h2&gt;
  
  
  What do you need to change in your code for Argon?
&lt;/h2&gt;

&lt;p&gt;Moving existing code to Gemini 4 Argon requires adjusting generation parameters according to Google's migration guide. Argon ignores temperature, top_p, and top_k, so developers should remove these parameters from API calls entirely.&lt;/p&gt;

&lt;p&gt;Instead, Argon introduces thinking levels of low, medium, and high. Google notes that the medium setting is the default and acts as "your main control over quality, latency, and token use". Because thinking tokens count against billed output tokens, higher thinking levels increase your overall per-request invoice.&lt;/p&gt;

&lt;p&gt;A single Argon response can exceed 64K tokens, up to 1M minus the input tokens. Google recommends setting max_output_tokens to at least 32,768 because the limit covers thinking and output together. If you use Grounding with Google Search, Google provides 5,000 free requests per month shared across Gemini 3 and newer models, then charges $14 per 1,000 requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you compare all three with one API key?
&lt;/h2&gt;

&lt;p&gt;Tokely provides access to all three models through a single balance and an OpenAI-compatible Chat Completions endpoint. Switching between providers requires updating only the model ID to gemini-4-argon, claude-sonnet-5-5, or gpt-6.1-sol. You can inspect responses side by side using the &lt;a href="https://tokely.me/playground" rel="noopener noreferrer"&gt;Playground&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Tokely prices listed on October 23, 2026 offer discounts below direct provider rates. Gemini 4 Argon lists at $1.40 input, $7.00 output, and $0.07 cached per 1M tokens. Claude Sonnet 5.5 lists at $1.50 input, $7.50 output, and $0.075 cached per 1M tokens. GPT-6.1 Sol lists at $0.80 input, $4.00 output, and $0.04 cached per 1M tokens.&lt;/p&gt;

&lt;p&gt;The workload of 1M input tokens and 250K output tokens costs $3.15 on Argon, $3.38 on Sonnet 5.5, and $1.80 on GPT-6.1 Sol on Tokely. Tokely prices can change, so check current rates on the &lt;a href="https://tokely.me/models" rel="noopener noreferrer"&gt;Tokely models&lt;/a&gt; page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Price details and migration rules are documented in the official vendor publications, including &lt;a href="https://ai.google.dev/gemini-api/docs/pricing" rel="noopener noreferrer"&gt;Gemini API pricing&lt;/a&gt;, &lt;a href="https://ai.google.dev/gemini-api/docs/changelog" rel="noopener noreferrer"&gt;Gemini API changelog&lt;/a&gt;, &lt;a href="https://ai.google.dev/gemini-api/docs/latest-model" rel="noopener noreferrer"&gt;What's new in Gemini 4 Argon&lt;/a&gt;, &lt;a href="https://platform.claude.com/docs/en/about-claude/pricing" rel="noopener noreferrer"&gt;Claude pricing&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/pricing" rel="noopener noreferrer"&gt;OpenAI API pricing&lt;/a&gt;, and our price study &lt;a href="https://tokely.me/blog/ai-api-price-trends-2026" rel="noopener noreferrer"&gt;Are AI APIs Getting Cheaper?&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/gemini-4-argon-pricing" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>gemini</category>
      <category>api</category>
    </item>
    <item>
      <title>DeepSeek Banned From U.S. Federal Agencies: Who It Affects and What to Use Instead</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Thu, 22 Oct 2026 08:04:12 +0000</pubDate>
      <link>https://dev.to/tokely/deepseek-banned-from-us-federal-agencies-who-it-affects-and-what-to-use-instead-26g2</link>
      <guid>https://dev.to/tokely/deepseek-banned-from-us-federal-agencies-who-it-affects-and-what-to-use-instead-26g2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; The Department of Homeland Security ordered federal civilian agencies to stop buying DeepSeek products and to remove them, including third-party products built using DeepSeek implementations, from their IT. Private companies are not directly restricted, but software vendors to civilian agencies are affected. At list prices, GPT-5 nano and GPT-6 Luna cost less than DeepSeek V4.1 Flash on a typical workload.&lt;/p&gt;

&lt;h2&gt;
  
  
  What exactly did DHS order?
&lt;/h2&gt;

&lt;p&gt;Federal Register notice 2026-21447, filed on October 19, 2026, and published October 20, 2026, publishes notice of the order under Docket DHS-2026-0628. The Secretary of Homeland Security issued a formal order titled Notice of Order Regarding Exclusion and Removal of DeepSeek Products From Federal Civilian Executive Branch Information Technology Systems and Procurements.&lt;/p&gt;

&lt;p&gt;The order has two parts. First, it requires the exclusion of information technology products and services developed by Hangzhou DeepSeek Artificial Intelligence Co., Ltd, including its affiliated entities defined under 48 CFR 2.101, from federal civilian procurements. Second, it mandates the active removal of existing DeepSeek and affiliate software, as well as third-party products and services built using DeepSeek implementations, from federal civilian executive branch information technology systems.&lt;/p&gt;

&lt;p&gt;The statutory basis relies on the Federal Acquisition Supply Chain Security Act of 2018, codified at 41 U.S.C. 1321-1328, alongside implementing regulations in 41 CFR 201-1. Homeland Security acted following a formal review and recommendation by the Federal Acquisition Security Council. According to press reports, this proceeding represents the first time the government has deployed this supply chain security authority against an artificial intelligence enterprise.&lt;/p&gt;

&lt;p&gt;Press reporting from CyberScoop, The Next Web, and Bloomberg Government indicates that the signed order itself is dated July 24, 2026. These reports note government concerns regarding foreign data access risks and underlying model vulnerabilities. The published notice itself focuses on supply chain security protocols and does not identify a specific data leak occurrence.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who is affected, and who is not?
&lt;/h2&gt;

&lt;p&gt;The order applies strictly to federal civilian executive branch information technology systems and federal procurements. Commercial enterprises, private startups, and individual consumers face no direct restrictions under the explicit terms of the notice. This article is not legal advice.&lt;/p&gt;

&lt;p&gt;Software vendors that sell into civilian agencies are the group most affected in practice. The order specifically extends beyond direct DeepSeek subscriptions to include any third-party software products or digital services developed using DeepSeek implementations. Teams that serve civilian agency contracts should check whether any product they deliver relies on DeepSeek models.&lt;/p&gt;

&lt;p&gt;The federal notice formalizes restrictions that had already started emerging across individual state and defense entities. According to press reports, New York, Tennessee and Virginia had already enacted their own limitations on DeepSeek software. Within the federal government, the Navy and the Department of Commerce had earlier instituted bans covering personnel work devices.&lt;/p&gt;

&lt;p&gt;The regulatory announcement arrived during the same week DeepSeek introduced its V4.1-Flash-1017 model, which reached 959 points on Hacker News. The Hacker News thread about the ban drew 541 comments. The signed order is published on regulations.gov under docket DHS-2026-0628.&lt;/p&gt;

&lt;h2&gt;
  
  
  Are there cheaper alternatives?
&lt;/h2&gt;

&lt;p&gt;Two OpenAI models undercut DeepSeek V4.1 Flash on list price. Official prices verified on October 5, 2026, show that a sample workload of 1 million input tokens and 250,000 output tokens costs $0.300 on DeepSeek V4.1 Flash, based on $0.15 per million input tokens and $0.60 per million output tokens. In comparison, GPT-5 nano completes that identical workload for $0.150, charging $0.05 per million input tokens and $0.40 per million output tokens.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvu6es5pzh2g90v00zqi5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvu6es5pzh2g90v00zqi5.png" alt="Bar chart of the cost of 1M input plus 250K output tokens at official list prices: GPT-5 nano $0.150, GPT-6 Luna $0.225, DeepSeek V4.1 Flash $0.300, GPT-5.6 Luna $0.500, GPT-5.4 nano $0.512, Gemini 3.5 Flash Lite $0.925, DeepSeek V4 Pro $1.155, Gemini 3.8 Flash $1.688, Claude Haiku 4.5 $2.250." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Cost of 1M input plus 250K output tokens at official list prices, verified October 5, 2026. Price is not capability: test on your own prompts.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;GPT-6 Luna also costs less than DeepSeek V4.1 Flash, pricing the same workload at $0.225 through rates of $0.10 per million input tokens and $0.50 per million output tokens. Mid-tier alternatives from the same providers command moderately higher rates, with GPT-5.6 Luna totaling $0.500 and GPT-5.4 nano landing at $0.512 for the same 1.25-million-token volume. Further up the price scale, Gemini 3.5 Flash Lite reaches $0.925, while DeepSeek V4 Pro costs $1.155 using its base rates of $0.66 per million input tokens and $1.98 per million output tokens.&lt;/p&gt;

&lt;p&gt;Larger models cost more: Gemini 3.8 Flash comes to $1.688 for the same workload. Claude Haiku 4.5 rounds out the monitored group at $2.250 for the combined 1 million input and 250,000 output tokens.&lt;/p&gt;

&lt;p&gt;Context caching shifts the economic balance when applications reuse extensive system prompts or reference documents. DeepSeek V4.1 Flash applies a 98 percent discount to cached inputs, dropping cached input rates to $0.003 per million tokens. OpenAI applies a 90 percent caching discount, resulting in cached input rates of $0.005 per million tokens for GPT-5 nano and $0.01 per million tokens for GPT-6 Luna.&lt;/p&gt;

&lt;p&gt;When an engineering team caches 80 percent of input tokens, the net workload costs adjust noticeably across providers. Under an 80 percent cache scenario on that standard workload, GPT-5 nano costs $0.114, GPT-6 Luna costs $0.153, and DeepSeek V4.1 Flash costs $0.182. Price metrics do not measure model reasoning or task performance, so engineering teams should test prospective replacements against their specific application prompts before committing to a provider transition.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you switch models without rewriting code?
&lt;/h2&gt;

&lt;p&gt;A single OpenAI-compatible API key on Tokely provides unified routing and billing across DeepSeek, OpenAI, Google, and Anthropic models. There is no new SDK, account or invoice per vendor. Migrating an existing integration from DeepSeek to another model requires only an update to the model ID string within your client configuration.&lt;/p&gt;

&lt;p&gt;Test candidates on your own prompts before you switch production traffic. In the &lt;a href="https://tokely.me/playground" rel="noopener noreferrer"&gt;Playground&lt;/a&gt; you can run the same prompt on each candidate model first. You can review available target identifiers, pricing, and provider compatibility directly on the &lt;a href="https://tokely.me/models" rel="noopener noreferrer"&gt;Tokely models&lt;/a&gt; index.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;Regulatory documentation and reporting details can be found in &lt;a href="https://www.federalregister.gov/documents/2026/10/20/2026-21447/notice-of-order-regarding-exclusion-and-removal-of-deepseek-products-from-federal-civilian-executive" rel="noopener noreferrer"&gt;Federal Register notice 2026-21447&lt;/a&gt;, alongside news coverage from &lt;a href="https://www.cyberscoop.com/dhs-bans-deepseek-federal-agencies/" rel="noopener noreferrer"&gt;CyberScoop&lt;/a&gt; and &lt;a href="https://thenextweb.com/news/us-bars-deepseek-federal-agencies" rel="noopener noreferrer"&gt;The Next Web&lt;/a&gt;, with API cost figures sourced from the Tokely pricing study &lt;a href="https://tokely.me/blog/ai-api-price-trends-2026" rel="noopener noreferrer"&gt;Are AI APIs Getting Cheaper?&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/deepseek-federal-ban-alternatives" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>security</category>
      <category>api</category>
    </item>
    <item>
      <title>Claude API 2026-10-21: What Breaks and How to Upgrade</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Thu, 22 Oct 2026 08:04:12 +0000</pubDate>
      <link>https://dev.to/tokely/claude-api-2026-10-21-what-breaks-and-how-to-upgrade-1954</link>
      <guid>https://dev.to/tokely/claude-api-2026-10-21-what-breaks-and-how-to-upgrade-1954</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Anthropic released API version &lt;code&gt;2026-10-21&lt;/code&gt; on October 21, 2026. Requests on the new version that send &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt; or &lt;code&gt;top_k&lt;/code&gt;, a &lt;code&gt;document&lt;/code&gt; in an assistant message, or &lt;code&gt;citations&lt;/code&gt; in a user message return 400. New SDK majors send the new version by default and pass your key as &lt;code&gt;Authorization: Bearer&lt;/code&gt;. Requests that stay on &lt;code&gt;2023-06-01&lt;/code&gt; keep working.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed on October 21?
&lt;/h2&gt;

&lt;p&gt;Anthropic released API version &lt;code&gt;2026-10-21&lt;/code&gt; on October 21, 2026, the first new version since &lt;code&gt;2023-06-01&lt;/code&gt;. Eight official SDK and CLI libraries released new major versions simultaneously to send &lt;code&gt;2026-10-21&lt;/code&gt; by default. These releases include Python SDK 2.0.0, TypeScript SDK 1.0.0, C# SDK 13.0.0, Go SDK 2.0.0, Java SDK 3.0.0, PHP SDK 1.0.0, Ruby SDK 2.0.0, and CLI 2.0.0. The new versions are licensed under Apache 2.0 instead of MIT.&lt;/p&gt;

&lt;p&gt;Direct API callers opt in explicitly by passing the header &lt;code&gt;anthropic-version: 2026-10-21&lt;/code&gt;. Older SDK major releases remain functional and continue pinning requests to the &lt;code&gt;2023-06-01&lt;/code&gt; version. On Amazon Bedrock, version &lt;code&gt;2026-10-21&lt;/code&gt; is available only for Claude 4.7 and later models.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which requests now return 400?
&lt;/h2&gt;

&lt;p&gt;Sending &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt;, or &lt;code&gt;top_k&lt;/code&gt; to the Messages API, token counting endpoints, or Message Batches returns a 400 error under version &lt;code&gt;2026-10-21&lt;/code&gt;. The API rejects requests containing any of these three fields even if the payload sets them to their default values. Without them, requests sample with the defaults, including a &lt;code&gt;temperature&lt;/code&gt; of 1.0. Before, this request worked; on &lt;code&gt;2026-10-21&lt;/code&gt; it returns 400:&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;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"claude-sonnet-4-6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"messages"&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;span class="nl"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Analyze these logs."&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;span class="nl"&gt;"temperature"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mf"&gt;0.2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"max_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1024&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;After, the same request without the sampling parameter:&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;"model"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"claude-sonnet-4-6"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"messages"&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;span class="nl"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Analyze these logs."&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;span class="nl"&gt;"max_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="mi"&gt;1024&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;Models that already accept only defaults, such as Claude 4.7 and later, sample exactly as before. On models that accept other values, such as Claude Sonnet 4.6, a request that lowered &lt;code&gt;temperature&lt;/code&gt; loses that effect, and no other setting replaces it. Callers dependent on non-default values must stop sending them or keep those specific requests on &lt;code&gt;2023-06-01&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Placing a &lt;code&gt;document&lt;/code&gt; block directly within an assistant message returns an HTTP 400 response. Client payloads must send &lt;code&gt;document&lt;/code&gt; blocks inside user messages instead. The API still accepts &lt;code&gt;document&lt;/code&gt; blocks nested inside another block in assistant messages, such as results returned by a web fetch tool.&lt;/p&gt;

&lt;p&gt;Supplying a text block that contains a non-empty &lt;code&gt;citations&lt;/code&gt; array inside a user message also generates a 400 error. This restriction applies whether the text block appears directly in a user message or inside a &lt;code&gt;search_result&lt;/code&gt; block. The API continues to accept citation arrays inside assistant messages, as well as the setting &lt;code&gt;"citations": {"enabled": true}&lt;/code&gt; on documents and search results.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes in the new SDKs?
&lt;/h2&gt;

&lt;p&gt;API keys are now sent as &lt;code&gt;Authorization: Bearer&lt;/code&gt; headers instead of &lt;code&gt;X-Api-Key&lt;/code&gt;. The Claude API accepts either header format, so direct callers require no modifications. Any proxy or gateway that reads &lt;code&gt;X-Api-Key&lt;/code&gt; must be updated to read Authorization, though &lt;code&gt;AnthropicFoundry&lt;/code&gt; still sends &lt;code&gt;x-api-key&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;MessageParam&lt;/code&gt; in the Python SDK is now a union of &lt;code&gt;UserMessageParam&lt;/code&gt;, &lt;code&gt;AssistantMessageParam&lt;/code&gt;, and &lt;code&gt;SystemMessageParam&lt;/code&gt;. Beta versions split following the identical design pattern. Calling &lt;code&gt;MessageParam&lt;/code&gt; directly raises a &lt;code&gt;TypeError&lt;/code&gt; at runtime, requiring Python developers to write messages as standard dictionaries.&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="c1"&gt;# Before: Python SDK 1.x
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anthropic.types&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;MessageParam&lt;/span&gt;

&lt;span class="n"&gt;message&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;MessageParam&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;role&lt;/span&gt;&lt;span class="o"&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="n"&gt;content&lt;/span&gt;&lt;span class="o"&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# After: Python SDK 2.0.0
&lt;/span&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;anthropic.types&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;MessageParam&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;MessageParam&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Text Completions is removed from the TypeScript, Go, Java, and Ruby SDKs, as well as the CLI where &lt;code&gt;ant completions create&lt;/code&gt; has been removed. Applications calling legacy completion endpoints must migrate their payloads to the Messages API.&lt;/p&gt;

&lt;p&gt;The non-beta Models methods no longer accept beta flags across SDK clients. To send beta headers, call the same methods on &lt;code&gt;client.beta.models&lt;/code&gt;. In Python, this requires calling &lt;code&gt;client.beta.models.list(betas=[beta])&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The TypeScript and Ruby SDK tool runners drop client-side compaction via &lt;code&gt;compactionControl&lt;/code&gt; in favor of server-side compaction. Applications enable server-side compaction by providing &lt;code&gt;betas: ["compact-2026-01-12"]&lt;/code&gt;. It is configured through &lt;code&gt;context_management&lt;/code&gt; edits of type &lt;code&gt;compact_20260112&lt;/code&gt;, with a trigger of at least 50,000 input tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which Admin API fields were renamed?
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;2026-10-21&lt;/code&gt; the Admin API renames five response fields and the Claude Enterprise Analytics API renames two; the old names are gone. Role-based access control requests now reference &lt;code&gt;role_ids&lt;/code&gt; instead of &lt;code&gt;roles&lt;/code&gt; on RBAC groups. RBAC group members replace &lt;code&gt;group_id&lt;/code&gt; with &lt;code&gt;rbac_group_id&lt;/code&gt;, while RBAC roles rename &lt;code&gt;name&lt;/code&gt; to &lt;code&gt;display_name&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Organization and workspace rate-limit entries replace &lt;code&gt;group_type&lt;/code&gt; with &lt;code&gt;group.type&lt;/code&gt;. In the Claude Enterprise Analytics API, per-user usage and cost reports replace &lt;code&gt;actor.email&lt;/code&gt; with &lt;code&gt;actor.email_address&lt;/code&gt;. In addition, activity summaries responses rename &lt;code&gt;summaries&lt;/code&gt; to &lt;code&gt;data&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;API key responses replace &lt;code&gt;workspace_id&lt;/code&gt; with a &lt;code&gt;scope&lt;/code&gt; field. Single-workspace API keys store the identifier under &lt;code&gt;scope.workspace_id&lt;/code&gt;. An all-workspaces key returns a &lt;code&gt;scope&lt;/code&gt; of &lt;code&gt;{"type": "organization"}&lt;/code&gt; with no &lt;code&gt;workspace_id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you upgrade safely?
&lt;/h2&gt;

&lt;p&gt;Upgrading to &lt;code&gt;2026-10-21&lt;/code&gt; follows three steps from the official migration guide. First, switch to &lt;code&gt;2026-10-21&lt;/code&gt; by updating your SDK dependency to the new major version or by adding the header. Second, fix breaking changes that affect your implementation, including removing sampling parameters and updating dictionary formats. Third, run your test suite against &lt;code&gt;2026-10-21&lt;/code&gt; before releasing updates to production.&lt;/p&gt;

&lt;p&gt;Updating SDK dependencies switches client calls to the new version header automatically. In Python environments, developers upgrade packages via standard package management.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;--upgrade&lt;/span&gt; &lt;span class="s2"&gt;"anthropic&amp;gt;=2.0.0"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Direct HTTP callers can test individual payloads by setting the &lt;code&gt;anthropic-version&lt;/code&gt; header manually. This validates that request schemas comply with the new requirements before making code changes in production.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://api.anthropic.com/v1/messages &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"anthropic-version: 2026-10-21"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$ANTHROPIC_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"content-type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "model": "claude-sonnet-4-6",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Ping"}]
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Does this affect Claude Code or apps using Tokely?
&lt;/h2&gt;

&lt;p&gt;Tokely's &lt;code&gt;/v1/messages&lt;/code&gt; endpoint at base URL &lt;code&gt;https://api.tokely.me&lt;/code&gt; accepts API keys sent via &lt;code&gt;Authorization: Bearer&lt;/code&gt; or &lt;code&gt;x-api-key&lt;/code&gt;. Because the gateway accepts both authentication schemas, new major SDKs authenticate without changes. Tokely forwards the &lt;code&gt;anthropic-version&lt;/code&gt; header you send and defaults to &lt;code&gt;2023-06-01&lt;/code&gt; when absent, so plan for the same &lt;code&gt;2026-10-21&lt;/code&gt; rules when you upgrade your SDK.&lt;/p&gt;

&lt;p&gt;To point Claude Code at Tokely, see the &lt;a href="https://tokely.me/docs/claude-code" rel="noopener noreferrer"&gt;Claude Code guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;p&gt;This guide references the &lt;a href="https://platform.claude.com/docs/en/release-notes/overview" rel="noopener noreferrer"&gt;Anthropic release notes&lt;/a&gt;, the official migration document &lt;a href="https://platform.claude.com/docs/en/api/migration-2026-10-21" rel="noopener noreferrer"&gt;Migrating to API version &lt;code&gt;2026-10-21&lt;/code&gt;&lt;/a&gt;, and the protocol documentation on &lt;a href="https://platform.claude.com/docs/en/api/versioning" rel="noopener noreferrer"&gt;API versions&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/claude-api-2026-10-21-migration" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
      <category>python</category>
    </item>
    <item>
      <title>What Is Tokely? One API for GPT, Claude, Gemini and 130+ Models</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Thu, 22 Oct 2026 07:15:40 +0000</pubDate>
      <link>https://dev.to/tokely/what-is-tokely-one-api-for-gpt-claude-gemini-and-130-models-ajg</link>
      <guid>https://dev.to/tokely/what-is-tokely-one-api-for-gpt-claude-gemini-and-130-models-ajg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Tokely (tokely.me) is a hosted LLM gateway. You get one OpenAI-compatible API key and one prepaid USD balance for 137 text, image, video and audio models. They come from 14 model developers, including OpenAI, Anthropic, Google, xAI, DeepSeek, Moonshot and Qwen. Published rates are up to 85% below official list prices on selected models and 30% lower at the median, with no subscription and no platform fee.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does it cost compared to official prices?
&lt;/h2&gt;

&lt;p&gt;The examples below use a matched workload of 1M uncached input plus 250K output tokens. Tokely rates are dated October 12, 2026; reference prices were checked October 5 and October 15, 2026.&lt;/p&gt;

&lt;p&gt;Grok 4.3: $0.1875 input and $0.375 output per 1M tokens on Tokely, against $1.25 and $2.50 from xAI. That is 85% less on the example workload.&lt;/p&gt;

&lt;p&gt;GPT-5.4 Mini: $0.30 and $1.80 on Tokely, against $0.75 and $4.50 from OpenAI, 60% less. Claude Haiku 5.5: $0.042 and $0.21, against $0.10 and $0.50 from Anthropic, 57.6% less.&lt;/p&gt;

&lt;p&gt;Claude Sonnet 5.5: $1.50 and $7.50 on Tokely, against $2 and $10 on the OpenRouter listing, 25% less before OpenRouter's platform fee. Live rates for every model are on the &lt;a href="https://tokely.me/pricing" rel="noopener noreferrer"&gt;pricing page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;There is no subscription, no monthly minimum and no platform fee. You top up a prepaid balance and pay only for the tokens or media you generate. Images start at $0.0054 per image and video at $0.01116 per second; embeddings are billed on input tokens only. The &lt;a href="https://tokely.me/blog/ai-api-cost-calculator" rel="noopener noreferrer"&gt;cost calculator&lt;/a&gt; estimates a workload before you spend anything.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you connect?
&lt;/h2&gt;

&lt;p&gt;Point any OpenAI-compatible client at &lt;code&gt;https://api.tokely.me/v1&lt;/code&gt; and authenticate with your Tokely key. Your request format stays the same.&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="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;base_url&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;https://api.tokely.me/v1&lt;/span&gt;&lt;span class="sh"&gt;"&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="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;YOUR_TOKELY_API_KEY&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;reply&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;gpt-5.4-mini&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, Tokely!&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;reply&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;p&gt;To switch to Claude, Gemini or DeepSeek, change the &lt;code&gt;model&lt;/code&gt; ID. No new account, SDK or invoice.&lt;/p&gt;

&lt;p&gt;Claude Code connects through the native Anthropic Messages API (&lt;code&gt;/v1/messages&lt;/code&gt;) with streaming, tools and prompt caching. The &lt;a href="https://tokely.me/docs/claude-code" rel="noopener noreferrer"&gt;Claude Code guide&lt;/a&gt; shows how to map the Sonnet, Opus and Haiku slots to Tokely model IDs.&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="nv"&gt;ANTHROPIC_BASE_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://api.tokely.me &lt;span class="nv"&gt;ANTHROPIC_AUTH_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'&amp;lt;YOUR_TOKELY_API_KEY&amp;gt;'&lt;/span&gt; claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Which models are available?
&lt;/h2&gt;

&lt;p&gt;The catalog lists 137 live models, 114 of them for text. The same key also covers image models such as Nano Banana 2, Nano Banana Pro, GPT Image 2, Seedream 5.0 Pro, Qwen Image 3.0 and FLUX.1 Kontext Pro, and video models such as Veo 3.1, Grok Imagine Video, Seedance 1.5 Pro and Wan 2.6.&lt;/p&gt;

&lt;p&gt;Speech synthesis and asynchronous audio tasks run on the same balance. Embeddings are served at &lt;code&gt;/v1/embeddings&lt;/code&gt; for &lt;code&gt;text-embedding-3-small&lt;/code&gt;, &lt;code&gt;text-embedding-3-large&lt;/code&gt; and &lt;code&gt;text-embedding-ada-002&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;New models join the same key and balance as they ship. Each &lt;a href="https://tokely.me/models" rel="noopener noreferrer"&gt;model page&lt;/a&gt; lists its endpoints, parameters, streaming support and current price, and &lt;code&gt;GET /v1/models&lt;/code&gt; returns every enabled ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when a provider fails?
&lt;/h2&gt;

&lt;p&gt;Tokely has five routing modes: Balanced, Lowest cost, Fastest, Most reliable and Fixed. Set a default in account settings or choose one per request with the &lt;code&gt;X-Tokely-Routing&lt;/code&gt; header. Lowest cost compares current route quotes for a normalized token mix. Fixed keeps the selected route and fails instead of substituting a model.&lt;/p&gt;

&lt;p&gt;If a compatible route returns an eligible error before work is accepted, the gateway retries another configured route for the same model. A failed route doesn't have to become a failed request. Fallback never silently duplicates paid work: accepted media tasks stay pinned to their route, and partial streams are not replayed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you control spending?
&lt;/h2&gt;

&lt;p&gt;Budgets are enforced inside the gateway, before a request is billed. Daily and monthly account budgets in UTC apply across every key and the Playground. Each key can also have its own lifetime budget, model allowlist, IP restrictions and expiry date.&lt;/p&gt;

&lt;p&gt;Before generation, Tokely reserves the estimated cost, then settles actual usage and releases the rest. A request that would exceed a limit is rejected with a distinct error instead of being billed.&lt;/p&gt;

&lt;p&gt;Every response carries an &lt;code&gt;X-Request-ID&lt;/code&gt; that links to its dashboard log, with the model, token usage, routing mode, attempt outcomes, duration, HTTP status and billed cost. Usage can be exported, and signed webhooks report events to your backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens to your data?
&lt;/h2&gt;

&lt;p&gt;Tokely doesn't store API prompts or completions, only the usage metadata needed for billing. Business customers can sign the &lt;a href="https://tokely.me/dpa" rel="noopener noreferrer"&gt;Data Processing Addendum&lt;/a&gt;. The &lt;a href="https://tokely.me/privacy" rel="noopener noreferrer"&gt;privacy policy&lt;/a&gt; and &lt;a href="https://tokely.me/subprocessors" rel="noopener noreferrer"&gt;subprocessor list&lt;/a&gt; are public.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is Tokely an OpenRouter alternative?
&lt;/h2&gt;

&lt;p&gt;Yes. Both give one key for many models. Tokely charges no platform fee on top-ups, and on Claude Sonnet 5.5 its published token rates are 25% below the OpenRouter listing. The full comparison is in &lt;a href="https://tokely.me/blog/openrouter-vs-tokely" rel="noopener noreferrer"&gt;OpenRouter vs Tokely&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I pay?
&lt;/h2&gt;

&lt;p&gt;Open Dashboard → Billing and top up through the hosted crypto checkout. Deposits range from $10 to $10,000 in USD equivalent. Funds become available after the payment settles, and one balance serves all your API keys. Tokely is pay as you go with no subscription; for volume terms, write to &lt;a href="mailto:sup@tokely.me"&gt;sup@tokely.me&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I get started?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://tokely.me/sign-in?mode=sign-up&amp;amp;next=%2Fdashboard%3Fsection%3Dapi-keys" rel="noopener noreferrer"&gt;Create an account and an API key&lt;/a&gt;, add funds from $10, then change your base URL to &lt;code&gt;https://api.tokely.me/v1&lt;/code&gt; and follow the &lt;a href="https://tokely.me/docs" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt;. The &lt;a href="https://tokely.me/playground" rel="noopener noreferrer"&gt;Playground&lt;/a&gt; uses the same balance and budgets, so you can compare models on real prompts before writing code.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/what-is-tokely" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>api</category>
      <category>llm</category>
      <category>openai</category>
    </item>
    <item>
      <title>Are AI APIs Getting Cheaper? Official Prices of 66 Models, 2024-2026</title>
      <dc:creator>Tokely — AI API Platform</dc:creator>
      <pubDate>Thu, 22 Oct 2026 07:15:39 +0000</pubDate>
      <link>https://dev.to/tokely/are-ai-apis-getting-cheaper-official-prices-of-66-models-2024-2026-3b85</link>
      <guid>https://dev.to/tokely/are-ai-apis-getting-cheaper-official-prices-of-66-models-2024-2026-3b85</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Research scope:&lt;/strong&gt; This study compares official AI API list prices as of October 5, 2026. Model release dates are used to compare pricing across model generations, not to reconstruct historical price changes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; At current official prices, the newest top-tier model of 66 we compared lists output tokens at 6.25x the price of an April 2025 flagship: $50 versus $8 per million. Workhorse models from different generations sit at the same $10, and the cheapest models from 2024 and 2026 cost about the same, $0.40 to $0.60. On most current models, cached input is 90 to 98% cheaper than fresh input.&lt;/p&gt;

&lt;h2&gt;
  
  
  What did we measure?
&lt;/h2&gt;

&lt;p&gt;Our dataset tracks 66 production language models released between April 2024 and September 2026 across eight commercial model developers. OpenAI accounts for 38 models, Anthropic accounts for 12, Qwen provides five, Google provides five, Moonshot has two, DeepSeek has two, MiniMax has one, and xAI has one.&lt;/p&gt;

&lt;p&gt;For each model, we gathered the official list price per 1 million input tokens, 1 million output tokens, and 1 million cached-input tokens, verified on October 5, 2026. We also recorded each model's official release date, which we use only to group models by generation.&lt;/p&gt;

&lt;p&gt;The findings are organized around four charts: flagship pricing, tier distribution, caching discounts and output-to-input ratios. All figures are list prices in US dollars per 1 million tokens. The full dataset is available as a CSV file so you can check every number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 1: The flagship premium
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof9q444xva92g49popqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fof9q444xva92g49popqe.png" alt="Line chart of current official output prices per 1M tokens, by model release date. OpenAI top models: GPT-4o (May 2024) $15, GPT-4.1 (April 2025) $8, GPT-6 Astra (September 2026) $50. OpenAI Pro tier: $120 to $180. Anthropic top models: $25 (Opus) and $50 (Fable). The cheapest models of each generation: $0.40 to $0.60." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Output price of each developer's top model and the cheapest model, by release date. Log scale. Current official list prices, verified October 5, 2026.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;We call the main pattern the flagship premium: at today's prices, each newer top-tier model lists far above the previous generation's flagship, while workhorse and budget models of different generations cost about the same.&lt;/p&gt;

&lt;p&gt;OpenAI's top general models show it across eight generations. At current list prices, the May 2024 GPT-4o snapshot costs $15 per 1 million output tokens and the November 2024 snapshot $10. GPT-4.1 (April 2025) is the cheapest flagship at $8. Each later generation lists higher: GPT-5 (August 2025) at $10, GPT-5.2 (December 2025) at $14 and GPT-5.4 (March 2026) at $15.&lt;/p&gt;

&lt;p&gt;The gap widens in the two newest generations. GPT-5.5 (April 2026) lists at $30 per 1 million output tokens and GPT-6 Astra (September 2026) at $50. Today GPT-6 Astra's output price is 6.25x that of GPT-4.1, released 17 months earlier.&lt;/p&gt;

&lt;p&gt;Above the flagships sits OpenAI's Pro tier. GPT-5 Pro (October 2025) lists at $120 per 1 million output tokens, GPT-5.2 Pro at $168, and GPT-5.4 Pro and GPT-5.5 Pro at $180, the highest output price in the dataset.&lt;/p&gt;

&lt;p&gt;Anthropic reaches the same ceiling differently. Every Opus generation from Claude Opus 4.5 (November 2025) to Claude Opus 5 (July 2026) lists at $25 per 1 million output tokens. Instead of pricing Opus higher, Anthropic added a tier above it: Claude Fable 5 (June 2026) and Claude Fable 5.1 (September 2026) list at $50.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 2: The workhorse tier sits at $10
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frs668e99f6sg4dfpusca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frs668e99f6sg4dfpusca.png" alt="Horizontal bar chart of output prices per 1M tokens: Claude Fable 5.1 $50, GPT-6 Astra $50, Claude Opus 5.5 $20, Kimi K3 $15, Claude Sonnet 5.5 $10, GPT-6.1 Sol $10, Grok 4.7 $6, Claude Haiku 4.5 $5, Gemini 3.8 Flash $3.75, Gemini 3.5 Flash Lite $2.5, DeepSeek V4 Pro $1.98, DeepSeek V4.1 Flash $0.6, GPT-6 Luna $0.5." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Output price of the newest model in each tier, October 2026. Log scale.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;While the newest top-tier models list at $50, the workhorse tier sits at $10 per 1 million output tokens across generations. GPT-6.1 Sol (September 2026) lists at $2 input and $10 output, the same output price as GPT-5 (August 2025).&lt;/p&gt;

&lt;p&gt;Anthropic's newer mid-tier models list lower than older ones. Claude Sonnet 4.6 (February 2026) lists at $15 per 1 million output tokens, while Sonnet 5 (June 2026) and Sonnet 5.5 (September 2026) list at $10. Claude Opus 5.5 (September 2026) lists at $4 input and $20 output, below every earlier Opus at $5 and $25.&lt;/p&gt;

&lt;p&gt;Developers now ship explicit three-tier families. OpenAI's GPT-6 family lists Astra at $50, Sol at $10 and Luna at $0.50 per 1 million output tokens. Across all developers, the newest models span a 100x output price range: Claude Fable 5.1 and GPT-6 Astra at $50 at the top, GPT-6 Luna at $0.50 at the bottom.&lt;/p&gt;

&lt;p&gt;In between, Kimi K3 lists at $15 per 1 million output tokens, Grok 4.7 at $6, Claude Haiku 4.5 at $5, Gemini 3.8 Flash at $3.75, Gemini 3.5 Flash Lite at $2.50, DeepSeek V4 Pro at $1.98 and DeepSeek V4.1 Flash at $0.60.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 3: Budget models from 2024 and 2026 cost the same
&lt;/h2&gt;

&lt;p&gt;The cheapest output prices are nearly identical across generations. GPT-4o mini (July 2024) lists at $0.60 per 1 million output tokens, GPT-4.1 nano (April 2025) and GPT-5 nano (August 2025) at $0.40, and the September 2026 budget models GPT-6 Luna and DeepSeek V4.1 Flash at $0.50 and $0.60.&lt;/p&gt;

&lt;p&gt;Input prices at the bottom sit in a similar band. GPT-5 nano lists input at $0.05 per 1 million tokens, GPT-6 Luna at $0.10 and DeepSeek V4.1 Flash at $0.15. Across generations, the cheapest input price stays between $0.05 and $0.15.&lt;/p&gt;

&lt;p&gt;This study compares list prices, not capability. A budget model from September 2026 may handle harder tasks per token than one from July 2024; we did not test that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 4: Cached input costs 10 to 50x less on most current models
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xan9it4jtqm5dtrr5rx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xan9it4jtqm5dtrr5rx.png" alt="Scatter chart of current cached-input discounts by model release date. OpenAI: 50% (GPT-4o mini, 2024), 75% (GPT-4.1), 90% (GPT-5), 95% (GPT-6.1 Sol). DeepSeek V4.1 Flash reaches 98%, Claude Fable 5.1 97.5%, Grok 4.7 75%." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Discount on cached input versus fresh input at current list prices, by model release date. OpenAI highlighted; other developers in grey.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Cache discounts differ most between generations. At current prices, OpenAI's cached-input discount is 50% on GPT-4o mini (2024), 75% on GPT-4.1 (April 2025), 90% on GPT-5 (August 2025) and 95% on GPT-6.1 Sol (September 2026). A 95% discount makes cached input 20x cheaper than fresh input.&lt;/p&gt;

&lt;p&gt;Anthropic lists a 90% cached-input discount on Claude Opus 4.5 through Opus 5, 95% on Claude Opus 5.5 and Claude Sonnet 5.5, and 97.5% on Claude Fable 5.1. DeepSeek V4.1 Flash lists 98%: $0.003 cached versus $0.15 fresh input.&lt;/p&gt;

&lt;p&gt;A few developers discount less: Grok 4.7 lists 75% off, MiniMax M3 80% and Kimi K2.6 83%. On most 2026 models, though, cached input costs 10x to 50x less than fresh input.&lt;/p&gt;

&lt;p&gt;The difference is easy to see on a long context. On GPT-6.1 Sol, a 100,000-token context costs $0.20 as fresh input at $2 per 1 million tokens. Cached, the same context costs $0.01.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding 5: Newer models price output at 5x input
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7opdaed2f5163kjhzmik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7opdaed2f5163kjhzmik.png" alt="Scatter chart of current output-to-input price ratios by model release date. GPT-4 Turbo 3x, GPT-5 family 8x, GPT-5.4 and GPT-5.5 6x, GPT-6 family 5x. Anthropic models 5x, Gemini 3.6 to 3.8 Flash 5x, DeepSeek 3x to 4x, Grok 4.7 3x." width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Output price divided by input price at current list prices, by model release date. OpenAI in black; other developers in grey.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The output-to-input price ratio differs by generation. GPT-4 Turbo (April 2024) lists output at 3x input. OpenAI models from GPT-4o to o4-mini use 4x, the GPT-5 family (August 2025 to February 2026) 8x, GPT-5.4 and GPT-5.5 6x, and the GPT-6 family 5x.&lt;/p&gt;

&lt;p&gt;Other developers' current models use the same multiple. Every Anthropic model in our dataset lists output at 5x input, and so do Gemini 3.6, 3.7 and 3.8 Flash. DeepSeek uses 3x to 4x and Grok 4.7 3x.&lt;/p&gt;

&lt;p&gt;Because output tokens cost three to eight times more than input tokens, output volume usually decides the bill. Workloads that generate long text, code or multi-step reasoning are the most sensitive to the output price.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should teams do with this?
&lt;/h2&gt;

&lt;p&gt;Route by tier. With a 100x spread between the newest top and budget models, send routine tasks like data extraction, classification, and short conversational turns to models in the $0.50 to $10 output price range. Reserve $50 models like GPT-6 Astra or Claude Fable 5.1 for the tasks that need them.&lt;/p&gt;

&lt;p&gt;Design prompts for caching. Put system instructions, schemas and reference documents at the front of every request so they stay identical across calls. Cached input is 90% to 98% cheaper than fresh input on most current models, so every stable token at the front of a prompt pays off.&lt;/p&gt;

&lt;p&gt;Forecast output, not input. Output tokens cost five times as much as fresh input tokens and up to two hundred times as much as cached input tokens. Tokely gives you one API key and one balance across all of these tiers, with routing modes and automatic fallback; compare rates on &lt;a href="https://tokely.me/pricing" rel="noopener noreferrer"&gt;Tokely pricing&lt;/a&gt; and estimate a workload with the &lt;a href="https://tokely.me/blog/ai-api-cost-calculator" rel="noopener noreferrer"&gt;cost calculator&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Methodology and limitations
&lt;/h2&gt;

&lt;p&gt;Prices in this study are official list prices verified on October 5, 2026. They are a snapshot, not a price history: release dates only group models by generation. Some models were repriced after release, such as OpenAI lowering o3 to $2 per 1 million input tokens and $8 per 1 million output tokens in June 2025, so a model's current price can differ from its launch price. Release dates come from official release notes, or the dated model identifier where no notes exist; the CSV records the source for each row.&lt;/p&gt;

&lt;p&gt;The sample covers models tracked in Tokely's catalog, which weights it toward OpenAI with 38 of the 66 entries. We excluded realtime and audio models, batch and priority tiers, long-context surcharges and taxes. All prices are in US dollars per 1 million tokens.&lt;/p&gt;

&lt;h2&gt;
  
  
  Data and citation
&lt;/h2&gt;

&lt;p&gt;The full dataset of 66 models includes developer names, model identifiers, release dates, input rates, output rates, cached input rates, and source verification URLs, and is available for download at &lt;a href="https://tokely.me/blog-media/ai-api-price-trends-2026/ai-api-price-study-2026.csv" rel="noopener noreferrer"&gt;ai-api-price-study-2026.csv&lt;/a&gt;. Cite as: Tokely (2026). Are AI APIs Getting Cheaper? Official Prices of 66 Models, 2024-2026. &lt;a href="https://tokely.me/blog/ai-api-price-trends-2026" rel="noopener noreferrer"&gt;https://tokely.me/blog/ai-api-price-trends-2026&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://tokely.me/blog/ai-api-price-trends-2026" rel="noopener noreferrer"&gt;tokely.me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>datascience</category>
    </item>
  </channel>
</rss>
