Site Key Error: ' . esc_html( $test['error'] ) . '

'; unset( $opts['site_token'] ); } else { $opts['site_token'] = $newKey; echo '

Site Key saved. Pro mode activated!

'; } update_option( AISSP_SETTINGS_SLUG, $opts ); $token = $opts['site_token'] ?? ''; $mode = aissp_active_mode(); } elseif ( $_POST['aissp_action'] === 'aissp_save_seo_settings' ) { $mc = sanitize_text_field( wp_unslash( $_POST['model_choice'] ?? 'gpt-4-turbo' ) ); $opts['model_choice'] = $mc; $opts['custom_prompt'] = sanitize_textarea_field( wp_unslash( $_POST['custom_prompt'] ?? '' ) ); $opts['auto_slug'] = ( isset($_POST['auto_slug']) && $_POST['auto_slug'] === 'yes' ) ? 'yes' : 'no'; foreach ( [ 'post','page','landing_page','category','post_tag','product_cat','product_tag' ] as $k ) { $raw = isset( $_POST["index_$k"] ) ? sanitize_text_field( wp_unslash( $_POST["index_$k"] ) ) : 'no'; $opts["index_$k"] = in_array( $raw, [ 'yes','no' ], true ) ? $raw : 'no'; } update_option( AISSP_SETTINGS_SLUG, $opts ); $model = $mc; echo '

Settings saved.

'; } } /* ───────────── PRO: TOKEN / USAGE ───────────── */ $usage = $limit = $remain = $site_usage = null; $membership = 'free'; $allowed_models = ['gpt-4-turbo']; $is_pro = $mode === 'pro'; if ( $token && $is_pro ) { $st = aissp_check_token_status( $token ); if ( ! isset( $st['remaining_total'] ) ) { $fb = (int)($st['free_balance'] ?? 0); $pr = (int)($st['plan_remaining'] ?? 0); $pb = (int)($st['pack_balance'] ?? 0); if ( ($fb + $pr + $pb) > 0 ) { $st['remaining_total'] = $fb + $pr + $pb; } } if ( empty( $st['error'] ) ) { $site_usage = (int)($st['site_usage'] ?? 0); $limit = (int)( $st['plan_limit_total'] ?? $st['plan_limit'] ?? $st['token_limit'] ?? 0 ); $usage_total = null; $remain_total = null; foreach ( ['usage_total','all_usage','total_usage','token_usage','usage'] as $k ) { if ( isset($st[$k]) ) { $usage_total = (int)$st[$k]; break; } } foreach ( ['remaining_total','remaining_all','global_remaining'] as $k ) { if ( isset($st[$k]) ) { $remain_total = (int)$st[$k]; break; } } if ( $remain_total === null && isset($st['remaining']) ) { $remain_total = (int)$st['remaining']; } if ( $usage_total === null && $limit > 0 && $remain_total !== null ) { $usage_total = max( 0, $limit - $remain_total ); } if ( $remain_total === null && $limit > 0 && $usage_total !== null ) { $remain_total = max( 0, $limit - $usage_total ); } if ( $usage_total === null ) { $usage_total = max( 0, (int)$site_usage ); } $usage = (int)$usage_total; $remain = aissp_status_remaining( $st ); if ( ! empty( $st['allowed_models'] ) && is_array( $st['allowed_models'] ) ) { $allowed_models = array_values( array_unique( array_map( 'strval', $st['allowed_models'] ) ) ); } $membership = strtolower( trim( $st['membership'] ?? 'free' ) ); } $gate = [ 'free' => ['gpt-4-turbo'], 'starter' => ['gpt-4-turbo','gpt-4.1'], 'creator' => ['gpt-4-turbo','gpt-4.1','gpt-4o'], 'expert' => ['gpt-4-turbo','gpt-4.1','gpt-4o'], ]; if ( isset($gate[$membership]) ) { $allowed_models = $gate[$membership]; } if ( ! in_array($model, $allowed_models, true) ) { $model = 'gpt-4-turbo'; $opts['model_choice'] = $model; update_option( AISSP_SETTINGS_SLUG, $opts ); } } $trial_remaining = (int)( $opts['trial_remaining'] ?? 0 ); $byok_key_masked = ''; if ( ! empty( $opts['openai_key'] ) ) { $k = $opts['openai_key']; $byok_key_masked = substr($k, 0, 7) . '...' . substr($k, -4); } /* ───────────── INDEX DEFAULTS ───────────── */ $index_defaults = [ 'post' => 'yes', 'page' => 'yes', 'landing_page'=> 'yes', 'category' => 'yes', 'post_tag' => 'no', 'product_cat' => 'yes', 'product_tag' => 'no', ]; $index_labels = [ 'post' => 'Post', 'page' => 'Page', 'landing_page'=> 'Landing Page', 'category' => 'Category', 'post_tag' => 'Post Tag', 'product_cat' => 'Product Category', 'product_tag' => 'Product Tag', ]; /* ───────────── BUY TOKENS BUTTON ───────────── */ if ( $membership === 'free' ) { $token_btn_label = 'GET PREMIUM NOW'; $token_btn_url = 'https://rankpilotai.com/ai-snippet-seo-pro-pricing/'; } else { $token_btn_label = 'BUY TOKENS'; $token_btn_url = 'https://rankpilotai.com/tokens/?plugin=ai-snippet-seo-pro'; } ?>
AI Snippet SEO Pro

