Let your agent set it up
Working in a coding agent? Paste this one line into it. It adds the OpenAI SDK, puts your key in the env file, writes one function and calls it once, asking you for your key and the model as it goes.Base URL
OpenAI SDK Compatibility
The API works with the official OpenAI Python and JavaScript SDKs:Endpoints
Model Categories
Pricing
Models are billed per token (text) or per generation (images, video, audio). Pricing varies by model. Check the Model Catalog or Pricing page for rates.Next Steps
Authentication
Get your API key and authenticate requests
Chat Completions
Start with the most popular endpoint