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.
OpenAI-Compatible Quickstart
Send your first request through OpenAI API with one endpoint and one API key.
Model Catalog
Browse every OpenAI model with pricing, context windows and capabilities.
Pricing & Billing
Understand model pricing, included allowances and request-level billing visibility.
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.
