Programmatic REST endpoints, WebSocket streaming channels, and SDK client specifications across all 6 AIConnect core domains: Whisper voice streaming, air-gapped local AI, multi-agent workflows, AWS cloud automation, FinOps security auditing, and enterprise RAG.
Cloud endpoints require an active bearer key in the HTTP Authorization header: Authorization: Bearer <aiconnect_api_key>. Local edge daemons authenticate via Unix domain socket tokens.
Developer Tier: 1,000 req/min. Enterprise Tier: Dedicated AWS VPC endpoint VPC Link with unlimited throughput and 99.99% Uptime SLA guarantees.
wss://api.aiconnect.in/v1/speech/whisper/streamEstablishes a low-latency bi-directional WebSocket connection for streaming 16-bit 16kHz PCM audio to TensorRT-LLM Whisper v3 engine. Returns real-time transcript chunks, speaker diarization tags, and PII redaction metadata.
| Header Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Required | Bearer <aiconnect_api_key> |
| X-Audio-Sample-Rate | Integer | Required | Audio sampling rate (default: 16000) |
| X-Enable-PII-Masking | Boolean | Optional | Enables automatic PCI-DSS / HIPAA NER redaction (default: true) |
# Python Boto3 / WebSocket Client Stream Example
import websocket
import json
ws_url = "wss://api.aiconnect.in/v1/speech/whisper/stream"
headers = {"Authorization": "Bearer aic_live_9f8d7c6b5a4"}
def on_message(ws, message):
data = json.loads(message)
print(f"[{data['speaker_id']}] ({data['timestamp_ms']}ms): {data['transcript_redacted']}")
ws = websocket.WebSocketApp(ws_url, header=headers, on_message=on_message)
ws.run_forever(){
"status": "STREAMING",
"speaker_id": "SPEAKER_01",
"timestamp_ms": 1420,
"transcript": "My card number is [REDACTED_PCI] for payment.",
"pii_redacted": true,
"confidence_score": 0.984
}http://127.0.0.1:11435/v1/local/inferenceInvokes local quantized LLM weights (Llama 3.3 70B / Qwen 2.5 Coder) hosted on private edge workstations via Ollama and vLLM with zero cloud egress validation.
| Header Name | Type | Required | Description |
|---|---|---|---|
| X-Local-IPC-Token | String | Required | Local Unix domain socket auth token |
| X-Enforce-Zero-Egress | Boolean | Required | Rejects request if external network interfaces are detected (true) |
| Content-Type | String | Required | application/json |
# Python Local IPC Client Example via Unix Socket / Localhost
import urllib.request
import json
req_payload = {
"model": "qwen2.5-coder:32b-instruct-q8_0",
"prompt": "Inspect local audit log /var/log/secure for unauthorized sudo calls",
"temperature": 0.1,
"max_tokens": 1024
}
req = urllib.request.Request(
"http://127.0.0.1:11435/v1/local/inference",
data=json.dumps(req_payload).encode('utf-8'),
headers={
"X-Local-IPC-Token": "local_ipc_sec_e8b19a2c",
"X-Enforce-Zero-Egress": "true",
"Content-Type": "application/json"
}
)
with urllib.request.urlopen(req) as resp:
print(json.loads(resp.read().decode('utf-8'))['response']){
"model": "qwen2.5-coder:32b-instruct-q8_0",
"egress_status": "AIR_GAPPED_VERIFIED",
"inference_device": "NVIDIA RTX 4090 (24GB VRAM)",
"prompt_eval_count": 48,
"eval_count": 184,
"tokens_per_second": 58.2,
"response": "No unauthorized sudo anomalies detected in /var/log/secure."
}https://api.aiconnect.in/v1/agents/executeTriggers a multi-agent supervisor graph (LangGraph / Bedrock Agent) with custom task parameters, OpenAPI tool bindings, and state persistence checkpointers.
| Header Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Required | Bearer <aiconnect_api_key> |
| Content-Type | String | Required | application/json |
curl -X POST https://api.aiconnect.in/v1/agents/execute \
-H "Authorization: Bearer aic_live_9f8d7c6b5a4" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "agent_financial_reconciler_v2",
"task_prompt": "Audit ledger CSV for currency mismatch in Q3",
"hitl_approval_required": true,
"session_id": "session_audit_8891"
}'{
"execution_id": "exec_77218391",
"session_id": "session_audit_8891",
"state": "AWAITING_HUMAN_APPROVAL",
"current_node": "hitl_approval_gate",
"pending_tool_call": {
"tool_name": "update_sap_ledger_entry",
"parameters": { "adjustment_amount": 4500.00, "currency": "USD" }
}
}https://api.aiconnect.in/v1/cloud/drift-remediationDispatches AWS EventBridge event-driven automation to inspect CloudTrail diffs, generate idempotent Terraform plan patches, and open verified GitHub pull requests.
| Header Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Required | Bearer <aiconnect_api_key> |
| Content-Type | String | Required | application/json |
curl -X POST https://api.aiconnect.in/v1/cloud/drift-remediation \
-H "Authorization: Bearer aic_live_9f8d7c6b5a4" \
-H "Content-Type: application/json" \
-d '{
"environment": "production-us-east-1",
"aws_account_id": "123456789012",
"target_modules": ["vpc-peering", "eks-security-groups"],
"auto_remediate_low_risk": true
}'{
"remediation_id": "rem_tf_90821",
"drift_detected": true,
"affected_resources": [
"aws_security_group_rule.ingress_eks_api"
],
"terraform_plan_status": "PLAN_GENERATED",
"remediation_pr_url": "https://github.com/aiconnect/infra-core/pull/289",
"auto_applied": false
}https://api.aiconnect.in/v1/finops/security-auditInitiates continuous CloudTrail IAM Access Analyzer policy minimization and AWS Cost Explorer compute rightsizing analysis.
| Header Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Required | Bearer <aiconnect_api_key> |
| Content-Type | String | Required | application/json |
curl -X POST https://api.aiconnect.in/v1/finops/security-audit \
-H "Authorization: Bearer aic_live_9f8d7c6b5a4" \
-H "Content-Type: application/json" \
-d '{
"target_role_arn": "arn:aws:iam::123456789012:role/ProductionEksWorkerRole",
"days_lookback": 14,
"generate_terraform_patch": true
}'{
"audit_job_id": "job_iam_ce_9011",
"role_arn": "arn:aws:iam::123456789012:role/ProductionEksWorkerRole",
"wildcard_permissions_found": 3,
"proposed_terraform_pr": "https://github.com/org/infra/pull/142",
"monthly_projected_savings_usd": 1280.00
}https://api.aiconnect.in/v1/rag/searchExecutes hybrid reciprocal rank fusion search against OpenSearch Serverless vector indices paired with Cohere cross-encoder reranking for sub-50ms context retrieval.
| Header Name | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Required | Bearer <aiconnect_api_key> |
| Content-Type | String | Required | application/json |
curl -X POST https://api.aiconnect.in/v1/rag/search \
-H "Authorization: Bearer aic_live_9f8d7c6b5a4" \
-H "Content-Type: application/json" \
-d '{
"index_name": "enterprise-policy-v1",
"query": "What is the failover SLA for AWS Glue PySpark jobs?",
"top_k": 5,
"enable_rerank": true
}'{
"query": "What is the failover SLA for AWS Glue PySpark jobs?",
"retrieved_documents": [
{
"doc_id": "doc_glue_sla_09",
"score": 0.962,
"rerank_score": 0.989,
"text_snippet": "AWS Glue jobs automatically retry up to 3 times upon failure with state saved in S3 Iceberg."
}
],
"latency_ms": 38.4
}