Use Utopixel models in LangChain with ChatOpenAI. Set the base URL and every chain, agent and tool works as before.
You need a Utopixel API key. Create one, add credit, and keep it handy.
from langchain_openai import ChatOpenAIllm = ChatOpenAI(model="google/gemini-4-carbon",base_url="https://utopixel.online/api/v1",api_key="sk-vb-...",)print(llm.invoke("Hello, how are you?").content)
Install langchain-openai.
Create ChatOpenAI with the Utopixel base URL, your key and a model id.
Use it anywhere LangChain takes a chat model.
In LangChain JS, pass the URL as configuration: { baseURL: "https://utopixel.online/api/v1" } to ChatOpenAI and set OPENAI_API_KEY to your Utopixel key.
ChatOpenAI follows the official OpenAI format, so it drops provider specific reasoning fields from responses.
Every setting above comes from LangChain's official docs
Paste any of these ids into LangChain. Prices are per 1M tokens, pay as you go.
| Model id | Input | Output | Context |
|---|---|---|---|
Gemini 4 Carbongoogle/gemini-4-carbon | $4.00 | $20.00 | 1.05M |
Gemini 4 Argongoogle/gemini-4-argon | $4.00 | $20.00 | 1.05M |
GPT-6.1 Solopenai/gpt-6.1-sol | $2.00 | $10.00 | 1.05M |
Grok 4.7x-ai/grok-4.7 | $2.00 | $6.00 | 500K |
Stuck on setup? Email [email protected] with the error you see and we will help you get LangChain running.
One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.