AI Gateway

One endpoint, 200+ models

An OpenAI-compatible gateway that routes across OpenRouter, Replicate, Hugging Face, and Vercel. Change the baseURL, keep your code, swap models by ID.

gateway.ts
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.

Hugging Face

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 other image models.

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), Hugging Face, 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.

Get started

Point your SDK at the gateway

Change one line — the base URL — and route across every provider from a single key.

$npm install openai