โœจ Powered by Amazon Bedrock

GenAI Chat
Platform

A serverless AI chat application built on AWS. Converse with foundation models through a secure, production-grade interface.

๐Ÿง 

6 Foundation Models

Claude, GPT-OSS, GLM โ€” pick the right model for every task

โš™๏ธ

Prompt Engineering

Custom system prompts, few-shot examples, and reusable presets

๐Ÿ“Š

Usage Analytics

Track tokens, cost, and usage per user and model

๐Ÿ”

Secure by Default

Cognito auth, CloudFront CDN, private S3 origin

โšก

Serverless Stack

Lambda + API Gateway โ€” zero servers to manage

๐Ÿค–

Welcome Back

Sign in to start chatting

Available Models
Haiku 4.5 GPT-OSS 20B Sonnet 4.6 GLM 5 Opus 4.6 Opus 4.7 Qwen 2.5 3B โšก
CloudFront ยท Lambda ยท Bedrock ยท DynamoDB

๐Ÿค– GenAI Chat

System Prompt Sets the AI's persona, rules, and behavior
0 chars
Few-Shot Examples Teach the model by example (user โ†’ assistant pairs)
โš ๏ธ Rate limit reached. Retrying in 5s โ€” or switch to a different model.

Hello!

I'm powered by Amazon Bedrock. Send me a message and I'll respond using Claude.

๐Ÿ’ก Tip: Click โš™๏ธ Prompt below to set a system prompt or add few-shot examples.

โš–๏ธ Model Comparison

๐Ÿ† Rankings

๐Ÿ“ˆ Performance Metrics

๐Ÿงช Simulation Progress

๐Ÿ’ฌ
โ€”
Requests
โšก
โ€”
Avg Latency
๐Ÿ’ฐ
โ€”
Total Cost
๐Ÿ†
โ€”
Fastest Model
Model Performance Comparison
Model Requests Avg TTFT Avg Total Avg Tok/s P50 P95 Cost
Loading metrics...

Latency Trend

Request Volume

Application Architecture

๐Ÿง‘โ€๐Ÿ’ป User Browser ๐Ÿ›ก๏ธ WAF Web ACL Managed Rules โ˜๏ธ CloudFront CDN Distribution /* โ†’ S3 /api/* โ†’ API Gateway ๐Ÿชฃ S3 Bucket Static Frontend HTML / CSS / JS ๐Ÿ” Cognito User Pool OAuth2 / JWT ๐Ÿ”€ API Gateway REST API /api/chat ยท /api/usage Cognito Authorizer โšก Lambda Node.js 22 (ARM64) Chat + Usage API ๐Ÿง  Bedrock Converse API Claude Models ๐Ÿ“Š DynamoDB Usage Tracking Per-user / Per-model ๐Ÿ’ฐ Cost Explorer Billing Data Actual AWS Cost HTTPS Allow OAC /api/* Proxy Converse Track Query cost Validate JWT Login redirect

๐Ÿ›ก๏ธ AWS WAF

Web Application Firewall protecting the CloudFront distribution with AWS managed rule groups and rate limiting.

โ˜๏ธ CloudFront

CDN distribution with behaviors: default serves static files from S3, /api/chat, /api/usage, and /api/metrics route to API Gateway. HTTPS enforced, HTTP/2 enabled. WAF-protected.

๐Ÿชฃ S3 Bucket

Private S3 bucket hosts the static SPA frontend. All public access blocked โ€” served exclusively through CloudFront via Origin Access Control (OAC).

๐Ÿ” Cognito

Shared Cognito user pool with OAuth2 authorization code flow. Browser redirects to Cognito Hosted UI, exchanges code for JWT tokens. No client secret (public SPA client).

๐Ÿ”€ API Gateway

Regional REST API with Cognito authorizer validating JWT on every request. POST /api/chat for conversations, GET /api/usage for analytics, GET /api/metrics for performance data. CORS enabled.

โšก Lambda

Node.js 22 on ARM64 (Graviton). Handles chat (Bedrock ConverseStream + InvokeModel for custom imports), usage tracking (DynamoDB writes), metrics queries, and usage queries (DynamoDB reads + Cost Explorer).

๐Ÿง  Amazon Bedrock

ConverseStream for native models (Claude, GPT-OSS, GLM) and InvokeModel for Custom Model Imports (Qwen 2.5 3B). 7 total models. Real-time TTFT measurement via streaming.

๐Ÿ“Š DynamoDB

Two tables: genai-chat-usage for monthly aggregates and genai-chat-metrics for per-request performance data with 90-day TTL.

๐Ÿ’ฐ Cost Explorer

Queried for actual AWS Bedrock billing data. Provides real cost alongside token-based estimates. Data has 24โ€“48h delay from AWS.

๐Ÿ“Š Monthly Usage

๐Ÿ’ฌ
โ€”
Requests
๐Ÿ“ฅ
โ€”
Input Tokens
๐Ÿ“ค
โ€”
Output Tokens
๐Ÿ’ฐ
โ€”
Estimated Cost
โ˜๏ธ
โ€”
Actual Bedrock Cost
Breakdown by Model
ModelRequestsInput TokensOutput TokensEst. Cost
Loading usage data...
Breakdown by User
UserRequestsInput TokensOutput TokensEst. Cost
Switch to "All Users" view