Gengxi API Developer Docs
OpenCode
Configure OpenCode with the base URL, API key, and protocol appropriate to the provider.
OpenAI-compatible provider
jsonCopy
{
"provider": {
"gengxi": {
"options": {
"baseURL": "https://api.gengxi.ai/v1",
"apiKey": "{env:GENGXI_API_KEY}"
}
}
}
}Gemini native provider
A client using the Gemini native protocol should use https://api.gengxi.ai/v1beta, not the OpenAI-compatible /v1 base URL.