Documentation

Learn how to integrate Ngamia into your application.

Quickstart

Ngamia is fully compatible with the OpenAI SDK. Just change base_url and set your key.

from openai import OpenAI

client = OpenAI(
    api_key="ngm_live_...",
    base_url="https://api.ngamia.cc/v1",
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Habari!"}]
)

Authentication

Set your key in the header of Authorization: Bearer ngm_live_...