惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

J
Java Code Geeks
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
腾讯CDC
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
M
MIT News - Artificial intelligence
人人都是产品经理
人人都是产品经理
Hugging Face - Blog
Hugging Face - Blog
MyScale Blog
MyScale Blog
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
阮一峰的网络日志
阮一峰的网络日志
博客园 - Franky
Recent Announcements
Recent Announcements
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Three GPU affiliate programs I wired into an AI tool dire...
MORINAGA · 2026-06-16 · via DEV Community

When I decided to drop AdSense and bet on affiliate monetization for my AI tools directory, Amazon was the obvious first integration — books and GPU hardware are contextually reasonable on a site full of open-source AI models. But Amazon's conversion story for developer-adjacent products is weak. The users landing on a LLaMA or Whisper model page are not there to buy a deep learning textbook; they're evaluating whether to self-host something.

That realization pointed toward GPU cloud affiliates. People who read model pages are more likely to spin up a pod than click a book link. Here's what I integrated, how, and what I'm watching.

The Three Programs

Program Commission structure Referral mechanism
RunPod % of referred user's spending Referral code in URL
Vast.ai % of referred user's spending Referral code in URL
Hetzner Cloud One-time credit on signup Custom referral link

All three use simple referral codes embedded in URLs — no SDK, no iframe, just a URL parameter. That's intentional; I didn't want JavaScript dependencies on a statically generated site.

How the Integration Works

The monetization package exports three URL builder functions:

// packages/shared/src/monetization/index.ts

export function runpodReferralUrl(ref: string | null): string | null {
  if (!ref) return null;
  return `https://www.runpod.io/?ref=${encodeURIComponent(ref)}`;
}

export function vastReferralUrl(ref: string | null): string | null {
  if (!ref) return null;
  return `https://cloud.vast.ai/?ref_id=${encodeURIComponent(ref)}`;
}

export function hetznerReferralUrl(ref: string | null): string | null {
  if (!ref) return null;
  return `https://hetzner.cloud/?ref=${encodeURIComponent(ref)}`;
}

Each function returns null when the environment variable isn't set — so links simply don't render in development or in preview deployments where I haven't configured the ref codes. No dead links, no placeholder text.

On the model detail page, I build the affiliate sidebar conditionally based on pipeline_tag:

const aff = getAffiliateConfig();

// Only show GPU affiliates for model types where self-hosting is plausible
const showGpuLinks = isLLM || isVision;

const gpuLinks = showGpuLinks ? [
  { label: "RunPod", note: "On-demand GPU pods", url: runpodReferralUrl(aff.runpodRef) },
  { label: "Vast.ai", note: "Marketplace GPUs", url: vastReferralUrl(aff.vastRef) },
].filter((p): p is { label: string; note: string; url: string } => p.url !== null) : [];

Embedding models, classification models, and anything with a null pipeline_tag don't get the GPU sidebar. The reasoning: someone using a 384-dim sentence transformer doesn't need a GPU pod — they're calling an API or running inference on CPU. Showing GPU rental links there would be noise.

What I'm Watching

I won't fabricate numbers at week four. What I can say:

RunPod is easier to link to than Vast.ai. RunPod's referral URL resolves cleanly with no login wall before the landing page. Vast.ai drops you directly on the instance marketplace, which is great if you already know what you're doing and confusing if you don't. For a cold click from a model page, RunPod's onboarding is softer.

Hetzner is the odd one out. Hetzner Cloud is a German VPS provider — good for CPU-heavy workloads, affordable storage, strong EU datacenter story. It's on the model pages for users who want to run lighter inference (embedding models on CPU, small classifiers) at a lower cost than GPU cloud. The problem: the conversion path is long. A user has to sign up, set up a server, install dependencies, and deploy a model before Hetzner earns anything. I added it anyway because the referral credit structure means even a few conversions matter, but I'm skeptical it'll generate meaningful revenue without editorial content guiding the setup.

Amazon still outranks all of them in raw click volume — because the Amazon links are on more pages (all model pages, not just LLM/vision) and Amazon's brand is more trusted for an impulse click. Whether clicks convert is a different question I can't answer yet.

What I'd Add Next

DigitalOcean and Vultr are already in the affiliate config object but not yet wired to any page. DigitalOcean's GPU droplets are new-ish and not as well-known as RunPod; Vultr has a straightforward referral program. I'll add both once I have any signal about whether the current GPU links are being used.

Contextual text around the affiliate links. Right now the sidebar is just label + note + arrow. A one-sentence "why you'd use this" blurb next to each link would reduce the blank-stare click gap — especially for Vast.ai, where first-time users don't immediately understand the marketplace model.

Separate referral codes per site. I'm running the same referral codes across all three directories right now, which means I can't attribute a conversion to the AI tools directory vs a future expansion. When the programs reach any meaningful click volume, I'll register site-specific codes.

The actual implementation is simple — three URL builder functions, one conditional block in the page component, and a handful of env variables. The hard part isn't the code; it's choosing contextually relevant programs and placing them on pages where a user actually has purchase intent.

Part of an ongoing 6-month experiment running three AI-curated directory sites. The technical claims here are real; this article was AI-assisted.