Documentation Index
Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
Use this file to discover all available pages before exploring further.
| |
|---|
| Model ID | gpt-5-mini |
| Provider | OpenAI |
| Cost | $0.003/req |
| Tier | Budget |
| Best for | Fast, high-volume chat |
Example
curl -X POST https://ninjachat.ai/api/v1/chat \
-H "Authorization: Bearer nj_sk_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5-mini", "messages": [{"role": "user", "content": "Hello!"}]}'
import requests, os
r = requests.post("https://ninjachat.ai/api/v1/chat",
headers={"Authorization": f"Bearer {os.environ['NINJACHAT_API_KEY']}"},
json={"model": "gpt-5-mini", "messages": [{"role": "user", "content": "Hello!"}]}
)
print(r.json()["message"]["content"])
Guides: Chat Completions | All Models | Pricing | Error Handling