Skip to content

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.

For most OpenAI SDK integrations, use:

text
https://www.kkiai.com/v1

This 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/completions

Use 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/v1

Example:

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/completions

Example:

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/completions

This becomes:

text
https://www.kkiai.com/v1/chat/completions

Incorrect:

text
https://www.kkiai.com/v1/v1/chat/completions

Which Format Should I Use?

Use CaseRecommended URL
OpenAI SDKhttps://www.kkiai.com/v1
OpenAI-compatible pluginshttps://www.kkiai.com/v1
Direct chat completions requesthttps://www.kkiai.com/v1/chat/completions
Tools that require root API addresshttps://www.kkiai.com

If you are not sure which one to use, start with:

text
https://www.kkiai.com/v1