OpenAI Compatibility
Real200 is fully compatible with the OpenAI API protocol, including request format, parameters, response format, and streaming.
Compatible Endpointsâ
| Endpoint | Compatibility | Description |
|---|---|---|
POST /v1/chat/completions | â Fully Compatible | Chat completions |
POST /v1/completions | â Fully Compatible | Text completions (Legacy) |
POST /v1/embeddings | â Fully Compatible | Text embeddings |
POST /v1/images/generations | â Fully Compatible | Image generation |
GET /v1/models | â Fully Compatible | Model list |
GET /v1/balance | â Extended Support | Real200 balance query |
Differencesâ
1. Model Namesâ
Real200 model names may differ from OpenAI official:
# OpenAI official
model = "gpt-4o-2024-05-13"
# Real200 (uses generic name, auto-routes to latest version)
model = "gpt-4o"
See Model List for the complete list.
2. Balance Queryâ
Real200 extends the GET /v1/dashboard/user/info endpoint for balance queries:
curl https://real200.com/v1/dashboard/user/info \
-H "Authorization: Bearer $REAL200_API_KEY"
Migration Guideâ
From OpenAI Official to Real200â
Just modify one line:
# OpenAI official
client = OpenAI(api_key="sk-xxx")
# Real200
client = OpenAI(
api_key="sk-real200-xxx",
base_url="https://real200.com/v1"
)