OpenAI SDK compatibility
Use the Python and JavaScript OpenAI clients with the XoomCloud gateway.
Live system status and incident history →
Change the base URL and key
Install the official OpenAI Python or JavaScript package in your application. For requests within the supported text API surface, change only the client base URL and API key configuration. Select a model ID from the XoomCloud catalog in the request. NEXT_PUBLIC_GATEWAY_URL must include /v1; XOOMCLOUD_API_KEY stays on your server.
curl 'https://api.xoomcloud.si/v1/chat/completions' \
-H "Authorization: Bearer $XOOMCLOUD_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "meta-llama/Llama-3.3-70B-Instruct",
"messages": [
{
"role": "user",
"content": "Hello, XoomCloud!"
}
],
"max_tokens": 64
}'Compatibility boundaries
Chat completions, streamed chat, embeddings and model discovery are implemented. Responses API, Assistants, Files, images, audio, tools, multimodal messages, token-ID embedding inputs and multiple choices are not available. Do not assume the full OpenAI API surface. Unsupported fields are rejected rather than silently ignored.