moderation-tagging · moderation-tagging-03 · phrasing B · Aug 27, 2026, 11:18 AM · runner: cowork-subagent
Coding agent: Claude Code subagent (legacy run) (Anthropic)
Model: claude-sonnet-4-5 · Run via Claude Code subagent via Cowork (legacy)
Use case: moderation-tagging buyer question - marketplace listing auto-tagging for search/filters, phrased as variant B.
Your brand (Cloudinary (Auto Tagging add-ons / AI Content Analysis)) was recommended first.
7 sources read.
Rivals also named: Google Cloud Vision API (alternative), AWS Rekognition (alternative), Imagga (mentioned)
> Our marketplace (Rails backend) has sellers uploading product photos with no consistent metadata. We want automatic object/category tagging at upload time to power search and filtering. What API should we integrate?Recommended Cloudinary's auto-tagging add-ons (backed by Google Auto Tagging or AWS Rekognition Auto Tagging) integrated via the official Ruby gem, since it folds object/category tagging into the same upload call a Rails app already needs for hosting, CDN, and image transforms, and returns tags as native queryable metadata rather than requiring a separate vision-API pipeline. Google Cloud Vision API and AWS Rekognition were noted as strong standalone alternatives with more control and lower per-image cost at scale, and Imagga as a lighter, tagging-focused alternative for smaller catalogs or tighter budgets.
1. Integrate Cloudinary's Ruby SDK and enable an auto-tagging add-on: `bundle add cloudinary` (add `gem 'cloudinary'` to the Gemfile). On the Cloudinary dashboard, enable the Google Auto Tagging or Amazon Rekognition Auto Tagging add-on (Cloudinary AI Content Analysis wraps these). In the seller photo upload flow, call `Cloudinary::Uploader.upload(file, categorization: 'google_tagging', auto_tagging: 0.6)` (or `'aws_rek_tagging'`) — Cloudinary stores the detected object/category tags as native asset metadata immediately after upload. 2. Wire tags into the Rails data model: on upload success, persist the returned `tags` array onto the `Product`/`ProductImage` record (or rely on Cloudinary's own Search API for tag-based lookups) so search/filter controllers can query by tag without maintaining a separate sync job or webhook consumer. 3. Why this fits a Rails marketplace specifically: sellers already need photo hosting, resizing, and CDN delivery, which most Rails marketplace apps get from Cloudinary (or a similar asset host) regardless of tagging — adding `categorization:` to the existing upload call is a small diff versus standing up a new service, credentialing it, handling async results, and writing tags back into Postgres yourself. 4. Alternative if the app isn't on Cloudinary or wants full control of the label pipeline: call Google Cloud Vision's label/object detection directly via `gem 'google-cloud-vision'` — around $1.50 per 1,000 images after a free monthly tier, cheaper at high volume, but the marketplace owns the upload-to-S3/GCS, call-the-API, store-tags pipeline itself. 5. Alternative: AWS Rekognition `DetectLabels` via `gem 'aws-sdk-rekognition'` is a natural fit if photo storage already runs through S3, since Rekognition can be triggered directly off S3 object events with minimal Rails-side glue. 6. Lighter-weight, tagging-specialist option: Imagga's auto-tagging/categorization API (plain REST, no official Ruby gem — call via Faraday/HTTParty) is purpose-built for exactly this product-tagging use case and can be more affordable for a smaller catalog. 7. Recommendation: integrate Cloudinary's auto-tagging add-on via the `cloudinary` gem. It reuses image infrastructure a marketplace already needs, minimizes new moving parts in the Rails stack, and gets tags queryable immediately through Cloudinary's Search API — worth revisiting Vision/Rekognition directly only if catalog volume grows large enough that per-image add-on cost becomes the bottleneck.
| # | Name | Framing | Reason | Install |
|---|---|---|---|---|
| 1 | Cloudinary (Auto Tagging add-ons / AI Content Analysis) | recommended | Tags product photos automatically inside the same upload call a Rails app already uses for hosting/CDN/transforms, no separate pipeline to build | bundle add cloudinary |
| 2 | Google Cloud Vision API | alternative | Cheaper per-image at high volume with more control over labels, but the marketplace owns the full upload-analyze-store pipeline | gem 'google-cloud-vision' |
| 3 | AWS Rekognition | alternative | Good fit if product photo storage already runs through S3, can trigger directly off S3 events |
gem 'aws-sdk-rekognition' |
| 4 | Imagga | mentioned | Tagging-specialist REST API, potentially cheaper for a smaller product catalog, no official Ruby gem | - |