Use Utopixel models in the Vercel AI SDK with the OpenAI compatible provider. generateText, streamText and tools work unchanged.
You need a Utopixel API key. Create one, add credit, and keep it handy.
import { createOpenAICompatible } from "@ai-sdk/openai-compatible";import { generateText } from "ai";const utopixel = createOpenAICompatible({name: "utopixel",apiKey: process.env.UTOPIXEL_API_KEY,baseURL: "https://utopixel.online/api/v1",includeUsage: true,});const { text } = await generateText({model: utopixel("google/gemini-4-carbon"),prompt: "Write a haiku about APIs.",});
Install @ai-sdk/openai-compatible.
Create a provider with the Utopixel base URL and your key.
Pass utopixel("model id") wherever the SDK takes a model.
includeUsage: true returns token usage on streamed responses too.
Every setting above comes from Vercel AI SDK's official docs
Paste any of these ids into Vercel AI SDK. 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 Vercel AI SDK 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.