Get started with OpenAI API

OpenAI API provides a unified, OpenAI-compatible API that gives you access to the OpenAI model family through a single endpoint. It handles failover and routes requests to the healthy path. Get started with just a few lines of code.

OpenAI SDK Compatible

OpenAI API works as a drop-in replacement for the OpenAI SDK. Just change the base URL and API key — your existing code works immediately.

API Endpoint

Use the global endpoint for all requests: https://api.openaiapi.lol/v1.

Next Steps

  • Send your first request with the OpenAI SDK.
  • Browse the model catalog and pick the model that matches your traffic.
  • Set spending limits and budget alerts before you scale production traffic.
Documentation — OpenAI-Compatible API