If it talks to OpenAI, it talks to Relayz.
Use the official OpenAI SDKs, LangChain, coding extensions or plain HTTP. Change the base URL and the key, and keep the rest of your code.
Three lines
to switch.
Ask the Relayz owner for an app key. Each key is limited to the models you choose and a monthly budget.
- One key per app, limited to chosen tiers and a monthly budget
- Streaming, multi-turn conversations and real token usage
- Function calling for agents, on every chat model
- Every request logged: app, model, tokens, timing and errors
from openai import OpenAI client = OpenAI( base_url="https://relayz.net/v1", api_key="sk-...your Relayz key...", ) stream = client.chat.completions.create( model="claude", # or "chatgpt", "gemini-search", ... messages=[{"role": "user", "content": "Summarise this quotation email."}], stream=True, ) for chunk in stream: print(chunk.choices[0].delta.content or "", end="")
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://relayz.net/v1", apiKey: "sk-...your Relayz key...", }); const stream = await client.chat.completions.create({ model: "chatgpt", // or "claude", "gemini", ... messages: [{ role: "user", content: "Summarise this quotation email." }], stream: true, }); for await (const chunk of stream) { process.stdout.write(chunk.choices[0]?.delta?.content ?? ""); }
curl https://relayz.net/v1/chat/completions \ -H "Authorization: Bearer sk-...your Relayz key..." \ -H "Content-Type: application/json" \ -d '{ "model": "gemini", "messages": [{"role": "user", "content": "Summarise this quotation email."}] }'
What you can send
Standard OpenAI request fields. The API reference has a full example for each.
| Feature | How |
|---|---|
| Image input | A message part {"type": "image_url", ...} with a data URL or an https link |
| Documents | A message part {"type": "file", ...}: PDF, DOCX, XLSX, TXT, CSV, MD or JSON, up to 20 MB |
| Web search | Use a *-search tier, or send web_search_options: {} |
| Deeper reasoning | Use a *-thinking tier, or send reasoning_effort from low to max |
| Structured JSON | response_format with a JSON schema or json_object |
| Function calling | Standard tools and tool_choice; replies carry tool_calls |
| Image generation | images.generate(model="chatgpt-image", ...), up to 4 images |
| Streaming | stream: true; thinking progress arrives as reasoning_content |
Your favourite tools
Anything that accepts an OpenAI-compatible provider works with Relayz, including coding assistants in agent mode.
Coding extensions
Choose the OpenAI compatible provider, set the base URL to https://relayz.net/v1, paste a coding key and pick a tier such as claude as the model. Chat, edit and agent modes work; inline autocomplete doesn't.
MCP for ChatGPT and Claude
Relayz's MCP server lets ChatGPT (developer mode), Claude Desktop, Claude Code and Codex ask other models, save and search notes, and read shared files. The Relayz owner can give you the connector link.
Endpoints
From the internet: /v1/chat/completions, /v1/images/generations and /v1/models.
Limits
Attachments up to 20 MB each. Plan usage limits return HTTP 429; Relayz doesn't silently switch models.
OpenAPI spec
Import the spec from the API reference into Postman or a code generator.
Ready when you are
Create a free account, subscribe to unlock chat, get the Android app, or code with Relayz Code or Relayz Studio.
Sign in to chat, get the Android app, or code with Relayz Code or Relayz Studio. Public sign-up opens with live payments.