ZuploZuplo
LoginStart for Free
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
    IntroductionGetting StartedUniversal API
    Providers
    Teams
    Apps
    Guardrails & Policies
    Integrations
Developer Portal
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
AI Gateway

AI Gateway Universal API

Zuplo AI Gateway provides a universal API that standardizes interactions with various AI providers. This API follows the OpenAI API specification, making it easy to integrate with existing applications that already use OpenAI's API.

Using the Universal API

The Universal API is automatically enabled for all AI Gateway applications. Using this endpoint is as simple as changing your API base URL to point to Zuplo. For example, if your Zuplo application is hosted at https://my-ai-gateway.zuplo.app, you can simply change the base URL in your API client to https://my-ai-gateway.zuplo.app/v1.

If you are using an SDK or library that supports custom base URLs, you can configure it to use your Zuplo application's URL. For example, with the OpenAI Node.js SDK, you can set the baseURL option:

Code
import OpenAI from "openai"; const client = new OpenAI({ apiKey: process.env.ZUPLO_API_KEY, baseURL: "https://my-ai-gateway.zuplo.app/v1", }); const response = await client.chat.completions.create({ model: "gpt-4", messages: [ { role: "user", content: "Write a one-sentence bedtime story about a unicorn.", }, ], }); console.log(response.choices[0].message.content);
Edit this page
Last modified on November 20, 2025
Getting StartedOverview
On this page
  • Using the Universal API
TypeScript