#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.