For developers

One familiar API. A shorter path to your first request.

Use a compatible SDK, point it at the ngamia API, and choose an enabled model. Keep your secret key on your server.

  • OpenAI-compatible chat completions
  • Workspace-scoped API keys
  • Current models from GET /v1/models
Illustration of an application connected through an API gateway to model capabilities
quickstart.pyPYTHON
# Use the OpenAI SDK with ngamia
from openai import OpenAI

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

response = client.chat.completions.create(
  model="MODEL_FROM_CATALOG",
  messages=[{"role": "user", "content": "Habari"}]
)
Keep your API key on your server.
How it comes together

A small integration surface, from key to response.

Workspace management and model requests use different credentials. Keep the distinction clear in your application.

01

Workspace

Sign in to create a workspace and manage API keys.

02

Server

Use the API key only in trusted server-side code.

03

Gateway

Send compatible requests to api.ngamia.cc/v1.

Account and workspace routes use your app session. Model gateway routes use the workspace API key.