aceintellegence
Developer Docs
Everything needed to start building with aceintellegence.
Find setup instructions, architecture guidance, and examples for shipping real features.
Installation
Install the aceintellegence SDK in your project.
npm install @aceintellegence/sdk
# or
yarn add @aceintellegence/sdkAuthentication
Get your API key from the dashboard and set it as an environment variable.
export ACEINTELLIGENCE_API_KEY="ace_your_key_here"Your First Request
Make a completion request to analyze a document.
import { Aceintellegence } from '@aceintellegence/sdk'
const client = new Aceintellegence()
const response = await client.analyze({
document: 'path/to/doc.pdf',
query: 'Summarize the key points'
})
console.log(response.summary)Streaming Responses
Stream tokens as they are generated for real-time output.
const stream = await client.analyze({
document: 'path/to/doc.pdf',
query: 'Explain the methodology',
stream: true
})
for await (const chunk of stream) {
process.stdout.write(chunk.text)
}Using Tools
Enable the model to execute code and interact with external systems.
const response = await client.analyze({
document: 'path/to/doc.pdf',
query: 'What files reference this?',
tools: [{ type: 'search' }],
tool_choice: 'auto'
})