!
Production integration docs · examples use router-api.mengbi-ai.net and a personal API key placeholder.
01 /
Quickstart
Create an API key in your personal console, then keep it in a server-side environment variable. Never put the key in browser code.
Set environment variables
export MENGBI_ROUTER_API_KEY="sk-mengbi-xxxxxx"
export MENGBI_ROUTER_BASE_URL="https://router-api.mengbi-ai.net/v1"Notesk-mengbi-xxxxxx is only a placeholder. Replace it with your own personal key.
Your first OpenAI-compatible request
POST /v1/chat/completionscurl https://router-api.mengbi-ai.net/v1/chat/completions \
-H "Authorization: Bearer sk-mengbi-xxxxxx" \
-H "content-type: application/json" \
-d '{
"model": "gpt-5.6-sol",
"messages": [{"role": "user", "content": "Hello"}]
}'