Inspiration
AI can put anyone's face in an ad without asking or paying them. Creators need a way to say yes on their own terms, and get paid every single time.
What it does
Likeness lets creators license their face to AI ads and get paid per render through PayPal.
- Creators set price per render, allowed uses, a render cap and an expiry. A creator agent reviews each licence request against those terms and the banned uses (political, adult, minors, impersonation, deception); the creator approves, and can revoke any time.
- Brands approve a spending mandate once (max per ad, daily cap, budget, step-up threshold) and save their PayPal wallet with PayPal Vault. That is the only time a human touches the money.
- The brand's AI agent makes image ads and 8-second video ads on request and pays per render, with every step streamed live: prompt check → licence and mandate check → authorize on the saved PayPal wallet (no buyer present) → render → AI face and content check → capture → signed receipt.
- Review: Accept pays the creator 90% instantly via PayPal Payouts; Reject refunds through PayPal; no answer auto-accepts after the review window.
- Guardrails in code, not in the model: a revoked licence, a reached cap, an over-limit price or a disallowed format (e.g. an images-only creator asked for video) is refused before PayPal is ever called.
- Proof: every ad has an Ed25519-signed receipt with its PayPal ids, plus C2PA provenance, verifiable by anyone: Licensed / Expired / Revoked / Refunded / Unknown.
- Brands can filter creators (niche, price, uses, video or images only) or ask the agent ("find me a fitness creator under $3"), and ask "show me PayPal's record for my last ad", answered via the PayPal Agent Toolkit.
The demo has one real creator (the builder, licensing his own face) and two synthetic creators with fictional, AI-generated faces, clearly labelled.
How we built it
- PayPal (sandbox): Vault v3 setup and payment tokens (UNSCHEDULED_POSTPAID) for merchant-initiated charges; Orders v2 with intent AUTHORIZE, then capture or void; Payouts for creator earnings; Refunds; Webhooks with signature verification; PayPal Agent Toolkit (get_order, list_transactions) as agent tools; JS SDK v6 to save the wallet.
- AI (Gemini API): Gemini Flash-Lite for the brand agent (tool calling), the creator agent, prompt and vision compliance checks and face matching; Gemini image generation (Nano Banana) from the creator's sealed reference photo; Gemini Omni Flash for 8-second image-to-video.
- Engine: one payment engine enforces policy inside a database transaction; the model can't bypass limits. Every PayPal request id is derived from the render id, so retries never double-charge. Failed renders or checks void the authorization. AI usage caps are reserved atomically.
- Next.js + TypeScript, Drizzle on Neon Postgres, AES-GCM-sealed photos, deployed on Render.
What's new in this hackathon
Built during the submission period: the entire PayPal layer (Vault, authorize/capture/void, Payouts, Refunds, verified webhooks), the per-render payment engine and review window, the brand agent with Agent Toolkit tools, the creator agent, compliance before payment, AI caps, receipts carrying PayPal ids, the creator filter, synthetic creators and the Render deployment. Earlier Likeness work (UI, receipts and verify page, image/video generation, licence model) was reused from my own projects and is listed file by file in docs/HACKATHON.md.
Challenges
- PayPal kept returning an access token issued before Vault was enabled, so it lacked the new scopes; we built a fresh-token tool.
- Veo was retired from the Gemini API mid-build; video moved to Gemini Omni Flash.
- All demo brands share one sandbox merchant, so PayPal's transaction data is matched to each brand's own captures.
Accomplishments
The complete money loop runs live and is tested end to end: charge without the buyer present, capture, instant payout, refund, void, PayPal-verified webhooks, and a revoke that stops payment before any API call.
What we learned
Agentic payments are safe when the agent proposes and the system enforces: hard limits in code, human approval for mandates and licences, and an auditable receipt for every payment.
What's next
Live PayPal; PayPal multiparty payments for automatic platform splits; verified creator onboarding (YouTube channel + liveness, already built behind a flag); agent-to-agent price negotiation.
Built With
- c2pa
- drizzle-orm
- gemini
- gemini-api
- gemini-omni-flash
- nano-banana
- neon
- next.js
- node.js
- paypal
- paypal-agent-toolkit
- paypal-js-sdk
- paypal-orders-api
- paypal-payouts
- paypal-refunds
- paypal-vault
- paypal-webhooks
- postgresql
- react
- render
- typescript