Build with ChemAI
Complete API documentation, integration guides, and examples. Everything you need to integrate chemical intelligence into your applications.
Quick Start
# Search for chemicals
curl -X GET "https://chemai.com/api/chemicals?search=citric+acid&industry=food" \
-H "Authorization: Bearer YOUR_API_KEY"
# Get chemical details
curl -X GET "https://chemai.com/api/chemicals/chem_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
# MCP tool call
curl -X POST "https://chemai.com/api/mcp" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"method": "tools/call", "params": {"name": "search_chemicals", "arguments": {"query": "preservative for beverages"}}}'API Reference
All endpoints return JSON. Authentication via Bearer token in header.
/api/chemicalsSearch and list chemicals
Returns: Array of chemical objects with full specifications
/api/chemicals/{id}Get detailed chemical information
Returns: Complete chemical object with pricing, suppliers, documents
/api/pricingGet platform pricing in multiple formats
Returns: Pricing data with plans, API costs, volume discounts
/api/mcpMCP server for AI agent integration
Returns: MCP protocol response with tool results
/api/truthTruth layer API for verified facts
Returns: Cited facts with confidence scores and sources
/api/knowledge/queryRAG-powered knowledge base query
Returns: AI-generated answer with citations
MCP Server
Integrate ChemAI directly into Claude Desktop, ChatGPT, or any MCP-compatible AI agent. Our MCP server provides tools for chemical search, pricing, compliance, and more.
Add this to your Claude Desktop config:
{
"mcpServers": {
"chemai": {
"command": "npx",
"args": ["@chemai/mcp-server"],
"env": {
"CHEMAI_API_KEY": "your-api-key"
}
}
}
}Or use our hosted MCP endpoint directly:
POST https://chemai.com/api/mcp
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
"jsonrpc": "2.0",
"method": "tools/list",
"id": 1
}Available Tools
search_chemicalsSearch the chemical database by name, CAS number, or application
get_chemical_detailsGet complete details for a specific chemical
get_pricingGet pricing information for a chemical from all suppliers
get_documentsRetrieve SDS, TDS, or CoA documents
find_alternativesFind alternative chemicals that can substitute for a given chemical
check_complianceCheck regulatory compliance for a chemical in specific regions
build_formulationCreate a formulation with multiple ingredients and calculate costs
compare_chemicalsCompare multiple chemicals side by side
Authentication
All API requests require authentication via Bearer token.
API Keys
Include your API key in the Authorization header:
Authorization: Bearer ck_live_xxxxx
Test keys start with ck_test_
Live keys start with ck_live_
Rate Limits
| Plan | Rate Limit |
|---|---|
| Free | 10 req/min |
| Professional | 100 req/min |
| Enterprise | 1000 req/min |
SDKs & Libraries
Official client libraries for popular languages
npm install @chemai/sdk
pip install chemai
gem install chemai