Which endpoint
Two endpoints, depending on what the tool speaks:
Most tools want the first. Claude Code wants the second. Codex uses the Responses API on the first.
Pick your tool
Claude Code
CLI and VS Code extension
Codex
OpenAI’s terminal agent, on the Responses API
Cursor
Model override in settings
opencode
Custom provider block
GitHub Copilot
Custom endpoint in VS Code
Cline
VS Code agent
Kilo Code
VS Code agent
Zed
Editor with built-in agent
aider
Terminal pair programmer
goose
Block’s terminal agent
Hermes Agent
Nous Research’s terminal agent
Verify before you configure
If a tool misbehaves, check the API directly first. This is the same request every tool above makes: List every model your key can reach:Choosing a model
Full list at active models, or call
/models above.
Model IDs are case-insensitive. Tools that reject
/ in model names accept the slash-free form, so z-ai-glm-5.2 resolves to z-ai/glm-5.2.Context windows
The/models response lists each model’s context_length and max_output_tokens. Some tools don’t read them and ask you to set Context Window and Max Output Tokens by hand (Cline, Kilo Code, Zed). Take the numbers from the /models response or the models page.