You made your first API call. Now turn it into a production-grade integration with compliance, cost controls, and observability.
Apply a pre-built policy template to enable PII redaction, audit logging, and content safety in one click. This is the core of what ACAI provides — compliance evidence your auditors will accept.
Available templates:
ACAI offers 37+ models from 10 providers — all pre-provisioned and ready to use. Browse the catalog to find the right model for your use case and tier.
curl https://api.agilecloud.ai/api/v1/gateway/catalog \ -H "Authorization: Bearer YOUR_API_KEY"
The default policy gives you solid coverage, but you can customize PII detection modes, content safety thresholds, and add custom rules for your domain.
redact (replace with placeholders), block (reject), or flag (log only)The SDKs extend the official OpenAI client with ACAI-native features — compliance reports, policy management, BYOB backend registration, and the model catalog.
Python
pip install directai
JavaScript / TypeScript
npm install directai
from directai import DirectAI
client = DirectAI(api_key="YOUR_API_KEY")
# Standard OpenAI chat — works out of the box
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello!"}],
)
# ACAI-native: generate a compliance report
report = client.reports.generate(
framework="soc2",
period_days=30,
)Already have OpenAI, Anthropic, or Azure OpenAI API keys? Register them as BYOB backends and route through ACAI for compliance coverage. You pay your provider directly — ACAI adds only the compliance fee.
curl -X POST https://api.agilecloud.ai/api/v1/gateway/backends \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "my-openai",
"provider": "openai",
"api_key": "sk-...",
"models": ["gpt-4o", "gpt-4o-mini"]
}'After making some API calls with a policy active, generate a compliance report. This is the deliverable your auditors want — structured evidence of access controls, PII handling, and audit completeness.
curl -X POST https://api.agilecloud.ai/api/v1/gateway/reports \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"framework": "soc2", "period_days": 30}'