Generate SEO with AI
One Click.
Complete SEO.
The AI reads your document content and generates all SEO metadata in seconds. No more staring at blank fields.
Meta Title
Generates an SEO-optimized title under 60 characters using your content and focus keyword. Crafted to improve click-through rate.
Meta Description
Writes a compelling 160-character description that entices users to click. Naturally includes your focus keyword.
Keyword Suggestions
Reads your body content and suggests relevant focus keywords. Click to add them directly to your SEO fields.
Content Analysis
Understands your full document via bodyFields — simple fields, array paths like sections[].content, or nested structures.
Up and Running
in Minutes
Pick a Provider
Sign up for OpenAI, Anthropic, or Groq and grab your API key. Groq has a free tier — no credit card needed.
Add the Config
Drop your API key into .env.local and add aiFeature + bodyFields to seoMetaFields() in sanity.config.ts.
Click Generate
Open any document in Sanity Studio. AI buttons appear next to the meta title, description, and keywords fields.
Edit & Publish
Review the suggestions, tweak anything you like, then save. Your SEO metadata is done in seconds.
Your AI,
Your Choice
Plug in any of the three supported providers. Switch anytime. You own your API key — no middleman, no markup.
OpenAI
Best QualityIndustry-leading quality for meta titles and descriptions. Fast responses, excellent understanding of SEO context.
gpt-4o-miniSANITY_STUDIO_OPENAI_KEYAnthropic
Fast & SmartExceptional reasoning and writing quality. Great for nuanced descriptions and keyword relevance.
claude-haiku-4-5SANITY_STUDIO_ANTHROPIC_KEYGroq
Free TierBlazing fast inference with a generous free tier. Perfect for getting started without any cost.
llama-3.3-70b-versatileSANITY_STUDIO_GROQ_KEYSimple Setup
Three lines of config and you're done. Add your API key to .env.local and point bodyFields at your content.
// sanity.config.ts
import { seoMetaFields } from "sanity-plugin-seo";
export default defineConfig({
plugins: [
seoMetaFields({
aiFeature: {
provider: "openai", // "openai" | "anthropic" | "groq"
apiKey: process.env.SANITY_STUDIO_OPENAI_KEY,
model: "gpt-4o-mini",
},
// Single field
bodyFields: ["body"],
// Or multiple fields / nested paths
// bodyFields: ["body", "sections[].content", "excerpt"],
slugField: "slug",
}),
],
});Optimise for
AI Search
GEO (Generative Engine Optimization) goes beyond Google. The built-in checklist validates your content for ChatGPT, Perplexity, and Google AI Overviews — directly inside Sanity Studio.
Structured Data Configured
AutoThe plugin automatically generates JSON-LD structured data for every document. No manual setup needed.
Helps AI crawlers understand your content type and hierarchy.
Description is Answer-Ready
CheckedMeta description must be 100–160 characters — the optimal length for AI snippet extraction and Google AI Overviews.
AI models pull concise, factual descriptions as citations.
OG Image Present
CheckedAn Open Graph image must be uploaded. AI-powered visual search and social sharing both require it.
Required for citation previews in AI-generated responses.
Keyword in Title & Description
CheckedYour focus keyword must appear in both meta title and description. This signals topical relevance to AI crawlers.
Consistent keyword signals improve AI search inclusion probability.
Open Graph Fully Configured
CheckedOG title, description, and image must all be present. Incomplete OG data breaks social sharing and AI citation cards.
Full OG config is required for AI citation previews across platforms.
GEO Score Visible in Studio
AutoA live score (0–5) updates in real-time as editors fill in the SEO panel. Green = ready, amber = needs work, red = missing critical fields.
Gives your team instant feedback without leaving Sanity.
Live Score in Studio
The GEO score ring updates in real-time as your editors work. Each check turns green the moment the field passes. No page refresh, no guessing.
Ready to Try AI?
Install the plugin, add your API key, and start generating SEO metadata in minutes. Free tier included — AI is optional.
Free & open source · MIT license · No usage limits
Works with Sanity v3, v4, and v5