API Reference

ACP exposes two API implementations: a production-ready Cloudflare Worker API deployed at the edge and a Python FastAPI backend for local development with full engine access.

API Architecture

Both APIs share the same consensus protocol and axiom database but differ in deployment model, caching strategy, and feature scope.

Worker API (Production)Python API (Local)
Base URLhttps://your-worker.workers.devhttp://localhost:8000
DeploymentCloudflare edge (global)Local / self-hosted
CachingVectorize + KV semantic cacheIn-memory
Async supportStreaming responseTask queue with polling
Authx-api-keyOptional

Current Version

The API is at version 2.0.0 (Vectorize). The Worker API runs ACP protocol version 4.0.0 internally.

Base URLs

Production Worker: https://your-worker.workers.dev

Local Python: http://localhost:8000 (via uvicorn main:app --reload)

Local Worker Dev: http://localhost:8787 (via wrangler dev)

Sections