Quick Start
1. Create a key
Section titled “1. Create a key”Open the Console, sign in, and create an API key (sk-...).
2. Choose a base URL
Section titled “2. Choose a base URL”| Region | Base URL |
|---|---|
| Global | https://api.earbowe.com/v1 |
| China direct | https://api.3861343.xyz/v1 |
Include /v1.
3. First request (curl)
Section titled “3. First request (curl)”curl https://api.earbowe.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer sk-YOUR-KEY" \ -d '{ "model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}] }'4. Python SDK
Section titled “4. Python SDK”from openai import OpenAI
client = OpenAI( api_key="sk-YOUR-KEY", base_url="https://api.earbowe.com/v1",)r = client.chat.completions.create( model="gpt-4o-mini", messages=[{"role": "user", "content": "Hello"}],)print(r.choices[0].message.content)5. Coding agents
Section titled “5. Coding agents”- Codex CLI
- Cline
- Blog: Quickstart · Codex · Cline