ai gateway
one endpoint, 200+ models
an openai-compatible gateway that routes across openrouter, replicate, huggingface, and vercel. change the baseurl, keep your code, swap models by id.
import OpenAI from "openai" const client = new OpenAI({ baseURL: "https://hypery.ai/v1", apiKey: process.env.GATEWAY_API_KEY,}) const res = await client.chat.completions.create({ model: "anthropic/claude-3.5-sonnet", messages: [{ role: "user", content: "explain quantum computing" }], stream: true,}) providers
every provider behind one url
route to the model you want without wiring a client per provider. the gateway handles keys, routing, and fallbacks.
openrouter
200+ language models and the default routing target.
replicate
image, video, audio, and 3d models via /v1/predictions.
huggingface
open models served through the same /v1 surface.
vercel ai gateway
additional catalog routed through hypery's endpoint.
capabilities
chat, images, and predictions
one api key, one base url, and the full set of inference primitives.
chat completions
POST /v1/chat/completions, openai-sdk compatible.
streaming (sse)
token-by-token server-sent-event streams out of the box.
function calling
tool calls passed straight through to capable models.
vision
send images inline for multimodal models.
images
POST /v1/images/generate for flux and friends.
predictions
POST /v1/predictions to run replicate models.
images
generate images the same way
the same key and base url reach image and prediction models. swap the path and the model id — the auth stays identical.
- POST /v1/images/generate for image models
- black-forest-labs/flux-schnell and other replicate models
- GET /v1/models and GET /v1/providers to discover what you can route to
curl https://hypery.ai/v1/images/generate \ -H "Authorization: Bearer $GATEWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"black-forest-labs/flux-schnell","prompt":"a red fox in snow"}' faq
questions
is it really openai-compatible?
yes. point the openai sdk at https://hypery.ai/v1, keep your existing chat.completions calls, and just change the model id to provider/model like anthropic/claude-3.5-sonnet.
which providers and models are available?
openrouter (200+ models, default routing), replicate (image/video/audio/3d), huggingface, and vercel ai gateway. see the live list on the models page.
do you support streaming, function calling, and vision?
yes — server-sent-event streaming, function calling, and vision are all supported through the same /v1/chat/completions endpoint.
how do i generate images or run replicate models?
post to /v1/images/generate for images and /v1/predictions for replicate models. /v1/models and /v1/providers list what you can route to.