Skip to content

You can interact with the API through HTTP requests in any language, our official Python bindings, our official Node.js library, or community-maintained libraries.

To install the official Python bindings, run the following command:

pip install openai
key='sk-xxxx'

from openai import OpenAI

client = OpenAI(
    base_url="https://www.kkiai.com/v1",
    api_key=key
)

response = client.chat.completions.create(
  model="gpt-4o",
  messages=[
    {"role": "user", "content": "hello"},

  ],
  timeout=100,

)
print(response)