Skip to contentNewKimi K3.1 Pro is now availableTry it now
Docs / Integrations

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.

SettingValue
OpenAI-compatible base URLhttps://api.inference.net/v1
US-only base URLhttps://us.api.inference.net/v1
Anthropic Messages base URLhttps://api.inference.net (POST /v1/messages)
Authentication headerAuthorization: Bearer <INFERENCE_API_KEY> or x-api-key: <INFERENCE_API_KEY>
Live model listGET 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.

IntegrationCategoryProtocolBase URLGuide
CursorIDEOpenAI-compatiblehttps://api.inference.net/v1Cursor setup
Claude CodeCoding agentAnthropic Messageshttps://api.inference.netClaude Code setup
Cline and Roo CodeVS Code extensionOpenAI-compatiblehttps://api.inference.net/v1Cline and Roo Code setup
Open WebUIChat UIOpenAI-compatiblehttps://api.inference.net/v1Open WebUI setup
LiteLLMSDK and proxyOpenAI-compatiblehttps://api.inference.net/v1LiteLLM setup
Vercel AI SDKTypeScript SDKOpenAI-compatiblehttps://api.inference.net/v1Vercel AI SDK setup
LangChainPython and TS SDKOpenAI-compatiblehttps://api.inference.net/v1LangChain setup

Coding agents and IDEs

Chat UIs, gateways, and SDKs

Verified callable model IDs

Copy the exact id returned by GET https://api.inference.net/v1/models. Some models include an owner prefix.

Model IDContext windowMax outputTool callingBest for
deepseek-v4.1-flash-10171,040,000393,216YesFast coding agents, chat, and vision
glm-5.31,048,576943,718YesReasoning, complex code, and long outputs
glm-5.3-flash1,048,576262,144YesLow-cost multimodal chat and automation
moonshotai/kimi-k3.1-pro1,048,5761,048,576YesHigh-capability agentic workflows
inference-net/schematron-v2-turbo128,0008,192NoFast 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 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. 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 accept requests at https://us.api.inference.net/v1.

Ready to start? Create a free account and generate your first API key in API keys.