Dirgha API
Build on the Dirgha platform
Quick Start
cURL
curl -X POST https://api.dirgha.ai/v1/chat -H "Authorization: Bearer $KEY" -d '{"message":"Hello"}' Node.js
import { Dirgha } from '@dirgha/sdk'; const client = new Dirgha({ apiKey: process.env.KEY }); Python
import dirgha; client = dirgha.Client(api_key="YOUR_KEY"); response = client.chat.create(message="Hello") API Reference
SDKs
@dirgha/cli
npm install -g @dirgha/cli Python Client
pip install dirgha Authentication
Generate API keys from console.dirgha.ai. Include in headers:
Authorization: Bearer dirgha_xxxxxxxx Pricing
API access included in Pro, Build, and Scale plans. Usage quotas apply per tier.