/v1/* surface, the project keeps a set of real compatibility endpoints.
Claude compatibility
Endpoint:POST /v1/messages
x-api-key and anthropic-version are present.
Gemini compatibility
Endpoints:GET /v1beta/modelsPOST /v1beta/models/{model}:generateContentPOST /v1/engines/{model}/embeddings
Authorization: Bearer ... for GET /v1/models; do not treat GET /v1/models?key=... as the general model-list authentication pattern.
OpenAI chat prompt extras
POST /v1/chat/completions also accepts two optional boolean parameters:
get_timeget_weather
get_time=true, the server injects the current time into the system prompt.
When get_weather=true, the server tries to parse a city from the latest user message, fetches a weather summary from Amap, and injects it into the system prompt.
Weather lookup requires this config:
Image and video compatibility endpoints
The current real compatibility set also includes:POST /v1/editsPOST /v1/images/editsPOST /kling/v1/videos/text2videoPOST /kling/v1/videos/image2videoPOST /jimeng
Which one to prefer
- New integrations: start with
Core API - Existing Claude or Gemini SDKs: use
Compatibility API