IntegrationsOpenAI SDK

OpenAI SDK Compatible

kineticRouter is compatible with the documented subset with the OpenAI SDK. Migrating from a direct OpenAI connection requires changing just two parameters: base_url and api_key.

Migration Steps

Just Change Two Lines of Code

from openai import OpenAI # Before: direct OpenAI connection # client = OpenAI(api_key="sk-openai-xxx") # Now: through kineticRouter client = OpenAI( base_url="https://api.kineticrouter.com/v1", # Added api_key="<your KINETICROUTER_API_KEY>" # Replaced ) # Everything else stays the same! response = client.chat.completions.create( model="openai/gpt-4o", # Add provider prefix messages=[{"role": "user", "content": "Hello!"}] )

Model Naming

kineticRouter uses the provider/model-name format for model identifiers:

OpenAI Original NamekineticRouter Model ID
gpt-4oopenai/gpt-4o
gpt-4o-miniopenai/gpt-4o-mini
gpt-5.2openai/gpt-5.4-mini

Through kineticRouter, you can also access models from other providers. For recommended models, see the kineticRouter Model Marketplace .

Compatibility

kineticRouter supports the following OpenAI API features:

FeatureStatus
Chat Completions✅ Compatible with the documented subset
Streaming✅ Compatible with the documented subset
Function Calling✅ Compatible with the documented subset
JSON Mode✅ Compatible with the documented subset
Vision (image input)✅ Compatible with the documented subset
Models List✅ Compatible with the documented subset
Images Generation✅ Compatible with the documented subset

Framework Integration

LangChain

from langchain_openai import ChatOpenAI llm = ChatOpenAI( base_url="https://api.kineticrouter.com/v1", api_key="<your KINETICROUTER_API_KEY>", model="openai/gpt-4o" )

LlamaIndex

from llama_index.llms.openai import OpenAI llm = OpenAI( api_base="https://api.kineticrouter.com/v1", api_key="<your KINETICROUTER_API_KEY>", model="openai/gpt-4o" )

Vercel AI SDK

import { createOpenAI } from '@ai-sdk/openai' const kineticrouter = createOpenAI({ baseURL: 'https://api.kineticrouter.com/v1', apiKey: '<your KINETICROUTER_API_KEY>' }) const model = kineticrouter('openai/gpt-4o')

Any framework or tool that supports the OpenAI SDK can integrate with kineticRouter by changing the base_url.