Skip to main content
Using Claude Code, Codex or CC Switch? Follow your app’s guide instead.

1. Have a key and model ready

Create an API key. In Model Square, select that same group and copy a model name that supports Chat Completions. Ask support if unsure. Open a terminal. Replace only YOUR_API_KEY and YOUR_MODEL_ID below. Run later commands in this same terminal; set the values again after closing it.

2. Run one example

Choose just one option. Save files in your own test folder, not under the names openai.py or openai.mjs.
Install Python 3 first. Open a terminal in your test folder and install the dependency using your system’s commands.
Create demo.py, paste the complete code and save:
Run in the same terminal:

3. Check the result

A complete reply such as connection successful means the basic connection works. Check the request in Usage Logs. The test uses a small amount of credit. On errors, check that placeholders were replaced, the key has no asterisks and the model belongs to your group. If it still fails, send support the error and time, not your key. SDK installation reference: OpenAI SDK.