Enterprise Preview : Builder is currently being deployed for enterprise customers. The API specifications are being finalized.
OpenAI-Compatible Chat API
Every chat workflow in Nadoo Builder generates an OpenAI-compatible endpoint . Use your custom AI workflows as drop-in replacements for OpenAI without changing your code.
Chat Completions Endpoint
POST /api/v1/chat/completions
Your existing OpenAI code works with Nadoo by simply changing the base URL:
# OpenAI
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello"}]
}'
# Nadoo - Just change the URL!
curl https://nadoo.ai/api/v1/chat/completions \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"model": "your-workflow-id",
"messages": [{"role": "user", "content": "Hello"}]
}'
Using OpenAI SDK
import OpenAI from 'openai' ;
// Simply change the base URL
const client = new OpenAI ({
apiKey: 'your-nadoo-api-key' ,
baseURL: 'https://nadoo.ai/api/v1'
});
// Everything else stays the same
const response = await client . chat . completions . create ({
model: 'your-workflow-id' ,
messages: [{ role: 'user' , content: 'Hello' }],
stream: true // Streaming supported!
});
{
"model" : "your-workflow-id" ,
"messages" : [
{
"role" : "system" ,
"content" : "You are a helpful assistant."
},
{
"role" : "user" ,
"content" : "What is RAG?"
}
],
"temperature" : 0.7 ,
"max_tokens" : 1000 ,
"stream" : true
}
{
"id" : "chatcmpl-abc123" ,
"object" : "chat.completion" ,
"created" : 1699000000 ,
"model" : "your-workflow-id" ,
"choices" : [{
"index" : 0 ,
"message" : {
"role" : "assistant" ,
"content" : "RAG stands for Retrieval-Augmented Generation..."
},
"finish_reason" : "stop"
}],
"usage" : {
"prompt_tokens" : 50 ,
"completion_tokens" : 100 ,
"total_tokens" : 150
}
}
Key Benefits
Drop-in Replacement Replace OpenAI with your custom workflows without changing code
Full Control Add business logic, data validation, and custom processing
Cost Savings Use your own models and infrastructure
Data Privacy Keep sensitive data in your control
For enterprise access and API details, please contact:
Request Enterprise Access
Next Steps