Node.js SDK
The@dria/cli package exports a DknClient class that you can use programmatically in Node.js and TypeScript projects.
Install
Quick start
Constructor
| Parameter | Description |
|---|---|
apiKey | Your Dria API key (dkn_live_...) |
baseUrl | API base URL (https://inference.dria.co) |
Methods
client.generate(opts)
Generate a non-streaming response.
GenerateResult with choices, usage, and metadata.