# Integrations (https://inference.net/docs/integrations)

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](/models/deepseek-v4-1-flash-1017/), [GLM 5.3](/models/glm-5-3/), [Kimi K3.1 Pro](/models/kimi-k3-1-pro/), and [Schematron V2 Turbo](/models/schematron-v2-turbo/) over standard HTTP endpoints.

## Shared connection settings

Use these verified endpoints across all integrations. Create an account at [/register](/register/) and generate a project key in [API keys](/dashboard/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` |

```bash
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](/docs/integrations/cursor/) |
| Claude Code | Coding agent | Anthropic Messages | `https://api.inference.net` | [Claude Code setup](/docs/integrations/claude-code/) |
| Cline and Roo Code | VS Code extension | OpenAI-compatible | `https://api.inference.net/v1` | [Cline and Roo Code setup](/docs/integrations/cline/) |
| Open WebUI | Chat UI | OpenAI-compatible | `https://api.inference.net/v1` | [Open WebUI setup](/docs/integrations/open-webui/) |
| LiteLLM | SDK and proxy | OpenAI-compatible | `https://api.inference.net/v1` | [LiteLLM setup](/docs/integrations/litellm/) |
| Vercel AI SDK | TypeScript SDK | OpenAI-compatible | `https://api.inference.net/v1` | [Vercel AI SDK setup](/docs/integrations/vercel-ai-sdk/) |
| LangChain | Python and TS SDK | OpenAI-compatible | `https://api.inference.net/v1` | [LangChain setup](/docs/integrations/langchain/) |

### Coding agents and IDEs

<CardGroup>
  <Card title="Cursor" href="/docs/integrations/cursor/">
    Configure Cursor's custom OpenAI API key and base URL override for chat models.
  </Card>
  <Card title="Claude Code" href="/docs/integrations/claude-code/">
    Connect Claude Code to the native Anthropic /v1/messages endpoint via CLI or environment variables.
  </Card>
  <Card title="Cline and Roo Code" href="/docs/integrations/cline/">
    Set up Cline or Roo Code in VS Code with tool-calling models and 1M context limits.
  </Card>
  <Card title="Coding agents overview" href="/docs/integrations/overview/">
    Shared CLI setup, Inference Pass plan keys, and guides for Codex, OpenCode, Pi, and Grok.
  </Card>
</CardGroup>

### Chat UIs, gateways, and SDKs

<CardGroup>
  <Card title="Open WebUI" href="/docs/integrations/open-webui/">
    Connect Open WebUI via Docker environment variables or the Admin Panel.
  </Card>
  <Card title="LiteLLM" href="/docs/integrations/litellm/">
    Call hosted models from the LiteLLM Python SDK or route teams through LiteLLM Proxy.
  </Card>
  <Card title="Vercel AI SDK" href="/docs/integrations/vercel-ai-sdk/">
    Use @ai-sdk/openai-compatible for generateText, streamText, tools, and structured outputs.
  </Card>
  <Card title="LangChain" href="/docs/integrations/langchain/">
    Point Python and TypeScript ChatOpenAI clients at Inference.net with streaming and tools.
  </Card>
</CardGroup>

## 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`](/models/deepseek-v4-1-flash-1017/) | 1,040,000 | 393,216 | Yes | Fast coding agents, chat, and vision |
| [`glm-5.3`](/models/glm-5-3/) | 1,048,576 | 943,718 | Yes | Reasoning, complex code, and long outputs |
| [`glm-5.3-flash`](/models/glm-5-3-flash/) | 1,048,576 | 262,144 | Yes | Low-cost multimodal chat and automation |
| [`moonshotai/kimi-k3.1-pro`](/models/kimi-k3-1-pro/) | 1,048,576 | 1,048,576 | Yes | High-capability agentic workflows |
| [`inference-net/schematron-v2-turbo`](/models/schematron-v2-turbo/) | 128,000 | 8,192 | No | Fast HTML-to-JSON structured extraction |

<Callout title="Privileged models" tone="info">

Privileged cybersecurity models such as [`deepseek-v4.1-flash-1017-cyber`](/models/deepseek-v4-1-flash-1017-cyber/) require team approval before calling. See [Privileged model access](/docs/api/privileged-model-access/) for approval steps.

</Callout>

## Additional coding agent guides

Inference.net also provides dedicated setup guides for [Codex](/docs/integrations/codex/), [OpenCode](/docs/integrations/opencode/), [Grok](/docs/integrations/grok/), [Pi](/docs/integrations/pi/), [Hermes](/docs/integrations/hermes/), [OpenClaw](/docs/integrations/openclaw/), and [Fx](/docs/integrations/fx/), plus the [`fast` CLI](/docs/cli/) for one-command setup.

## Troubleshooting

- **`401 Unauthorized`:** Check that `INFERENCE_API_KEY` is exported in the shell or saved in your client settings, and confirm you did not leave a placeholder key.
- **`404` or HTML response:** Verify the base URL is `https://api.inference.net/v1` for OpenAI-compatible clients, or `https://api.inference.net` for Anthropic Messages clients. Do not use `https://inference.net/v1`.
- **Model not found:** Verify the exact ID in `GET https://api.inference.net/v1/models` or the [model catalog](/models/). Keep owner prefixes such as `moonshotai/` and `inference-net/`.
- **Region errors on US-only endpoints:** Only models marked with the `US` badge in the [model catalog](/models/) accept requests at `https://us.api.inference.net/v1`.

Ready to start? [Create a free account](/register/) and generate your first API key in [API keys](/dashboard/api-keys/).