AI YouTube Title Generator

Generate click-worthy, SEO-optimized YouTube video titles from your topic or description. Get 10 variations with different angles — curiosity, how-to, listicle, and more.

API Setup Required

AI tools need a backend API route to work. This prevents CORS errors from calling Anthropic directly from the browser.

Quick Setup (3 steps)

1

Create API route

app/api/ai/route.ts
2

Add your API key

.env.local → ANTHROPIC_API_KEY=sk-ant-...
3

Enable in component

AIToolBase.tsx → AI_ENABLED = true
app/api/ai/route.tsCopy & paste
import Anthropic from "@anthropic-ai/sdk";
import { NextRequest, NextResponse } from "next/server";

const client = new Anthropic({
  apiKey: process.env.ANTHROPIC_API_KEY,
});

export async function POST(req: NextRequest) {
  const { system, prompt } = await req.json();
  const msg = await client.messages.create({
    model: "claude-sonnet-4-20250514",
    max_tokens: 1024,
    system,
    messages: [{ role: "user", content: prompt }],
  });
  const text = msg.content[0].type === "text"
    ? msg.content[0].text : "";
  return NextResponse.json({ text });
}

Frequently Asked Questions

How many titles does it generate?
10 title variations using different formats: curiosity, how-to, listicle, question, and emotional hooks.
Are the titles SEO optimized?
Yes. Titles include relevant keywords while maintaining click-worthiness.