Instagram Caption Generator

Generate engaging, on-brand Instagram captions with emojis and hashtags for any photo or topic. Claude AI matches your brand voice and style. Choose from casual, professional, funny, inspirational, or any tone. Get multiple caption variations instantly.

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

Does the caption generator include hashtags?
Yes. Relevant hashtags are included with each caption. Specify your niche (fashion, fitness, food, travel, etc.) for more targeted hashtag suggestions.
Can I choose the tone and style?
Yes. Specify casual, professional, funny, inspirational, minimalist, storytelling, or any style you want. The AI adapts the caption voice to your brand.
How many caption variations does it generate?
Typically 3-5 caption variations with different angles (hook, question, statement, storytelling) so you can choose the best fit.
Does it work for Reels and Stories?
Yes. Describe your Reel, Story, or post content and the AI generates captions appropriate for each format, including short punchy captions for Stories.
Can I ask it to write in my brand voice?
Yes. Describe your brand personality or provide examples of captions you love, and the AI will match the style.