Developer Documentation
Build with DAICert™
Integrate deterministic AI outputs into your applications with our simple SDK and API.
Quick Start
Get up and running in 5 minutes
API Reference
Complete API documentation
CLI Tools
Command-line utilities
Guides
Step-by-step tutorials
Quick Start
Installation
npm install @daicert/sdkBasic Usage
import { DAICert } from '@daicert/sdk';
const client = new DAICert({
apiKey: process.env.DAICERT_API_KEY
});
// Define your schema
const InvoiceSchema = {
type: 'object',
properties: {
invoiceNumber: { type: 'string' },
date: { type: 'string', format: 'date' },
total: { type: 'number' },
items: {
type: 'array',
items: {
type: 'object',
properties: {
description: { type: 'string' },
quantity: { type: 'number' },
price: { type: 'number' }
}
}
}
},
required: ['invoiceNumber', 'date', 'total']
};
// Generate deterministic output
const result = await client.generate({
prompt: "Extract invoice data from this document",
schema: InvoiceSchema,
deterministic: true
});
console.log(result.data); // Always same structure
console.log(result.certified); // true if certified
console.log(result.auditId); // For compliance trackingNeed Help?
Join our developer community, check out more examples, or contact our support team.
