This site is not affiliated with or endorsed by Vercel, Inc. Read the docs, then deploy or run each experiment yourself.
AI

Product Shot Copy

Product image - title/bullets via vision, plus optional ImageResponse OG card preview.

Run this experiment yourself

Demos are not embedded on this site. Deploy a standalone copy on Vercel or run the experiment app locally.

Local development

cd apps/experiments/product-shot-copy
pnpm install
pnpm dev

Then open http://localhost:3010.

This is an experimental demo. Use it as a starting point for your own projects.

Product Shot Copy is a Wave 3 Batch H composition lab. Pure helpers live in logic.ts; missing providers or stores degrade honestly (never fabricate AI output).

Features

  • Vision - title + bullets
  • Optional OG ImageResponse URL
  • Honest 503

Server Reference

POST /api/copy · GET /api/og

multipart/form-data: file=<image>
StatusCause
200Success
400Missing image
503No AI provider

Implementation Details

Validate

Inputs are length-capped in logic.ts; APIs return 400 for missing fields.

Run

Route Handlers compose AI SDK, Redis/Neon, or ImageResponse as documented. Fallbacks include honest notes.

Limitations

  • Not a full PDP CMS.
  • 4MB cap.
  • OG uses generated text only.

Use in your project

Copy the Route Handler(s) and logic.ts from apps/experiments/product-shot-copy/.

Deployment

Deploy on Vercel

Local Development

cd apps/experiments/product-shot-copy
pnpm install
pnpm dev

Configuration

VariableRequiredPurpose
AI_GATEWAY_API_KEYYes (or OpenAI)Preferred AI provider

Next Steps

On this page