Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

OpenAI-compatible API interface is Grok-Mirror's core technological breakthrough

2025-08-28 1.4 K

Standardized AI service interfaces in practice

Project adoption/v1/chat/completionsThe endpoints fully replicate the OpenAI API specification, with support includingmodelparameter specification (grok-2/grok-3),messagesStandard fields such as conversation history. Developers can seamlessly switch service providers with the same code, example requests:curl --location "http://127.0.0.1:50005/v1/chat/completions" --header "Authorization: Bearer YourSsoToken" --data '{"model": "grok-3", "messages": [{"role": "user", "content": "测试内容"}]}'The System VariablesENABLE_MIRROR_APIcap (a poem)API_HATDSeparately control the interface switch and temporary session mode to meet the needs of different development scenarios.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top

en_USEnglish