Serverless AI Agent API
Deploy custom AI agents with streaming responses, tool execution, and knowledge base integration powered by Cloudflare Workers.
SSE Streaming
Real-time response streaming via Server-Sent Events
Tool Execution
Secure tool calls with capability-based permissions
Knowledge Base
RAG-enabled document ingestion and retrieval
Session Memory
Persistent conversation context and user state
Demo Chat Interface
Try the CreationX API with our demo agent
Hello! I'm the CreationX demo agent. I can help you test the API endpoints. Try asking me to search the web, fetch data from an API, or answer questions!
API Endpoints
POST /v1/agents/:id/respond
Generate AI responses with optional streaming
{"message": "Hello", "session_id": "user_123"}
POST /v1/agents/:id/act
Execute tools and external actions
{"tool": "http.fetch", "input": {"url": "..."}}
POST /v1/agents/:id/memory/write
Store session memory and context
{"session_id": "user_123", "key": "pref", "value": {...}}
POST /v1/agents/:id/kb/ingest
Upload documents to knowledge base
{"source_type": "upload", "filename": "doc.pdf"}