AI Features · GEO Analytics · OpenAI · Anthropic · Groq

Generate SEO with AI

Meta titles, descriptions, and keyword suggestions — generated in one click, directly inside Sanity Studio. Powered by the AI provider of your choice.

01 · What AI Generates

One Click.
Complete SEO.

The AI reads your document content and generates all SEO metadata in seconds. No more staring at blank fields.

01

Meta Title

Generates an SEO-optimized title under 60 characters using your content and focus keyword. Crafted to improve click-through rate.

02

Meta Description

Writes a compelling 160-character description that entices users to click. Naturally includes your focus keyword.

03

Keyword Suggestions

Reads your body content and suggests relevant focus keywords. Click to add them directly to your SEO fields.

04

Content Analysis

Understands your full document via bodyFields — simple fields, array paths like sections[].content, or nested structures.

02 · How It Works

Up and Running
in Minutes

01

Pick a Provider

Sign up for OpenAI, Anthropic, or Groq and grab your API key. Groq has a free tier — no credit card needed.

02

Add the Config

Drop your API key into .env.local and add aiFeature + bodyFields to seoMetaFields() in sanity.config.ts.

03

Click Generate

Open any document in Sanity Studio. AI buttons appear next to the meta title, description, and keywords fields.

04

Edit & Publish

Review the suggestions, tweak anything you like, then save. Your SEO metadata is done in seconds.

03 · AI Providers

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 Quality

Industry-leading quality for meta titles and descriptions. Fast responses, excellent understanding of SEO context.

Modelgpt-4o-mini
Avg Cost~$2–5 / month
Env varSANITY_STUDIO_OPENAI_KEY

Anthropic

Fast & Smart

Exceptional reasoning and writing quality. Great for nuanced descriptions and keyword relevance.

Modelclaude-haiku-4-5
Avg Cost~$1–3 / month
Env varSANITY_STUDIO_ANTHROPIC_KEY

Groq

Free Tier

Blazing fast inference with a generous free tier. Perfect for getting started without any cost.

Modelllama-3.3-70b-versatile
Avg CostFree tier available
Env varSANITY_STUDIO_GROQ_KEY
04 · Configuration

Simple Setup

Three lines of config and you're done. Add your API key to .env.local and point bodyFields at your content.

01Supports multiple body fields + nested paths
02Backward compatible with bodyField (single string)
03Works with OpenAI, Anthropic, and Groq
04No data stored — your content stays in Sanity
sanity.config.ts
// 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",
    }),
  ],
});
05 · GEO Analytics

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

Auto

The 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

Checked

Meta 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

Checked

An 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

Checked

Your 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

Checked

OG 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

Auto

A 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.

4/5
Score
Almost There

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.

5/5
Ready
3–4/5
Almost
0–2/5
Needs Work
06 · Get Started

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