Theme
Base URLs
SynStar AI supports OpenAI-compatible API requests through the following endpoint formats.
Different SDKs, plugins, or API testing tools may require the base URL in different formats. Use the format that matches your integration method.
Recommended Base URL
For most OpenAI SDK integrations, use:
text
https://www.kkiai.com/v1This is the recommended base URL when using SDKs such as the OpenAI Python SDK, JavaScript SDK, or other OpenAI-compatible clients.
Common Endpoint Formats
Depending on the tool you use, you may see different fields such as Base URL, API URL, Endpoint, or Request URL.
SynStar AI supports the following formats:
text
https://www.kkiai.com
https://www.kkiai.com/v1
https://www.kkiai.com/v1/chat/completionsUse the format required by your tool.
For OpenAI SDK Integrations
When using the OpenAI SDK, set the base URL to:
text
https://www.kkiai.com/v1Example:
python
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://www.kkiai.com/v1"
)Then call the API normally:
python
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{"role": "user", "content": "Hello!"}
]
)For Direct HTTP Requests
When sending a direct HTTP request to the chat completions API, use the full endpoint:
text
https://www.kkiai.com/v1/chat/completionsExample:
bash
curl https://www.kkiai.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello!"
}
]
}'Avoid Duplicate /v1
Some tools separate the Base URL and the endpoint path.
If your tool asks for both, make sure you do not duplicate /v1.
Correct:
text
Base URL: https://www.kkiai.com/v1
Endpoint path: /chat/completionsThis becomes:
text
https://www.kkiai.com/v1/chat/completionsIncorrect:
text
https://www.kkiai.com/v1/v1/chat/completionsWhich Format Should I Use?
| Use Case | Recommended URL |
|---|---|
| OpenAI SDK | https://www.kkiai.com/v1 |
| OpenAI-compatible plugins | https://www.kkiai.com/v1 |
| Direct chat completions request | https://www.kkiai.com/v1/chat/completions |
| Tools that require root API address | https://www.kkiai.com |
If you are not sure which one to use, start with:
text
https://www.kkiai.com/v1