
The Easiest Way to Set Up a Third-Party API in Codex and Claude Code: A GUI App
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.

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.
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.
503 Service Unavailable Upstream Service ErrorFix "unexpected status 503 Service Unavailable: The upstream service returned an error. Please try again later." when using OpenAI models and sub2api.
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.
response.completed) in Codex CLI and sub2apiFix "stream disconnected before completion: stream closed before response.completed" in Codex CLI, New API, and sub2api by disabling Nginx proxy buffering.
Connect Claude Code, Codex CLI, Gemini CLI, OpenCode, Cline and Cursor to the model API you choose.
ANTHROPIC_BASE_URL Not Working: How to Fix ItWhat 401, 429, 529 overloaded, dropped streams and context-length errors mean, and how to fix each one.
401 UNAUTHENTICATED" Mid-Session Error and Login Auth Loopsunexpected status 401 Unauthorized: Incorrect API key provided"stream disconnected before completion" Overload in Codex and sub2apiToken prices, prompt caching, and how to estimate and cut a month of API spend.
deepseek_web_search Setup, Pricing and FixesNew models, how they compare, and which one fits a task.
Set up Cherry Studio, LobeChat, Dify, n8n, Open WebUI and other clients with an API key and a base URL.
base_url: Change the API Address and KeyHow API gateways and relays work, how to choose one, how to spot look-alike sites, and what to know about privacy and risk.
stream disconnected before completion: Upstream request failed" in CodexFix the "stream disconnected before completion: Upstream request failed" error in Codex CLI, Cherry Studio, New API, and sub2api by adjusting Nginx timeouts.
ANTHROPIC_BASE_URL Not Working: How to Fix ItSetting 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.
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.
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.
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.
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.
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.
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 ) API Pricing, Context Window, OpenRouter SetupMeta 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.
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.
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.
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.
Selected Model Is at Capacity": OpenAI Load or Your Account?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/lfm-3-1.7b ) OpenRouter API: Pricing & Free LimitsCall 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).
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.
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.
Use Meta Model API's Anthropic-compatible Messages endpoint, set Claude Code's base URL and bearer-token variables.
tok/s Benchmarks & Local API SetupRun 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.
openrouter/auto-code & openrouter/auto : Setup & Prompt Cache CostsConfigure OpenRouter's openrouter/auto-code and openrouter/auto endpoints, restrict candidate models, and prevent mid-session switches from breaking prompt caches.
In Mika, open Settings › Model, choose Custom (自定义), pick a protocol (OpenAI-compatible, Anthropic, Gemini or OpenAI Responses), then enter the endpoint, key and model.
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.
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_CODE_AUTO_MODE_SERVER =0Fix Claude Code v2.1.319 Auto Mode prompts and refused tool calls behind LiteLLM, New API.
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.
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).
assume_role, Agent SDK & /scheduleConfigure 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.
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) API: Pricing, Context Window, Benchmarks & CallsDeveloper 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.
400 adaptive thinking is not supported on this modelThe 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/messagesThe 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.
400 You have reached your specified API usage limitsYour 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.
400 due to tool use concurrency issues (Claude Code)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.
400 We've updated our Consumer Terms and Privacy Policy (Claude Code)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.
400 Input is too long in Claude CodeThe 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.
400 context_management : Extra inputs are not permittedA 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.
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.
400 invalid beta flag (Claude Code on Bedrock, Vertex or a gateway)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.
400 Invalid effort level (Claude Code and Claude API)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.
400 Invalid input at messages.1.role (Claude Code)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.
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.
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.
400 All target providers failed (Claude Code Router)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.
400 messages.N: system content must contain at least one blockClaude 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.
400 This organization has been disabled (Claude Code)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.
400 data retention mode 'default' is not available for this modelClaude 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.
400 Identity verification is required to continue (Claude)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.
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.
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.
reasoning_effort API Cost per Task: Low to Max BenchmarkedCompare 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.
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.
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.
400 (LM Studio with Claude Code)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.
400 To turn thinking off on this model, send between_toolsClaude 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.
/v1/messages dispatch (sub2api relay)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.
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).
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.
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 (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.
Configure permissions.blockWritesOutsideWorkingDirectories and gateway upstream IdP groups in Claude Code v2.1.314.
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.
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.
CLAUDE_CODE_DISABLE_ULTRATHINK , Pooled Budgets & OIDCLearn 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.
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.
tok/sReal-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.
prompt_cache_retention is not supported on this model " Gateway 400 ErrorsFix 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.
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.
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.
Before buying Claude API access from a reseller, check whether they route through pooled consumer subscriptions, how they bill prompt caching.
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.
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.
Request access, then register an HTTPS endpoint through the Admin API with anthropic-beta: webhooks-2026-10-07 to receive user-profile enforcement events.
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.
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.
DeepSeek released V4.1 Flash 1017, Codex CLI added /config, and Gemini's Argon migration requires removing explicit caching and reviewing output-token limits.
OpenRouter has no monthly subscription and adds zero markup to model token prices as of 2026-10-29.
base_url: Change the API Address and KeyChange 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.
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.
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.
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.
400: How Do I Fix Each Message?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.
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.
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.
deepseek4.block_count 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.
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.
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.
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.
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.
Run Qwen3.8-27B behind an Anthropic-compatible endpoint, then set ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL before starting Claude Code.
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.
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.