Blog

Notes from the gateway

Engineering, pricing, and integration guides.

  1. Multi-Agent Token Cost: What Agent Fan-Out Really Bills

    Multi-agent token cost explained: what a five-subagent fan-out really bills across four model tiers, and how to measure your own agent spend from usage data.

  2. Structured Outputs vs JSON Mode vs Tool Calling for LLM APIs

    Structured outputs vs JSON mode vs tool calling: what each really guarantees, what schemas cost in tokens, and a tested fallback for OpenAI-compatible APIs.

  3. How to Set Up Roo Code With an OpenAI-Compatible API (AtmoRouter)

    Point Roo Code's OpenAI Compatible provider at AtmoRouter: base URL, exact model IDs, the Model Configuration fields that break tasks, and per-task cost math.

  4. Reasoning Token Cost: What reasoning_effort Actually Bills

    Reasoning token cost explained: thinking tokens bill at the output rate, so a 400-token answer can bill 12,400. Math at three effort levels and how to cap it.

  5. How to Set Up Goose With an OpenAI-Compatible API (AtmoRouter)

    Goose OpenAI compatible API setup: point the goose CLI and desktop agent at AtmoRouter, avoid the OPENAI_HOST path trap, and see what a session really costs.

  6. LiteLLM Alternative: Self-Hosted Proxy vs Managed AI Gateway

    Looking for a LiteLLM alternative? Compare a self-hosted proxy with a managed AI gateway on model-list upkeep, ops surface and illustrative token cost math.

  7. Long Context API Cost: What 1M Tokens Really Cost

    Long context API cost is three rates plus how much you resend: illustrative math for a 400k-token prompt across seven models, and when compaction wins.

  8. Zed With an OpenAI-Compatible API: AtmoRouter Setup Guide

    A Zed OpenAI compatible setup for AtmoRouter: the exact settings.json block, which model IDs to enumerate, capability flags, and the errors that follow.

  9. Tool Calling Token Cost: What Your Agent Really Pays Per Turn

    Tool calling token cost is mostly re-billed input: schemas and tool results are resent every turn. Measure your agent's per-turn cost and cut it safely.

  10. Vercel AI SDK OpenAI-Compatible Provider vs @ai-sdk/openai for Gateways

    Compare the Vercel AI SDK OpenAI-compatible provider with @ai-sdk/openai for gateways: which endpoint each calls, setup, streaming usage and per-request cost.

  11. LangChain With an OpenAI-Compatible API: AtmoRouter Setup Guide

    LangChain OpenAI compatible API setup: point ChatOpenAI at AtmoRouter, fix base_url precedence, the two streaming flags, prefixed model IDs and token math.

  12. LLM API Retry and Fallback Patterns That Don't Double Your Bill

    LLM API retry and fallback for OpenAI-compatible endpoints: deadlines, error classes, a cheap standby model, and how to avoid paying twice for one answer.

  13. Aider With an OpenAI-Compatible API: AtmoRouter Setup Guide

    Set up Aider with an OpenAI-compatible API: point it at AtmoRouter, add model metadata so costs show correctly, and split architect, editor and weak models.

  14. AI Code Review Cost per Pull Request: Token Math for DIY Reviewers

    Estimate AI code review cost per pull request with simple token math, live per-model rates, multi-model review panels and prompt caching for CI reviewers.

  15. Cursor OpenAI-Compatible API vs Direct Keys vs Built-in Models

    Compare Cursor built-in usage, direct vendor keys, and a Cursor OpenAI compatible API gateway so Chat and Agent keep working after the 2026 contract change.

  16. How to Set Up Continue.dev with an OpenAI-Compatible API (AtmoRouter)

    Point Continue.dev at AtmoRouter with provider openai and apiBase https://atmorouter.dev/v1, pick live model IDs, and verify chat before enabling Agent mode.

  17. Cheap Claude API Pricing in 2026: What You Actually Pay

    Compare official Anthropic Claude rates with live AtmoRouter Claude API prices, work a real agent-day cost, and connect with one base-URL change.

  18. Prompt Caching for AI Agents: How to Read Cached Tokens and API Costs

    Learn how prompt caching affects AI agent API bills, calculate cached-input costs and verify actual cache hits in AtmoRouter usage logs.

  19. OpenCode with AtmoRouter: Custom Provider Setup Guide

    Add AtmoRouter as an OpenCode custom provider, keep your API key in an environment variable and select an exact model ID for Chat Completions.

  20. How to Switch from OpenRouter to AtmoRouter Without Rewriting Your App

    Move an OpenAI-compatible app from OpenRouter to AtmoRouter: change the endpoint, rotate the API key, map model IDs and validate streaming and billing.

  21. LLM API Latency Explained: First Token, First Text and Tokens per Second

    Understand LLM API latency, first-byte delay, first-text time and effective tokens per second, then use AtmoRouter logs to compare requests fairly.

  22. How to Install Hermes Agent and Connect It to AtmoRouter

    Install Hermes Agent on Windows, macOS or Linux, configure an AtmoRouter custom endpoint, select a model and troubleshoot your first request.

  23. How to Use AtmoRouter with Cline in VS Code

    Connect the Cline VS Code extension to AtmoRouter using an OpenAI-compatible endpoint, API key and model ID, with a practical troubleshooting checklist.

  24. SillyTavern with AtmoRouter: Frontend Characters, Frontier Backends

    Connect SillyTavern to any AtmoRouter model through its OpenAI-compatible Chat API. Full setup, presets for streaming and context size, and how to keep character-card costs predictable.

  25. The Real Cost of a Cheap LLM API: A Concrete Worked Example

    Token prices are per million; your bill is per request. A worked example with real AtmoRouter rate-card numbers showing what an agent workload actually costs per day — and where the money really goes.

  26. OpenRouter Alternatives in 2026: What to Check Before You Commit

    A framework for evaluating OpenRouter alternatives — pricing transparency, failed-request billing, protocol coverage and catalogue honesty — with no vendor scoreboard fillers.

  27. No Anthropic Account Needed: Claude-Flavored Tooling on Every Model

    AtmoRouter serves an Anthropic-compatible Messages endpoint for its whole catalogue — Claude Code and Anthropic SDK users can point their existing tools at any model with a base-URL swap.

  28. What Our First 250 Users Actually Call

    Aggregate patterns from the AtmoRouter catalogue in production: which model families dominate requests, what usage cadence looks like, and what that says about how people route when price is visible.

  29. Point Any Coding Agent at AtmoRouter by Changing One Line

    Cursor, Cline, Continue, Codex CLI and the OpenAI SDK all work against AtmoRouter by swapping a base URL and a key. A practical setup walkthrough with copy-paste snippets.

  30. OpenRouter vs AtmoRouter: API Pricing, Routing and Agent Setup

    Compare OpenRouter and AtmoRouter on model pricing, routing controls, API compatibility and coding-agent setup, with a practical evaluation checklist.

Build with AtmoRouter.