Inference APIs
Developers

Integrations

Inference APIs speaks the OpenAI wire format, so most tools connect by changing a base URL. These are the exact settings for each, tested against the live API.

SDK
OpenAI Python SDK

Point the official openai Python package at Inference APIs with base_url. Chat, streaming, tool calling, speech and transcription all work unchanged.

SDK
OpenAI Node.js SDK

Set baseURL on the official openai npm package. Works in Node, Bun, Deno and edge runtimes.

Gateway / SDK
LiteLLM

Use the openai/ prefix with api_base to route any LiteLLM call — SDK or proxy — to Inference APIs, including as a fallback provider.

Framework
LangChain

ChatOpenAI accepts base_url, so chains, agents and LangGraph graphs run on Inference APIs models without any provider-specific package.

Framework
LlamaIndex

Use the OpenAILike LLM class, which exists for exactly this case: an OpenAI-compatible endpoint serving non-OpenAI model ids.

Framework
Vercel AI SDK

Use @ai-sdk/openai-compatible to create a provider for Inference APIs; then streamText, generateText and tool calling work as with any provider.

Coding assistant
Continue (VS Code / JetBrains)

Add Inference APIs models to Continue with provider: openai and an apiBase. Works for chat, edit and autocomplete roles.

Coding agent
Cline (VS Code)

Choose the "OpenAI Compatible" provider in Cline settings and paste the base URL, key and a model id.

Self-hosted chat UI
Open WebUI

One connection gives Open WebUI chat models, speech-to-text and text-to-speech from Inference APIs — useful when the local Whisper or TTS engine is too slow on a CPU host.

Automation
n8n

Create an OpenAI credential in n8n with a custom Base URL; the OpenAI Chat Model, Transcribe and Text-to-Speech nodes then run on Inference APIs.

Coding assistant
Aider

Point aider at Inference APIs with two flags or two environment variables.

Missing your tool? Tell us and we will add a tested guide. The generic recipe is in switching OpenAI-compatible providers.