Integrations
Connect Cursor, Claude Code, Cline, Open WebUI, LiteLLM, Vercel AI SDK, and LangChain to Inference.net with one API key.
Last updated
Connect any OpenAI-compatible or Anthropic-compatible IDE, coding agent, chat UI, proxy, or SDK to Inference.net using one API key. You get direct access to fast open-weight models such as DeepSeek V4.1 Flash, GLM 5.3, Kimi K3.1 Pro, and Schematron V2 Turbo over standard HTTP endpoints.
Shared connection settings
Use these verified endpoints across all integrations. Create an account at /register and generate a project key in API keys.
| Setting | Value |
|---|---|
| OpenAI-compatible base URL | https://api.inference.net/v1 |
| US-only base URL | https://us.api.inference.net/v1 |
| Anthropic Messages base URL | https://api.inference.net (POST /v1/messages) |
| Authentication header | Authorization: Bearer <INFERENCE_API_KEY> or x-api-key: <INFERENCE_API_KEY> |
| Live model list | GET https://api.inference.net/v1/models |
export INFERENCE_API_KEY="inf_sk_..."
curl -s https://api.inference.net/v1/models | jq '.data[].id'Integration directory
Choose your tool below for copy-paste configuration, verified model IDs, and troubleshooting.
| Integration | Category | Protocol | Base URL | Guide |
|---|---|---|---|---|
| Cursor | IDE | OpenAI-compatible | https://api.inference.net/v1 | Cursor setup |
| Claude Code | Coding agent | Anthropic Messages | https://api.inference.net | Claude Code setup |
| Cline and Roo Code | VS Code extension | OpenAI-compatible | https://api.inference.net/v1 | Cline and Roo Code setup |
| Open WebUI | Chat UI | OpenAI-compatible | https://api.inference.net/v1 | Open WebUI setup |
| LiteLLM | SDK and proxy | OpenAI-compatible | https://api.inference.net/v1 | LiteLLM setup |
| Vercel AI SDK | TypeScript SDK | OpenAI-compatible | https://api.inference.net/v1 | Vercel AI SDK setup |
| LangChain | Python and TS SDK | OpenAI-compatible | https://api.inference.net/v1 | LangChain setup |
Coding agents and IDEs
Configure Cursor's custom OpenAI API key and base URL override for chat models.
Connect Claude Code to the native Anthropic /v1/messages endpoint via CLI or environment variables.
Set up Cline or Roo Code in VS Code with tool-calling models and 1M context limits.
Shared CLI setup, Inference Pass plan keys, and guides for Codex, OpenCode, Pi, and Grok.
Chat UIs, gateways, and SDKs
Connect Open WebUI via Docker environment variables or the Admin Panel.
Call hosted models from the LiteLLM Python SDK or route teams through LiteLLM Proxy.
Use @ai-sdk/openai-compatible for generateText, streamText, tools, and structured outputs.
Point Python and TypeScript ChatOpenAI clients at Inference.net with streaming and tools.
Verified callable model IDs
Copy the exact id returned by GET https://api.inference.net/v1/models. Some models include an owner prefix.
| Model ID | Context window | Max output | Tool calling | Best for |
|---|---|---|---|---|
deepseek-v4.1-flash-1017 | 1,040,000 | 393,216 | Yes | Fast coding agents, chat, and vision |
glm-5.3 | 1,048,576 | 943,718 | Yes | Reasoning, complex code, and long outputs |
glm-5.3-flash | 1,048,576 | 262,144 | Yes | Low-cost multimodal chat and automation |
moonshotai/kimi-k3.1-pro | 1,048,576 | 1,048,576 | Yes | High-capability agentic workflows |
inference-net/schematron-v2-turbo | 128,000 | 8,192 | No | Fast HTML-to-JSON structured extraction |
Additional coding agent guides
Inference.net also provides dedicated setup guides for Codex, OpenCode, Grok, Pi, Hermes, OpenClaw, and Fx, plus the fast CLI for one-command setup.
Troubleshooting
401 Unauthorized: Check thatINFERENCE_API_KEYis exported in the shell or saved in your client settings, and confirm you did not leave a placeholder key.404or HTML response: Verify the base URL ishttps://api.inference.net/v1for OpenAI-compatible clients, orhttps://api.inference.netfor Anthropic Messages clients. Do not usehttps://inference.net/v1.- Model not found: Verify the exact ID in
GET https://api.inference.net/v1/modelsor the model catalog. Keep owner prefixes such asmoonshotai/andinference-net/. - Region errors on US-only endpoints: Only models marked with the
USbadge in the model catalog accept requests athttps://us.api.inference.net/v1.
Ready to start? Create a free account and generate your first API key in API keys.