LLM API Blog

Blog

Insights on AI coding, Claude Code optimization, and cost-effective development

Base URL checker & setup generator → · Client integration guides →

Tutorial

ANTHROPIC_BASE_URL: Claude Code Setup and /v1 Fixes

Set ANTHROPIC_BASE_URL correctly for Claude Code on Windows, macOS and Linux. Compare base URLs with request endpoints and diagnose 404, authentication and quota errors.

2026-06-28 4
LLM API Editorial Team
Comparison

Claude Sonnet 4.6 vs Opus 4.8 in Claude Code: Which to Run

Claude Sonnet 4.6 vs Opus 4.8 for Claude Code: Sonnet is cheaper and faster for daily coding; Opus 4.8 wins hard refactors and architecture. Task-by-task picks, token cost, and the in-session /model switch.

2026-06-09 7
Yazhou Hu
Comparison

Claude Code Pricing in 2026: Pro vs Max vs Pay-As-You-Go API

A plain-English breakdown of what Claude Code actually costs in 2026 — the official Pro and Max subscription tiers, how token-metered API billing compares, and when a relay subscription at a fraction of the price makes sense.

2026-06-05 8
Yazhou Hu
Tutorial

Using Cline and Roo Code with a Claude-Compatible API

Step-by-step setup for pointing Cline and Roo Code — the VS Code AI coding extensions — at an Anthropic-compatible relay. Provider settings, base URL, model IDs, and the gotchas with OpenAI-compatible vs native Anthropic mode.

2026-06-04 7
Yazhou Hu
Engineering Notes

A 15-Second CPU Stall From One Unclosed XML Tag

Postmortem on a relay process that pegged a single core for fifteen seconds straight. Catastrophic regex backtracking on user-controlled input. Three-character fix, three-layer defense (bounded quantifier + per-request watchdog + nginx next_upstream).

2026-05-06 9
Yazhou Hu