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( AISH_OPT_KEY, $opts ); $token = $opts['site_token'] ?? ''; $mode = aish_active_mode(); } elseif ( $aish_action === 'aish_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']) && sanitize_key( wp_unslash( $_POST['auto_slug'] ) ) === 'yes' ) ? 'yes' : 'no'; update_option( AISH_OPT_KEY, $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 ) { try { $st = aish_check_token_status( $token, true ); } catch (Throwable $e) { $st = aish_check_token_status( $token ); } 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; foreach ( ['usage_total','all_usage','total_usage','token_usage','usage'] as $k ){ if ( isset($st[$k]) ) { $usage_total = (int)$st[$k]; break; } } if ( $usage_total === null ) $usage_total = max(0, (int)$site_usage); $remain = aish_status_remaining( $st ); $usage = (int)$usage_total; 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( AISH_OPT_KEY, $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); } ?>
AI Snippet SEO Helper

AI Snippet SEO Helper

Rank Math SEO Integration

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.

  • No API key needed
  • Bulk generation
  • Auto-Slug replacement
  • All models (Turbo/4.1/4o)
  • Custom prompt
  • SEO snippet score
  • 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

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 ✕ ✕ ✓
SEO Snippet Score ✓ ✓ ✓
AI Models Turbo Mini Turbo / 4.1 / 4o
Custom Prompt ✕ ✕ ✓
Generations 25 lifetime Unlimited Plan-based