AI Snippet SEO Pro

Standalone SEO Snippet Generation

MODE v

Getting Started

Choose how you want to generate SEO snippets for your posts.

FREE

Free Trial

Start instantly with 25 free snippet generations. No API key needed.

  • 25 lifetime tokens
  • GPT-4 Turbo model
  • Single post generation
  • SEO snippet score
  • No bulk generation
  • No custom prompt
  • No auto-slug

No credit card required

UNLIMITED

Your Own API Key

Use your own OpenAI API key. You pay OpenAI directly, we don't touch your key.

  • Unlimited generations
  • GPT-4.1 Mini model
  • Single post generation
  • SEO snippet score
  • No bulk generation
  • No custom prompt
  • No auto-slug

Your key stays on your server

PRO

RankPilotAI Pro

Full power: bulk generate, auto-slug, custom prompts, all models, index/noindex control.

  • No API key needed
  • Bulk generation
  • Auto-Slug replacement
  • All models (Turbo/4.1/4o)
  • Custom prompt
  • Index/Noindex control
  • Priority support

Get a Site Key

Free Trial Active

of 25 tokens remaining

/ 25

Your trial tokens are used up. Choose one of these options to continue:

Upgrade to Pro

OpenAI API Key Active

Unlimited single post generations

Pro Mode Active

Full access to all features

Connected
Website
Used
Limit
Remaining
% used

SEO Snippet Settings

Configure how AI generates SEO snippets for your posts.

AI Model

BYOK mode uses GPT-4.1 Mini for optimal cost. Model selection is hidden as it routes directly to OpenAI.

Custom Prompt

PRO

A base prompt already ensures SEO compliance. Add tone or extra instructions here.

Add custom tone or style instructions to your snippet generation.

Available with Pro

Auto-update URL Slug

PRO

Automatically replace URL slugs with AI-optimized, keyword-rich alternatives.

Available with Pro

Index / Noindex Settings

PRO

Control which content types are indexed by search engines.

$lab ) : $val = $opts["index_$k"] ?? $index_defaults[$k]; ?>

Control index/noindex settings for posts, pages, taxonomies and custom post types.

Available with Pro

Feature Comparison

See what's available in each mode.

Feature Free Trial Own API Key Pro
No API Key Needed ✓ ✕ Your OpenAI key ✓ We handle it
Single Post Generation ✓ ✓ ✓
Bulk Generation ✕ ✕ ✓
Auto-Slug Replacement ✕ ✕ ✓
Index / Noindex Control ✕ ✕ ✓
SEO Snippet Score ✓ ✓ ✓
AI Models Turbo Mini Turbo / 4.1 / 4o
Custom Prompt ✕ ✕ ✓
Generations 25 lifetime Unlimited Plan-based