Pauhu Unified API v1.0.0

High-performance AI API powered by Cloudflare Workers & Pages Functions

Deployment Options

Option 1: Workers

TypeScript Worker for fastest response times

View Live API

Option 2: Pages Functions

Scalable routing with free hosting

Explore Pages API

API Endpoints

GET /

API documentation and status

GET /health

Health check endpoint with deployment info

{
  "status": "healthy",
  "service": "pauhu-unified-api",
  "version": "1.0.0",
  "timestamp": 1731801600.0
}
GET /status

Deployment status and features (Pages Functions only)

POST /chat

Chat with AI using Cloudflare Workers AI

{
  "message": "Hello, how are you?",
  "mode": "standard"  // optional
}

Response:

{
  "response": "I'm doing well, thank you!",
  "mode": "standard",
  "timestamp": 1731801600.0
}

Features

AI Integration

Cloudflare Workers AI with Llama 2 7B model

Global Edge

Deployed across 300+ Cloudflare locations

Zero Cost

Pages Functions: Free hosting & auto-scaling

Low Latency

Cold start <50ms, avg response <100ms

Quick Start

Test the API:

curl -X POST https://pauhu-unified-api.pauhu.workers.dev/chat \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello from Pauhu!"}'

Health Check:

curl https://pauhu-unified-api.pauhu.workers.dev/health

Documentation

Full Documentation GitHub