Intelligence, ready to plug in.
Add memory, identity, behavior and emotional intelligence to your AI product.
Choose your plan.
Scale memory vectors, affective modeling, and multi-modal behavior with developer-first predictability.
Free Trial
Instant access upon sign up. 2,000 free tokens/day.
- Core REST API & WebSocket access
- Short-term conversational memory
- Single identity & persona bounds
- Standard community & docs support
Premium
For production products scaling active users.
- Everything in Starter
- Persistent 1536-D vector memory
- Behavioral cadence & micro-pause telemetry
- Real-time emotional valence & adaptive tone
- Synchronous multimodal convergence
Enterprise
For companies deploying high-throughput AI at scale.
- Dedicated private VPC deployment
- Guaranteed <80ms priority routing
- Custom fine-tuned emotion weights
- 24/7 dedicated engineering & 99.9% SLA
Works with what you already have.
Connect Hoocup to your existing AI stack without rebuilding your product.
Add your API key.
Send your request.
Receive contextual intelligence.
API Reference
The Hoocup Commercial API is a RESTful interface for Artificial Emotional Intelligence (AEI), 180-dimension UIP digital twin, and tenant-isolated Hybrid RAG. All requests require JSON payloads and the X-API-Key header.
Quickstart Integration
Start integrating in under 5 minutes with our client SDKs.
Zero-dependency browser script (~3KB) with automatic keystroke biometric capture (WPM, backspaces, hesitation pauses).
https://ai.hoocup.inAuthentication
Authenticate requests by including your secret API key in the X-API-Key request header. All requests must use HTTPS in production.
| Header | Format | Description |
|---|---|---|
| X-API-Key | hcup_... | Your commercial API key (SHA-256 verified). Required on all developer endpoints. |
| Content-Type | application/json | Required for all POST and PUT endpoints. |
| X-Admin-Secret | <secret> | Required for admin provisioning endpoints only (/api/v1/admin/*). |
| Plan | Req / Minute | Daily Tokens |
|---|---|---|
| Free / Starter | 60 rpm | 100,000 |
| Premium / Growth | 180 rpm | 500,000 |
| Enterprise | Custom | Custom |
/api/v1/chat
Adaptive Emotional Intelligence ChatPrimary conversational endpoint. Analyzes client-side typing dynamics (WPM, backspaces, deliberation ratio, pause-before-send) to adapt tone, empathy level, and communication rhythm. Set stream: true for Server-Sent Events (SSE).
| Field | Type | Required | Description |
|---|---|---|---|
| message | string | Yes | Input text (1 to 4,000 characters). |
| user_id | string | Yes | Unique user identifier for persistent AEI profile tracking (UIP Digital Twin). |
| bot_name | string | No (generic) | Assistant persona: generic, aiko, ivy, etc. |
| stream | boolean | No (false) | When true, streams token-by-token via Server-Sent Events (SSE). |
| kb_mode | string | No (disabled) | RAG mode: disabled, augment, strict, or hybrid. |
| typing.typing_speed_wpm | float | No | Keystroke rate in words per minute. |
| typing.backspace_count | integer | No | Backspace / delete actions — hesitation & self-censorship signal. |
| typing.compose_time_ms | integer | No | Total ms from first keystroke to submit. |
| typing.pause_before_send_ms | integer | No | Idle ms before clicking send (final hesitation cue). |
| typing.deliberation_ratio | float | No | Ratio of long pause intervals (>500ms) to total composition time. |
| typing.platform | string | No (web) | web, mobile (adjusts backspace weighting), or voice (bypasses keystroke metrics). |
| aei.empathy_level | string | No (auto) | auto, low, medium, high, or maximum. |
| aei.crisis_safety | boolean | No (true) | Enables zero-latency crisis safety guardrails. |
"stream": trueResponse header becomes Content-Type: text/event-stream. Each event is data: { "token": "..." } terminated by data: { "done": true, "billing": {...}, "aei_applied": {...} }.
/api/v1/extract
NLP & Entity ExtractionExtracts named entities, intent, and emotional valence without generating an assistant response. Cost-effective for tagging and metadata pipelines.
/api/v1/moderate
Content Moderation <2msZero-LLM overhead defensive screening (<2ms latency) across 13 languages. Detects toxicity, abuse, threats, and self-harm.
/api/v1/uip/{user_id}
User Intelligence Profile — 180+ DimensionsRetrieves the user's persistent psychological digital twin across 7 core domains (~180 statistical parameters). Sub-millisecond Redis cache read with MongoDB cold fallback.
/api/v1/kb/ingest
Document Ingestion — Tenant-Isolated RAGUpload documents (PDF, DOCX, TXT, CSV, MD) or submit raw text / web URLs for automatic chunking and embedding into your dedicated Qdrant collection: kb_cust_{customer_id}.
/api/v1/kb/documents
List all ingested documents in your tenant knowledge base with chunk counts and metadata.
/api/v1/kb/search
Hybrid Semantic Search (BM25 + Dense + Cross-Encoder)4-strategy hybrid retrieval (BM25 + dense embeddings + metadata filtering) with Cross-Encoder reranking across your tenant Qdrant collection.
/api/v1/kb/status
Current number of indexed chunks, document counts, and vector storage usage for your tenant collection.
/api/v1/usage
Inspect current billing cycle consumption, remaining tokens, request counts, and cost breakdown.
/api/v1/health
Public — No Auth RequiredPublic health probe verifying operational status of the Commercial API Gateway and all downstream microservices. No authentication required.
HTTP Error Codes & Problem Details (RFC 7807)
All errors conform to the RFC 7807 standard JSON error envelope:
| Code | Error Key | Meaning & Resolution |
|---|---|---|
| 401 Unauthorized | invalid_api_key | Omitted or invalid X-API-Key header. Generate a key in the dashboard. |
| 403 Forbidden | account_not_active | Account suspended. Contact support. |
| 429 Too Many Requests | rate_limit_exceeded | Exceeded requests/minute sliding window. Implement exponential backoff. |
| 429 Too Many Requests | quota_exceeded | Daily token quota exhausted. Resets at midnight UTC. |
| 422 Unprocessable | scanned_pdf | Scanned image-only PDF uploaded. Provide searchable text documents. |
| 500 Internal Error | internal_server_error | Downstream processing exception. Retry with backoff. |
| 503 Unavailable | auth_service_unavailable | MongoDB or Redis connectivity timeout. Check /api/v1/health. |