# LLM API Guide (English) > Step-by-step guides to the Claude, GPT, Gemini and Grok APIs: setting up Claude Code, Codex CLI and chat apps, fixing 401 and 429 errors, and estimating token costs. Each guide links the official pages it relies on. Guides: 105. Append `.md` to any guide URL to get its Markdown source, for example `/en/posts/{slug}.md`. The team behind SeedRouter, an API gateway for AI models, runs this site. The guides explain how to set up, debug and pay for model APIs, whichever provider you use. Billed per token. As of 2026-10-08, selected GPT models cost about 10% of the official API price and Claude, Grok and Gemini about 30%; the live price table on seedrouter.net is final. https://seedrouter.net/en/ ## Coding agents Connect Claude Code, Codex CLI, Gemini CLI, OpenCode, Cline and Cursor to the model API you choose. https://llmapiguide.com/en/topics/coding-agents - [Self-Hosted Claude Managed Agents: Access, Setup & Model Gateway](https://llmapiguide.com/en/posts/self-hosted-claude-managed-agents.md): Learn how to access self-hosted Claude Managed Agents, deploy cma-server with PostgreSQL 16+, isolate credentials, and route requests to a custom LLM gateway. - [Codex Getting Dumber? How to Tell If Your Account Was Silently Downgraded](https://llmapiguide.com/en/posts/codex-getting-dumber.md): Suspect Codex is getting dumber? Learn how to tell if your account was silently downgraded, run five-minute verification tests, and recover your subscription. - [Claude Code ANTHROPIC_BASE_URL Not Working: How to Fix It](https://llmapiguide.com/en/posts/claude-code-anthropic-base-url-not-working.md): Setting ANTHROPIC_BASE_URL alone doesn't replace a saved claude.ai login. Also set ANTHROPIC_AUTH_TOKEN (or ANTHROPIC_API_KEY), then confirm with /status. - [How to Use Muse Ember in Claude Code](https://llmapiguide.com/en/posts/muse-ember-claude-code.md): Use Meta Model API's Anthropic-compatible Messages endpoint, set Claude Code's base URL and bearer-token variables. - [NVIDIA Nemotron 3.5 Bolt E4B: 4GB VRAM, 133 tok/s Benchmarks & Local API Setup](https://llmapiguide.com/en/posts/nemotron-3-5-bolt-e4b.md): Run NVIDIA Nemotron 3.5 Bolt E4B locally in 3.5–4.3 GB of VRAM at 133.4 tok/s on an RTX 5070 using llama.cpp with DFlash speculative decoding or vLLM. - [Claude Code v2.1.319 LLM Gateway Auto Mode Fix: CLAUDE_CODE_AUTO_MODE_SERVER=0](https://llmapiguide.com/en/posts/claude-code-auto-mode-server.md): Fix Claude Code v2.1.319 Auto Mode prompts and refused tool calls behind LiteLLM, New API. - [Claude Code v2.1.318 & v2.1.317: Gateway assume_role, Agent SDK & /schedule](https://llmapiguide.com/en/posts/claude-code-v2-1-318-assume-role-mantle.md): Configure Claude Code v2.1.318 and v2.1.317 features including Mantle gateway assume_role, Agent SDK onFailure: "block" hooks, Mod fork effort, and /schedule connector cleanup. - [ServiceNow Apriel Voice 27B Preview: Speech Reasoning, Benchmarks & Setup](https://llmapiguide.com/en/posts/apriel-voice-27b-preview.md): Complete technical guide to ServiceNow's MIT-licensed Apriel Voice 27B Preview speech reasoning model, covering its 635M audio encoder + Gemma 4 26B-A4B MoE architecture. - [Claude Code v2.1.314: blockWritesOutsideWorkingDirectories, Gateway IdP, Fixes](https://llmapiguide.com/en/posts/claude-code-blockwritesoutsideworkingdirectories.md): Configure permissions.blockWritesOutsideWorkingDirectories and gateway upstream IdP groups in Claude Code v2.1.314. - [Claude Code v2.1.316: CLAUDE_CODE_DISABLE_ULTRATHINK, Pooled Budgets & OIDC](https://llmapiguide.com/en/posts/claude-code-disable-ultrathink.md): Learn how to set CLAUDE_CODE_DISABLE_ULTRATHINK=1 in Claude Code v2.1.316 to stop accidental deep-reasoning triggers, and configure pooled_budget, Entra ID oidc.user_id_claim. - [How to Use Kimi K3.1 Pro in Claude Code](https://llmapiguide.com/en/posts/kimi-k3-1-pro-claude-code.md): Set ANTHROPIC_BASE_URL to an Anthropic-format endpoint, ANTHROPIC_AUTH_TOKEN to your key and ANTHROPIC_MODEL to kimi-k3.1-pro, then check /status. - [Nemotron 3.5 Super VL Claude Code Setup](https://llmapiguide.com/en/posts/nemotron-3-5-super-vl-claude-code.md): Connect NVIDIA Nemotron 3.5 Super VL to Claude Code through an Anthropic Messages gateway, configure your environment variables, and fix tool-calling and 400 errors. - [How to Use Qwen 27B in Claude Code](https://llmapiguide.com/en/posts/qwen-27b-claude-code.md): Run Qwen3.8-27B behind an Anthropic-compatible endpoint, then set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL before starting Claude Code. - [The Easiest Way to Set Up a Third-Party API in Codex and Claude Code: A GUI App](https://llmapiguide.com/en/posts/llm-api-config-gui-codex-claude-code.md): Configure a third-party Base URL, API key, and model in OpenAI Codex and Claude Code using our free open-source LLM API Config GUI for Windows and macOS. ## API errors What 401, 429, 529 overloaded, dropped streams and context-length errors mean, and how to fix each one. https://llmapiguide.com/en/topics/api-errors - [Fix Gemini CLI "401 UNAUTHENTICATED" Mid-Session Error and Login Auth Loops](https://llmapiguide.com/en/posts/gemini-cli-401-unauthenticated.md): Fix the Gemini CLI "401 UNAUTHENTICATED" mid-session error and infinite browser login loops by clearing ~/.gemini/oauth_creds.json, unsetting conflicting Google Cloud variables. - [Qwen3.8-27B-FP8 vLLM Deployment Errors: GPU Compatibility, Marlin Kernel Fixes](https://llmapiguide.com/en/posts/qwen3-8-27b-fp8-vllm-deployment-error.md): Fix Qwen3.8-27B-FP8 vLLM deployment errors on RTX 3090, 4090, A100, and L40S with the right Marlin W8A16 kernel flags, VRAM limits, and launch commands. - [Fix Codex "unexpected status 401 Unauthorized: Incorrect API key provided"](https://llmapiguide.com/en/posts/codex-unexpected-status-401-unauthorized-incorrect-api-key.md): Fix "unexpected status 401 Unauthorized: Incorrect API key provided" in Codex CLI, Desktop, and VS Code when signed in with a ChatGPT subscription or API key. - [Fix "stream disconnected before completion" Overload in Codex and sub2api](https://llmapiguide.com/en/posts/stream-disconnected-before-completion-our-servers-are-currently.md): Fix the mid-stream "stream disconnected before completion: Our servers are currently overloaded. Please try again later." error in Codex and sub2api. - [Fix "exceeded retry limit" 429 in sub2api, New API, and Cherry Studio](https://llmapiguide.com/en/posts/exceeded-retry-limit-last-status-429-too-many.md): Fix "exceeded retry limit, last status: 429 Too Many Requests" in Codex, Cherry Studio, sub2api, and New API by tuning pool cooldowns, RPM/TPM caps, and concurrency. - [How to Fix unexpected status 503 Service Unavailable Upstream Service Error](https://llmapiguide.com/en/posts/unexpected-status-503-service-unavailable-the-upstream-service.md): Fix "unexpected status 503 Service Unavailable: The upstream service returned an error. Please try again later." when using OpenAI models and sub2api. - [Fix stream disconnected (response.completed) in Codex CLI and sub2api](https://llmapiguide.com/en/posts/stream-disconnected-before-completion-stream-closed-before-response.md): Fix "stream disconnected before completion: stream closed before response.completed" in Codex CLI, New API, and sub2api by disabling Nginx proxy buffering. - [Fix "stream disconnected before completion: Upstream request failed" in Codex](https://llmapiguide.com/en/posts/stream-disconnected-before-completion-upstream-request-failed.md): Fix the "stream disconnected before completion: Upstream request failed" error in Codex CLI, Cherry Studio, New API, and sub2api by adjusting Nginx timeouts. - [Claude Account Disabled After Paying: What the Email Means and How to Appeal](https://llmapiguide.com/en/posts/claude-account-disabled-after-subscribing.md): Got your Claude Pro or Max account disabled right after subscribing? Learn what the email means, how to appeal the ban, and how to export your data. - [Codex "Selected Model Is at Capacity": OpenAI Load or Your Account?](https://llmapiguide.com/en/posts/codex-selected-model-is-at-capacity.md): Diagnose whether Codex's "Selected model is at capacity" error stems from OpenAI server load or an account routing lock, and safely resume your session. - [Liquid AI LFM3-1.7B (liquid/lfm-3-1.7b) OpenRouter API: Pricing & Free Limits](https://llmapiguide.com/en/posts/liquid-lfm-3-1-7b-api.md): Call Liquid AI LFM3-1.7B on OpenRouter using liquid/lfm-3-1.7b ($0.08/$0.20 per 1M tokens as of 2026-11-10) or liquid/lfm-3-1.7b:free (20 RPM, up to 1,000 RPD). - [API Error: 400 adaptive thinking is not supported on this model](https://llmapiguide.com/en/posts/claude-adaptive-thinking-is-not-supported-on-this-model.md): The request asked a Claude 4.5 or older model, which only does extended thinking, for adaptive thinking. Send type enabled with budget_tokens, or switch to a newer model. - [diagnostics.previous_message_id: must be the id from a prior /v1/messages](https://llmapiguide.com/en/posts/claude-api-diagnostics-previous-message-id-error.md): The request named a previous message that is not a msg_ id the API issued. In Claude Code it follows a connection or rate-limit error; run /clear or start a new session. - [API Error: 400 You have reached your specified API usage limits](https://llmapiguide.com/en/posts/claude-api-reached-specified-api-usage-limits.md): Your Claude Console organization or workspace hit a spend limit someone set. Raise or remove that limit in the Console, or wait until the access date in the message. - [API Error: 400 due to tool use concurrency issues (Claude Code)](https://llmapiguide.com/en/posts/claude-code-400-due-to-tool-use-concurrency-issues.md): The tool calls and tool results in the conversation history no longer pair up. Run /rewind or press Esc twice to step back before the broken turn, or start over with /clear. - [API Error: 400 We've updated our Consumer Terms and Privacy Policy (Claude Code)](https://llmapiguide.com/en/posts/claude-code-accept-updated-consumer-terms-error.md): Your Claude Free, Pro or Max login has not accepted Anthropic's current Consumer Terms. Sign in to claude.ai with the email that /status shows, accept the prompt there, then retry. - [API Error: 400 Input is too long in Claude Code](https://llmapiguide.com/en/posts/claude-code-api-error-400-input-is-too-long.md): The conversation no longer fits the model's context window, in Amazon Bedrock's wording. Update to Claude Code v2.1.217 or later, then run /compact to shrink the session. - [API Error: 400 context_management: Extra inputs are not permitted](https://llmapiguide.com/en/posts/claude-code-context-management-extra-inputs-not-permitted.md): A gateway forwarded Claude Code's beta-only context_management field without its beta header, or to an upstream such as Bedrock that rejects it. Update to Claude Code v2.1.304. - [Claude Code X.Y does not support this model; version X.Z or newer is required](https://llmapiguide.com/en/posts/claude-code-does-not-support-this-model-version-required.md): The Claude Code binary that sent the request is older than the minimum for the model you picked. Update that binary; it may be a desktop app or SDK copy, not the CLI in your PATH. - [API Error: 400 invalid beta flag (Claude Code on Bedrock, Vertex or a gateway)](https://llmapiguide.com/en/posts/claude-code-invalid-beta-flag.md): Claude Code sent an anthropic-beta value the upstream rejects, often Bedrock behind a gateway. Update Claude Code, set CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1, or fix the gateway. - [API Error: 400 Invalid effort level (Claude Code and Claude API)](https://llmapiguide.com/en/posts/claude-code-invalid-effort-level.md): The request asked for more effort than your organization allows on that model. Update to Claude Code v2.1.314, which lowers the level and retries, or pick a lower one with /effort. - [API Error: 400 Invalid input at messages.1.role (Claude Code)](https://llmapiguide.com/en/posts/claude-code-invalid-input-at-messages-role.md): Claude Code sent a role system message inside messages, and the provider only accepts user and assistant there. Claude Code retries by itself only if it recognizes the rejection. - [Opus 5.5's safeguards flagged this session (Claude Code)](https://llmapiguide.com/en/posts/claude-code-opus-safeguards-flagged-this-session.md): A safety classifier on Opus 5.5 flagged the conversation, most often as cybersecurity or biology. Take the fallback model Claude Code offers, or rewind past the turn that did it. - [API Error: Response stalled mid-stream. The response above may be incomplete](https://llmapiguide.com/en/posts/claude-code-response-stalled-mid-stream.md): The stream stopped delivering data partway through the reply, so Claude Code kept the finished part and stopped. Reply continue to resume; if it repeats, check the network path. - [API Error: 400 All target providers failed (Claude Code Router)](https://llmapiguide.com/en/posts/claude-code-router-all-target-providers-failed.md): Claude Code Router could not match the requested model to a model in any provider it tried. Read the stage and message fields in the error, then fix the model name in the profile. - [API Error: 400 messages.N: system content must contain at least one block](https://llmapiguide.com/en/posts/claude-code-system-content-must-contain-at-least-one-block.md): Claude Code changes effort mid-session with an empty system message. A gateway that drops its output_config forwards an empty message the API rejects; update or bypass it. - [API Error: 400 This organization has been disabled (Claude Code)](https://llmapiguide.com/en/posts/claude-code-this-organization-has-been-disabled.md): Claude Code is using an ANTHROPIC_API_KEY from a disabled Console organization, and that key overrides your subscription login. Unset it, or use a key from an active organization. - [API Error: 400 data retention mode 'default' is not available for this model](https://llmapiguide.com/en/posts/claude-data-retention-mode-default-not-available.md): Claude Fable 5 and other Covered Models need 30-day retention; your Bedrock account or project is in default mode. Opt in to the mode the model allows, or pin another model. - [API Error: 400 Identity verification is required to continue (Claude)](https://llmapiguide.com/en/posts/claude-identity-verification-is-required-to-continue.md): Anthropic needs the owner of the account behind your Claude login or API key to verify their identity. Pass the Persona ID check, or switch Claude Code to another account. - [Engine protocol predict request returned 400 (LM Studio with Claude Code)](https://llmapiguide.com/en/posts/lm-studio-engine-protocol-predict-request-returned-400.md): LM Studio's llama.cpp engine could not build a grammar from the tool definitions in the request. Cut the tools or MCP servers, or move back to a runtime that users report works. - [API Error: 400 To turn thinking off on this model, send between_tools](https://llmapiguide.com/en/posts/sonnet-5-5-thinking-between-tools-instead-of-disabled.md): Claude Sonnet 5.5 rejects thinking type disabled at every effort level. Send thinking type between_tools at effort high or below, or leave thinking out to get adaptive thinking. - [This group does not allow /v1/messages dispatch (sub2api relay)](https://llmapiguide.com/en/posts/sub2api-group-does-not-allow-v1-messages-dispatch.md): Your relay key belongs to a sub2api group that may not serve Claude-format requests from OpenAI accounts. Ask the operator to enable dispatch, or use a Claude-model group. - [Suno API and Official MCP Server (Beta): Developer Portal, Setup, and Limits](https://llmapiguide.com/en/posts/suno-api.md): Learn how to access the official Suno API Beta sign-in portal and set up the official Suno MCP server in Claude, ChatGPT, and Gemini without relying on broken cookie wrappers. - [Fix "prompt_cache_retention is not supported on this model" Gateway 400 Errors](https://llmapiguide.com/en/posts/fix-prompt-cache-retention-is-not-supported-on.md): Fix the "prompt_cache_retention is not supported on this model" HTTP 400 error and the reasoning_effort function tools loop across Codex, OpenAI-compatible gateways. - [Gemini 3 Flash Not Working? Fix API Errors](https://llmapiguide.com/en/posts/gemini-3-flash-not-working.md): Fix Gemini 3 Flash 404, 400, 429, 403, and 503 API errors by switching to the v1beta endpoint, removing deprecated parameters, and fixing proxy tool-calling bugs. - [Claude Code API Error 400: How Do I Fix Each Message?](https://llmapiguide.com/en/posts/claude-code-api-error-400-messages.md): Fix Claude Code API Error 400 by matching the exact message: E003 coding agent blocks, Identity verification required, Input is too long, and version errors. - [ds4: required metadata key is missing: deepseek4.block_count](https://llmapiguide.com/en/posts/deepseek-v4-1-flash-not-working.md): If ds4 exits with "required metadata key is missing: deepseek4.block_count", learn why the GGUF header fails and how to fix this model loading error. - [LFM2.5-24B-A2B Tool Calling Not Working: Fixes](https://llmapiguide.com/en/posts/lfm2-5-24b-a2b-tool-calling-not-working.md): If LFM2.5-24B-A2B returns raw tool-call XML or no tool_calls, check the server's chat template and parser, then verify the endpoint returns finish_reason tool_calls. - [Muse Spark Open API Error: How to Fix It](https://llmapiguide.com/en/posts/muse-spark-open-not-working.md): Fix Muse Spark Open API 400, 403, 404, and 429 errors across Meta Model API, OpenRouter, and coding agents, plus Meta Muse app disconnect and block errors. ## Pricing Token prices, prompt caching, and how to estimate and cut a month of API spend. https://llmapiguide.com/en/topics/pricing - [ByteDance Seedance 2.5 Flash API: 720p Pricing, Speed & ModelArk Setup](https://llmapiguide.com/en/posts/seedance-2-5-flash-api.md): Complete developer guide to the ByteDance Seedance 2.5 Flash API (dreamina-seedance-2-5-flash-261115), covering $7.00/1M token pricing ($0.15/s at 720p) as of 2026-11-16. - [DeepSeek Web Search Tool API: deepseek_web_search Setup, Pricing and Fixes](https://llmapiguide.com/en/posts/deepseek-web-search-tool-api.md): Set up deepseek_web_search and deepseek_read_url across DeepSeek's Messages, Responses, and Chat Completions APIs, compare per-request pricing, and fix 400 and gateway errors. - [Gemini 4 Hydrogen API: Access, Pricing and OpenRouter Setup](https://llmapiguide.com/en/posts/gemini-4-hydrogen-api.md): Call the Gemini 4 Hydrogen API via OpenRouter or Google AI Studio at $1.50/$7.50 per 1M tokens as of 2026-11-13, with Flex, Batch, EU routing, code, and Carbon comparisons. - [Qwen 4 Max Preview API: Access, Pricing, and Token Plan Rules](https://llmapiguide.com/en/posts/qwen-4-max-preview-api.md): Check how to call the qwen4-max-preview API via Alibaba Cloud's Token Plan as of 2026-11-12, including credit pricing, 1M context specs, and parameter changes. - [Claude Fable 5.2 on AWS Bedrock, Vertex AI: Fast Mode, Pricing, Code v2.1.322](https://llmapiguide.com/en/posts/claude-fable-5-2-bedrock.md): Configure Claude Fable 5.2 on AWS Bedrock and Google Vertex AI with model IDs, $8/$40 and Fast Mode pricing as of 2026-11-11, Claude Code v2.1.322 fallback, and 400/403 fixes. - [Claude Mythos 5.2 API: 20% Price Cut as of 2026-11-11, Benchmarks, Migration](https://llmapiguide.com/en/posts/claude-mythos-5-2-api-pricing.md): Developer guide to Claude Mythos 5.2 (claude-mythos-5-2) API pricing after the 20% price cut ($8/$40 per 1M tokens as of 2026-11-11), per-task cost vs Opus 5.5 and GPT-6 Cyber. - [Baidu ERNIE 5.5 Flash Preview & Light DT 1.0 OpenRouter API: Pricing & Specs](https://llmapiguide.com/en/posts/ernie-5-5-flash-preview-api.md): Compare Baidu's baidu/ernie-5.5-flash-preview ($0.28/$1.13) and baidu/ernie-light-dt-1.0-intl ($1.13/$3.94) OpenRouter APIs as of 2026-11-11: specs, speed, and OpenAI SDK setup. - [Thinking Machines Inkling 2 Small API: Free Tier, Pricing and OpenRouter Setup](https://llmapiguide.com/en/posts/inkling-2-small-api.md): Call thinkingmachines/inkling-2-small:free on OpenRouter with a 1M context window, 20 RPM / 1,000 RPD rate limits, Python SDK code, and small-model comparisons. - [Meituan LongCat-2.5 Vision Open Weights (MIT): Local vLLM vs Hosted API Pricing](https://llmapiguide.com/en/posts/longcat-2-5-open-weights.md): Deploy Meituan's MIT-licensed LongCat-2.5 Vision open weights (1.6T MoE, 48B active) with vLLM or SGLang, check BF16/FP8/W4A4 VRAM requirements. - [Meta Muse Ember (meta/muse-ember) API Pricing, Context Window, OpenRouter Setup](https://llmapiguide.com/en/posts/meta-muse-ember-api.md): Meta Muse Ember (meta/muse-ember) costs $0.10/1M input and $0.50/1M output tokens as of 2026-11-11, with a 1M context window and 512K max output. - [Claude Fable 5.2 API Pricing, Fast Mode and Migration Errors](https://llmapiguide.com/en/posts/claude-fable-5-2-api-pricing.md): As of 2026-11-10, Claude Fable 5.2 (claude-fable-5-2) costs $8 per 1M input and $40 per 1M output tokens; fast mode via speed: fast costs $16 / $80. - [LLM API Pricing Comparison (November 2026)](https://llmapiguide.com/en/posts/llm-api-pricing-comparison-nov-2026.md): Official prices per 1M tokens as of 2026-11-10: gpt-6.1-sol $2/$0.10/$10, Claude Fable 5.1 $10/$0.25/$50, Gemini 4 Argon $2/$0.10/$10, grok-4.7 $2/$0.50/$6. - [Microsoft Foundry fal Video APIs (Kling v3, LTX-2.5, MiniMax): Pricing & Setup](https://llmapiguide.com/en/posts/microsoft-foundry-fal-video-api-pricing.md): Official per-second pricing, 5s and 10s clip costs as of 2026-11-10, US-hosted Kling 3 compliance rules, and Python setup for Microsoft Foundry's fal video APIs. - [OpenRouter openrouter/auto-code & openrouter/auto: Setup & Prompt Cache Costs](https://llmapiguide.com/en/posts/openrouter-auto-code.md): Configure OpenRouter's openrouter/auto-code and openrouter/auto endpoints, restrict candidate models, and prevent mid-session switches from breaking prompt caches. - [OpenAI GPT-6 Cyber API: Pricing vs Claude and Gemini, Benchmarks, Access Rules](https://llmapiguide.com/en/posts/gpt-6-cyber-api.md): Complete developer guide to OpenAI GPT-6 Cyber API (gpt-6-cyber), comparing $20/$100 token pricing as of 2026-11-07 against Claude Mythos 5.1 and Gemini 4 Argon, benchmarks. - [OpenAI GPT-Live Calling API: $0.05 Price as of 2026-11-07, Token Billing, Setup](https://llmapiguide.com/en/posts/gpt-live-calling-api.md): Calculate the real cost of a 5-minute and 10-minute call on OpenAI's GPT-Live Calling API ($0.05/min voice layer as of 2026-11-07 + backend delegation tokens + SIP trunk). - [Google Gemini Omni 1.2 & 1.1 Flash API: Pricing, Capabilities, OpenRouter Setup](https://llmapiguide.com/en/posts/gemini-omni-1-2-flash-api.md): Complete developer guide to the Google Gemini Omni 1.2 Flash and 1.1 Flash API, covering per-second video token pricing as of 2026-11-06 and December redirect dates. - [Tencent Hy4 (tencent/hy4) API: Pricing, Context Window, Benchmarks & Calls](https://llmapiguide.com/en/posts/tencent-hy4-api.md): Developer guide to the Tencent Hy4 (tencent/hy4) API: $0.834/$2.501 token pricing as of 2026-11-06, 1M context window limits, Python and TypeScript setup, and timeout fixes. - [Gemini 2.5 Flash & Pro Deprecated: Dec 1 Redirect, Pricing & Breaking Changes](https://llmapiguide.com/en/posts/gemini-2-5-flash-deprecated.md): Google deprecated gemini-2.5-flash and gemini-2.5-pro on Nov 2, 2026, and will auto-route them to gemini-3.5-flash-lite and gemini-3.8-flash on Dec 1. - [GPT-6 Astra reasoning_effort API Cost per Task: Low to Max Benchmarked](https://llmapiguide.com/en/posts/gpt-6-astra-reasoning-effort-cost.md): Compare GPT-6 Astra API cost per task and BenchCAD accuracy across all five reasoning_effort tiers (low, medium, high, xhigh, max), with routing and token cap strategies. - [GPT Image 2.6 (ChatGPT Images 2.6) API: GIF, Reference Images, Latency, Pricing](https://llmapiguide.com/en/posts/gpt-image-2-6-api.md): Complete developer guide to the OpenAI GPT Image 2.6 API, covering the 50% latency reduction, native animated GIF generation, reference_images payload syntax, Python SDK examples. - [Kling 4.0 Flash API, MCP Server, CLI: Pricing per Second, Speed, Setup Guide](https://llmapiguide.com/en/posts/kling-4-0-flash-api.md): Complete developer guide to the Kling 4.0 Flash API, official MCP Server, and CLI released on November 4, 2026, including per-second pricing vs Standard Kling 4.0, Seedance 2.5. - [Veo 3.1 Lite vs Standard API Pricing: Cost per Second After Gemini Shutdown](https://llmapiguide.com/en/posts/veo-3-1-api-pricing.md): Compare official Google Cloud Vertex AI pricing as of 2026-11-05 for Veo 3.1 Standard ($0.40/s) and Veo 3.1 Lite ($0.08/s) against third-party relays ($0.175 per 8s clip). - [Meituan LongCat-2.5 API: Pricing, 1M Context, Benchmarks, and Temperature Rules](https://llmapiguide.com/en/posts/longcat-2-5-api-pricing.md): Complete guide to Meituan's LongCat-2.5 API pricing ($0.30 input, $1.20 output, $0.006 cache read as of 2026-11-03), 1.6T MoE specs, Terminal Bench v2.1 vs v4.0 scores. - [NVIDIA Nemotron 3.5 Transcribe API: Pricing, 2.8% WER vs Voxtral, Prompt Modes](https://llmapiguide.com/en/posts/nemotron-3-5-transcribe-api-pricing.md): NVIDIA Nemotron 3.5 Transcribe (30B-A4B) is $2 per 1,000 audio minutes on DeepInfra as of 2026-11-03, ties Mistral Voxtral Small at 2.8% WER, and handles prompt diarization. - [Wan 3.0, Hyperflow H3, Seedance 2.5 Video Editing API Pricing & Benchmarks](https://llmapiguide.com/en/posts/wan-3-0-video-editing-api-pricing.md): Compare Wan 3.0, Hyperflow H3, and Dreamina Seedance 2.5 video editing APIs across pricing per minute, Arena Elo benchmarks, and practical use cases. - [GPT Image 2 (ChatGPT Images 2.0) API: Pricing, Parameters & What It Replaced](https://llmapiguide.com/en/posts/gpt-image-2-api-pricing.md): Complete guide to OpenAI GPT Image 2 (gpt-image-2 and gpt-image-2.5) API pricing, token billing rules, Python SDK code examples for generation and edits. - [OpenAI API Pricing (2026): GPT-6 Astra, Sol, Luna](https://llmapiguide.com/en/posts/openai-api-pricing-gpt-6.md): Complete 2026 OpenAI API pricing as of 2026-10-29 for GPT-6 Astra, GPT-6.1 Sol, Terra, and Luna, including the 272K context surcharge, cache invalidation triggers. - [What Does Pareto 26.10 Cost? API Input, Cache, and Output Rates](https://llmapiguide.com/en/posts/pareto-26-10-pricing.md): As of 2026-10-19, Pareto 26.10 costs $0.80 per 1M uncached input tokens, $0.03 for cache reads, and $3.20 for output; use pareto-26.10 or pareto. - [Qwen API Pricing (2026): Token Rates, Image Costs, and Tier Rules](https://llmapiguide.com/en/posts/qwen-2-1-turbo-pricing.md): Official Qwen API pricing on Alibaba Cloud Model Studio as of 2026-10-29: Qwen 3.8 Max, Plus, Flash, open-weight models, and Qwen Image per-image rates. - [Gemini API Pricing: Current Model Prices and the 2027-01-01 Change](https://llmapiguide.com/en/posts/gemini-api-pricing.md): Current Gemini API pricing per 1M tokens for Gemini 4 Argon and Gemini 3.8/3.7 Flash, what doubles on January 1, 2027, and why credits and quotas deduct differently. ## Models New models, how they compare, and which one fits a task. https://llmapiguide.com/en/topics/models - [Deploy New API Locally, Connect Upstream LLMs, and Fix v1.0 Model Routing Bugs](https://llmapiguide.com/en/posts/how-to-deploy-new-api-docker.md): Deploy New API with a production Docker Compose stack (PostgreSQL 15 and Redis), connect upstream LLM channels, and fix v1.0 RC Passkey lockouts, Qwen3.8 routing 400s. - [Can You Call the Gemini 4 Carbon API Yet? Access, Price and OpenRouter Setup](https://llmapiguide.com/en/posts/gemini-4-carbon-api.md): Gemini 4 Carbon is listed on OpenRouter as google/gemini-4-carbon at $2 input / $10 output per 1M tokens, but Google has only opened it to cyber defenders so far. - [MiniMax-H3-Image: Is It Open, Is It H3 Video, and How Do You Run or Call It?](https://llmapiguide.com/en/posts/minimax-h3-image-api-comfyui.md): MiniMax-H3-Image is a 33.1B open-weights image model. Call it at /v1/images/generations or /v1/images/edits on api.minimax.io, or run it in ComfyUI 0.45.0+ or vLLM-Omni. - [New LLM Models and API Changes: Week of Nov 2–8, 2026](https://llmapiguide.com/en/posts/new-llm-models-api-changes-2026-11-02.md): Nov 2–8, 2026: GPT-Image-2.6 Sunburst and Flare, GPT-6-Cyber, GPT-Live outbound SIP calls, Claude Code 2.1.319, Codex CLI 0.167.0 and Gemini CLI 0.67.0. - [New LLM Models and API Changes: Week of Oct 26 – Nov 1, 2026](https://llmapiguide.com/en/posts/new-llm-models-api-changes-2026-10-26.md): Call gpt-6.1-terra on the Responses or Chat Completions API. Terra Pro and Particle-1 are OpenRouter ids, and the Claude analytics beta header is analytics-usage-cost-2026-08-24. - [Claude Opus 5.5 Feels Dumber? What Changed and What You Can Check](https://llmapiguide.com/en/posts/claude-opus-5-5-getting-worse.md): Why Claude Opus 5.5 feels dumber or drains Pro and Max limits faster, how xhigh reasoning and 4.9B cache-read tokens affect sessions, and what to check. - [Qwen3.8 Flash-Next and Qwen3.8-27B RTX 3090 Benchmarks: 1-4 GPUs, 381 tok/s](https://llmapiguide.com/en/posts/qwen3-8-flash-next-benchmark.md): Real-world RTX 3090 benchmarks for Qwen3.8 Flash-Next (1 to 4 GPUs at 32K and 130K context) and Qwen3.8-27B speculative decoding setups reaching 381 tok/s. - [New LLM Models and API Changes: Week of Oct 12–18, 2026](https://llmapiguide.com/en/posts/new-llm-models-api-changes-2026-10-12.md): DeepSeek released V4.1 Flash 1017, Codex CLI added /config, and Gemini's Argon migration requires removing explicit caching and reviewing output-token limits. - [Xing4.0 29B A4B API: How to Access It](https://llmapiguide.com/en/posts/xing4-0-29b-a4b-api-access.md): Call xingchen-agi/xing4.0-29b-a4b:free on OpenRouter via OpenAI or Anthropic Messages endpoints, or self-host the 29B MoE API with vLLM and SGLang plugins. - [How to Use NVIDIA Nemotron Labs Dory 1.0 API](https://llmapiguide.com/en/posts/nvidia-nemotron-labs-dory-1-0-api.md): Run Dory 1.0 locally behind an OpenAI-compatible API with vLLM, SGLang, or llama.cpp; hosted inference is not listed yet, so start from NVIDIA's model card. - [How to Use the Moondream 3 Preview API](https://llmapiguide.com/en/posts/moondream-3-preview-api.md): Call moondream3-preview at Moondream's /v1 API with an X-Moondream-Auth key or OpenAI-compatible bearer token; pricing starts at $0.30 per 1M input tokens as of 2026-10-17. - [Claude vs GPT for Coding: Same List Price, Different Bill](https://llmapiguide.com/en/posts/claude-sonnet-5-5-vs-gpt-6-1-sol.md): Why Claude Sonnet 5.5 and GPT-6.1 Sol produce very different coding bills at the same list price: cache writes, prefix invalidation, 272K context cliffs, reasoning tokens. ## Apps Set up Cherry Studio, LobeChat, Dify, n8n, Open WebUI and other clients with an API key and a base URL. https://llmapiguide.com/en/topics/apps - [Mika Android AI Agent: Custom API Base URL, Key and Model Setup](https://llmapiguide.com/en/posts/mika-android-agent-custom-api-setup.md): In Mika, open Settings › Model, choose Custom (自定义), pick a protocol (OpenAI-compatible, Anthropic, Gemini or OpenAI Responses), then enter the endpoint, key and model. - [How to Set Up Claude Organization Webhooks with the Admin API](https://llmapiguide.com/en/posts/claude-organization-webhooks-api-setup.md): Request access, then register an HTTPS endpoint through the Admin API with anthropic-beta: webhooks-2026-10-07 to receive user-profile enforcement events. - [How Do I Set Up Claude User Profiles for API Requests?](https://llmapiguide.com/en/posts/claude-user-profiles-api-setup.md): Create a customer with POST /v1/user_profiles, save its returned ID, and send that ID in the anthropic-user-profile-id header on subsequent Claude API requests. - [OpenAI Python SDK base_url: Change the API Address and Key](https://llmapiguide.com/en/posts/openai-python-sdk-base-url.md): Change base_url and api_key in the OpenAI Python SDK via code or environment variables, and fix /v1 404s, 2.34.0 Missing credentials, and Cloudflare 403 blocks. - [How Much Does OpenAI Prompt-to-Voice Cost, and How Do I Use It?](https://llmapiguide.com/en/posts/openai-prompt-to-voice-api.md): OpenAI Prompt-to-Voice is free when creating a voice via POST /v1/audio/voices, while audio playback is billed at standard GPT-Live session rates. ## Gateways How API gateways and relays work, how to choose one, how to spot look-alike sites, and what to know about privacy and risk. https://llmapiguide.com/en/topics/gateways - [How to Check That an LLM API Relay Really Serves the Model You Pay For](https://llmapiguide.com/en/posts/how-to-check-that-an-llm-api-relay.md): Learn how to verify whether an LLM API relay is serving the real model you paid for or silently swapping to cheaper models, injecting prompts, and pooling degraded accounts. - [Claude API Reseller: What to Check Before You Buy](https://llmapiguide.com/en/posts/ai-api-reseller-what-to-check.md): Before buying Claude API access from a reseller, check whether they route through pooled consumer subscriptions, how they bill prompt caching. - [How Do You Set Up Claude Models on Google Cloud (Anthropic Managed)?](https://llmapiguide.com/en/posts/claude-models-on-google-cloud-anthropic-managed.md): It's the Claude API run by Anthropic, billed through Google Cloud Marketplace and called with Google credentials and the roles/claude.user role, not API keys. - [How Much Does OpenRouter Cost, and Is It Expensive?](https://llmapiguide.com/en/posts/openrouter-pricing-vs-direct-api.md): OpenRouter has no monthly subscription and adds zero markup to model token prices as of 2026-10-29.