Get started

zurelay API docs

zurelay is one API for the AI models you already use, at a fraction of each lab’s own price. Chat with Anthropic, OpenAI, xAI, Xiaomi, DeepSeek, Google, Z.ai, Moonshot AI, Alibaba, Tencent and MiniMax models, make and edit pictures with Nano Banana and GPT Image, and make videos with Seedance, all with one key and one balance.

It speaks OpenAI’s API and Anthropic’s, so the SDKs, frameworks and tools you have work as they are: change the base URL and the key, keep your code.

Base URLs

ForBase URL
OpenAI SDKs, and anything OpenAI-compatiblehttps://api.zurelay.com/v1
Anthropic SDKs and Claude Codehttps://api.zurelay.com

Send your key as Authorization: Bearer zr_live_… (or x-api-key, as Anthropic’s SDKs do). Create keys in the dashboard under API keys.

Your first request

import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.zurelay.com/v1",
api_key=os.environ["ZURELAY_API_KEY"],
)
response = client.chat.completions.create(
model="claude-sonnet-5-5",
messages=[
{
"role": "user",
"content": "Explain what an API gateway does in one paragraph."
}
],
)
print(response.choices[0].message.content)

What you can do

Endpoints

MethodPathWhat it does
POST/v1/chat/completionsChat with any text model (OpenAI format)
POST/v1/messagesChat with Claude models (Anthropic format)
POST/v1/messages/count_tokensCount a Messages request’s input tokens
POST/v1/images/generationsMake images, optionally from reference images
POST/v1/images/editsEdit images (OpenAI’s multipart form, or JSON)
POST/v1/videosStart a video
GET/v1/videos/{id}A video’s status, and its link when done
GET/v1/videos/{id}/contentDownload a finished video
GET/v1/videosYour recent videos
GET/v1/modelsEvery model, with what it reads

How it works

Every request is served by the model you name, at its published quality, through a fleet that heals itself: if one path to a model stalls or errors, the request is retried on another before anything reaches you, so a hiccup costs you a moment instead of an error. When a model is fully down, smart routing can answer with its closest alternative.

You pay as you go from a prepaid balance, at the per-token, per-image or per-second prices on the models page. Failed requests are free.

For AI assistants and agents

Building with ChatGPT, Claude, Cursor or an agent? Every page has Copy page at the top, which copies it as Markdown to paste into any AI, and the docs are published in the formats agents read:

  • llms.txt: what zurelay is, how to call it, and a link to every page.
  • llms-full.txt: all the docs in one Markdown file, with today’s models and prices.
  • Any page as Markdown: add .md to its address, as in /docs/quickstart.md.

Questions, or something missing? Ask support in your dashboard or email support@zurelay.com.