Elevated API Error Rate — We are investigating unusual traffic patterns affecting the Chat API and training data endpoints. View status →

Documentation

Everything you need to integrate NovaMind AI into your applications. Our API is OpenAI-compatible — swap your base URL and you're done.

Quickstart

Get your first completion in under 2 minutes.

ℹ️ You'll need an API key from your dashboard. Free tier includes 100K tokens per month with no credit card required.
quickstart.py
import requests

response = requests.post(
    "https://novamind.mihirkansagra.com/api/v1/chat",
    headers={"Authorization": "Bearer nm-sk-your-key-here"},
    json={
        "model": "novamind-chat-v2",
        "prompt": "Explain quantum computing in one sentence.",
    }
)
print(response.json()["choices"][0]["message"]["content"])

Authentication

All API requests must include your API key in the Authorization header as a Bearer token.

HTTP header
Authorization: Bearer nm-sk-<your-api-key>
⚠️ Never expose API keys in client-side code. Use environment variables or a secrets manager. Keys can be rotated from your dashboard at any time.

Chat Completions

POST /api/v1/chat — Generate a response from the model given a prompt or message history.

Request parameters

ParameterTypeDescription
modelstring requiredModel ID (e.g. novamind-chat-v2). See Models.
promptstringUser message for single-turn completions.
messagesarrayArray of {role, content} for multi-turn conversations.
max_tokensintegerMaximum tokens to generate. Default: 1024.
temperaturenumberSampling temperature (0–2). Default: 0.7.
streambooleanIf true, returns a Server-Sent Events stream. Default: false.

Models

Available models via GET /api/v1/models:

Rate Limits

Rate limits are enforced per API key:

TierRPMTPMConcurrent
Free2040K2
Standard5001M20
EnterpriseUnlimitedUnlimitedCustom

Error Codes

CodeMeaning
400Bad request — missing or invalid parameters
401Unauthorized — invalid or missing API key
403Forbidden — insufficient permissions for this resource
429Rate limit exceeded
500Internal server error — contact support