Skip to main content

Which Endpoint Should I Use?

Use the base URL https://api.linkmodel.ai/v1 when the agent appends endpoint paths automatically.

Authentication Fails

Check that the agent can read your environment variable:
For Codex desktop apps or editor extensions, put the key in ~/.codex/.env and restart the app:
For Claude Code, use ANTHROPIC_AUTH_TOKEN with the LinkModel key:

Model Not Found

Check the current model list:
Then use the exact model ID in the agent configuration.

Tool Calling Fails

Coding agents often send tool/function-calling fields. If the model rejects the request:
  • Use the endpoint matching the agent’s native protocol.
  • Try a coding-oriented model such as gpt-5.3-codex, gpt-5.6-sol, claude-opus-4-7, or deepseek-v4-pro.
  • Test with a smaller prompt before running a large coding task.

Codex Uses The Wrong Provider

Check ~/.codex/config.toml:
Then open /status in Codex and confirm the active provider.