Skip to main content
One API key connects you to multiple model providers. Copy the actual regional Base URL and model ID from the console. The values below are placeholders.
1

Create an API key

Create a separate key for your application and keep it in an environment variable.
2

Choose a region and model

Copy the selected region’s Base URL from the keys page. Copy a Responses-compatible model ID from its details in the catalog.
3

Make your first request

Install the SDK, then replace the URL and model. For Python, run python -m pip install openai; for JavaScript, run npm install openai.
Check the result after an interruption before sending another generation request. These examples disable automatic SDK retries and do not run requests for you.

Next steps

Protocols and authentication

Choose the request format supported by your model.

Set up Codex CLI

Connect through a custom Responses provider.

Set up Claude Code

Connect through an Anthropic Messages gateway.

Troubleshoot requests

Check keys, balance, regions, and capabilities.