Gengxi API Developer Docs
Chat Completions
Send message-based, tool-enabled, and multimodal requests to POST /v1/chat/completions.
Create a chat completion
bashCopy
curl https://api.gengxi.ai/v1/chat/completions \
-H "Authorization: Bearer $GENGXI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "YOUR_MODEL",
"messages": [{"role": "user", "content": "Hello"}]
}'Request fields
Common public capabilities include model, messages, tools, functions, tool_choice, function_call, reasoning_effort, stream, temperature, top_p, max_tokens, max_completion_tokens, response_format, service_tier, and parallel_tool_calls.
Multimodal content
Compatible message content can include text, image_url, and file parts. Support depends on the selected model and group.
jsonCopy
{
"role": "user",
"content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": "https://example.com/image.jpg"}}
]
}Protocol conversion
Some requests may be converted to a target provider protocol. The public request and response contract matters; internal account scheduling and transformation details are not exposed.