AI Commons API Documentation
Access powerful AI models through our APIs. Choose between the Bot API for custom bots and knowledge bases, or the OpenAI-compatible API for seamless integration with existing tools.
Bot API
Create conversations with custom bots, knowledge bases, and guardrails. Full control over AI interactions with asynchronous processing.
OpenAI API
Drop-in replacement for OpenAI's API. Use existing OpenAI SDKs and third-party tools with AI Commons models.
20+ AI Models
Access Claude, Llama, Mistral, Amazon Nova, and more. Choose the right model for your use case and budget.
Choose Your API
Select the API that best fits your needs. Both APIs provide access to the same powerful models.
Documentation
Getting Started
Quick start guide to create your first conversation and understand core concepts.
Authentication
Learn how to authenticate your API requests and manage your API keys securely.
Bot API Reference
Complete reference for the Bot API with all endpoints, parameters, and response formats.
OpenAI API Reference
Use standard OpenAI client libraries and third-party tools with AI Commons.
Available Models
Browse 20+ models and choose the right one for your use case.
Error Handling
Best practices for handling errors, retries, and rate limiting.
Code Examples
Production-ready examples in Python, JavaScript, and cURL.
Try It
Test the API endpoints interactively in your browser with live responses.
