#29

Image Captioning & Cropping API Studio

← Back to Project Download n8n JSON ↓

Automated Visual Preprocessing Pipeline FastAPI OpenCV Pillow n8n

Simulate the containerized Google Cloud Run microservice: accepts public direct image links (no uploads), computes mathematical center crops, overlays 3-word captions on high-contrast footer banners, and enforces header API key authentication.

requests (streaming) numpy (matrix array) secrets.compare_digest Google Cloud Run Docker 3.11-slim
🔑 Header API Key Authentication
Authenticated (200)
X-API-Key Request Header Required for all calls
🌐 Direct Image URL Ingestion
No Uploads Mode
Public Image URL Direct link only
Caption (Exactly 3 Words) 3 / 3 Words
Footer Banner Style Bottom-Center
Crop Aspect Ratio OpenCV Center Crop
1:1 Square
800 × 800
4:5 Portrait
800 × 1000
16:9 Wide
1280 × 720
9:16 Reel
720 × 1280
Typography Font Size 52px
Resolution: 800 × 800 px (1:1) · Process Time: 38 ms
🖱️

When clicking 'Execute workflow'

Manual Trigger

✓
1 item
🌐

Edit-Image

POST: https://image-service-api.run.app

✓
Node Inspector: Edit-Image (n8n-nodes-base.httpRequest)
🧪 Automated 8-Point Diagnostic Test Runner

Verifies system compliance against challenge requirements: direct URL acceptance, no multipart uploads, API key header gate, 3-word caption rule, and OpenCV aspect crop bounding mathematics.