Skip to main content

OpenAI Compatibility

Real200 is fully compatible with the OpenAI API protocol, including request format, parameters, response format, and streaming.

Compatible Endpoints​

EndpointCompatibilityDescription
POST /v1/chat/completions✅ Fully CompatibleChat completions
POST /v1/completions✅ Fully CompatibleText completions (Legacy)
POST /v1/embeddings✅ Fully CompatibleText embeddings
POST /v1/images/generations✅ Fully CompatibleImage generation
GET /v1/models✅ Fully CompatibleModel list
GET /v1/balance✅ Extended SupportReal200 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"
)