AI Services
This WordPress plugin introduces central infrastructure which allows other plugins to make use of AI capabilities. It exposes APIs that can be used in various contexts, whether you need to use AI capabilities in server-side or client-side code. Furthermore, the APIs are agnostic of the AI service – whether that’s Anthropic, Google, or OpenAI, to only name a few, you can use any of them in the same way. You can also register your own implementation of another service, if it is not supported out of the box. The plugin does intentionally not come with specific AI driven features built-in, except for an AI Playground screen to explore AI capabilities as well as a settings screen to configure AI service credentials. The purpose of this plugin is to facilitate use of AI by other plugins. As such, it is a perfect use-case for plugin dependencies. Here’s a (non-comprehensive) feature list: Abstraction layer and APIs to communicate with any AI service in a uniform way APIs are available in both PHP and in JavaScript, as well as via the WordPress REST API and WP-CLI commands Currently supports the following AI capabilities (with more on the way!): text generation (including text streaming for more immediate feedback to users) text chats with history multimodal input function calling image generation AI Playground administration screen (in the Tools menu) allows exploring the different AI capabilities Explore all AI capabilities supported by the plugin via user interface Select which AI service and model to use and set a few advanced configuration parameters Define your own function declarations used for AI function calling Generate images and save them to the WordPress media library Exchange the AI service or model on the fly to continue a chat started with one model with another one AI Services settings screen to configure services with API credentials Built-in AI service implementations Anthropic (Claude) Google (Gemini, Imagen) Mistral OpenAI (GPT, Dall-E) Perplexity (Sonar) xAI (Grok) Browser (client-side only; experimental support for Chrome’s built-in AI APIs and Edge’s built-in AI APIs) Additional AI service integrations can be registered and will then be available in the same way as built-in ones Disclaimer: The AI Services plugin is still in its early stages, with a limited feature set and more being added. A crucial part of refining the plugin is shaping the APIs to make them easy to use and cover the different generative AI capabilities that the AI services offer in a uniform way. That’s why your feedback is much appreciated! Why? A centralized AI infrastructure facilitates user choice. Users may prefer certain AI services over other ones, and for many common tasks, either of the popular AI services is suitable. Having a common API regardless of the AI service allows leaving the choice to the user, rather than the plugin author. Since the centralized AI infrastructure comes with a common API that works the same for every AI service, it means plugin developers don’t have to spend as much time familiarizing themselves with different services, at least when it comes to simple tasks. For tasks where certain services may have advantages over others, there is still flexibility to focus on a specific AI service. It also means no more reinventing the wheel: Since most AI services do not provide PHP SDKs for their APIs, many times this means WordPress plugins that want to leverage AI have to implement their own layer around the service’s API. Not only is that time consuming, it also distracts from working on the actual (AI driven) features that the plugin should offer to its users. In fact this directly facilitates the user choice aspect mentioned, as having APIs for various AI services already provided means you can simply make those available to your plugin users. Having central AI infrastructure available unlocks AI capabilities for smaller plugins or features: It may not be worth the investment to implement a whole AI API layer for a simple AI driven feature, but when you already have it available, it can lead to more plugins (and thus more users) benefitting from AI capabilities. Last but not least, a central AI infrastructure means users will only have to configure the AI API once, e.g. paste their API keys only in a single WordPress administration screen. Without central AI infrastructure, every plugin has to provide its own UI for pasting API keys, making the process more tedious for site owners the more AI capabilities their site uses. Integration with third party services While the plugin APIs allow registering custom AI services, the plugin comes with a few popular AI services built-in. These AI services rely on the respective third party API. Their use is optional and it is up to you to choose which third party service you would like to use or whether you would like to use multiple. The use of the third party AI services is subject to the respective terms of service. The following third party services are supported out of the box: Anthropic (Claude) Anthropic Consumer Terms of Service Anthropic Commercial Terms of Service Anthropic Privacy Policy Google (Gemini, Imagen) Google Terms of Service Google AI Terms of Service Google Privacy Policy Mistral Mistral Terms of Service Mistral Privacy Policy OpenAI (GPT, Dall-E) OpenAI Terms of Use OpenAI Privacy Policy Perplexity (Sonar) Perplexity Terms of Service Perplexity Privacy Policy xAI (Grok) xAI Terms of Service – Consumer xAI Terms of Service – Enterprise xAI Privacy Policy Code examples for using the API Generate the answer to a prompt in PHP code: use Felix_Arntz\AI_Services\Services\API\Enums\AI_Capability; use Felix_Arntz\AI_Services\Services\API\Helpers; if ( ai_services()->has_available_services() ) { $service = ai_services()->get_available_service(); try { $candidates = $service ->get_model( array( 'feature' => 'my-test-feature', 'capabilities' => array( AI_Capability::TEXT_GENERATION ), ) ) ->generate_text( 'What can I do with WordPress?' ); $text = Helpers::get_text_from_contents( Helpers::get_candidate_contents( $candidates ) ); echo $text; } catch ( Exception $e ) { // Handle the exception. } } Generate the answer to a prompt in JavaScript code: const helpers = aiServices.ai.helpers; const { hasAvailableServices, getAvailableService } = wp.data.select( 'ai-services/ai' ); if ( hasAvailableServices() ) { const service = getAvailableService(); try { const candidates = await service.generateText( 'What can I do with WordPress?', { feature: 'my-test-feature' } ); const text = helpers.getTextFromContents( helpers.getCandidateContents( candidates ) ); console.log( text ); } catch ( error ) { // Handle the error. } } Generate the answer to a prompt using WP-CLI: wp ai-services generate-text "What can I do with WordPress?" --feature=my-test-feature You can also use a specific AI service, if you have a preference, for example the google service. Generate the answer to a prompt using a specific AI service, in PHP code: use Felix_Arntz\AI_Services\Services\API\Enums\AI_Capability; use Felix_Arntz\AI_Services\Services\API\Helpers; if ( ai_services()->is_service_available( 'google' ) ) { $service = ai_services()->get_available_service( 'google' ); try { $candidates = $service ->get_model( array( 'feature' => 'my-test-feature', 'capabilities' => array( AI_Capability::TEXT_GENERATION ), ) ) ->generate_text( 'What can I do with WordPress?' ); $text = Helpers::get_text_from_contents( Helpers::get_candidate_contents( $candidates ) ); echo $text; } catch ( Exception $e ) { // Handle the exception. } } Refer to the plugin documentation for granular examples including explainers. For complete examples such as entire plugins built on top of the AI Services infrastructure, please see the examples directory on GitHub.
Top keywords
- ai65×5.32%
- service34×2.78%
- services30×2.46%
- ai services20×1.64%
- api15×1.23%
- text15×1.23%
- ai service12×0.98%
- ai capabilities10×0.82%
- apis10×0.82%
- capabilities10×0.82%
- helpers10×0.82%
- terms10×0.82%
GEO Plugin by Squirrly SEO
Become the Brand AI Recommends. GEO Plugin by Squirrly SEO helps your WordPress site become easier for AI answer engines to understand, trust, cite, and recommend — across ChatGPT, Perplexity, Claude, Gemini, and Google AI Overviews. The GEO Plugin by Squirrly SEO optimizes your WordPress site for the three layers of modern search at once: classic SEO so you rank on Google, AEO (Answer Engine Optimization) so AI engines pull your content as the direct answer, and GEO (Generative Engine Optimization) so ChatGPT, Perplexity, Gemini, Claude and Google AI Overviews cite your pages by name. One plugin to get you found by both search engines and AI. Why GEO and AEO matter now Search is splitting in two. People still type into Google, but more and more they just ask an AI. Google AI Overviews now appear on a large share of results and reduce clicks to the classic blue links, while ChatGPT, Perplexity and Gemini answer hundreds of millions of questions every week, usually by quoting a few trusted sources. Traditional SEO gets your page indexed. AEO and GEO get your page chosen as the answer and cited. The GEO Plugin by Squirrly SEO does all three, so you do not have to choose. AEO and GEO features GEO/AEO Audit – scores how ready each page is to be cited by AI: a direct-answer block near the top, question-style headings, lists and tables, content depth, freshness, and FAQ / HowTo / Article schema. AI crawler control – decide how GPTBot, ClaudeBot, PerplexityBot, Google-Extended and other AI bots can access your content, straight from your robots rules. llms.txt and llms-full.txt – generate, upload and serve the emerging llms.txt standard so generative engines understand your best content. LLM Indexing – push new and updated URLs to the IndexNow API and the Google Indexing API so search and AI engines discover them fast. Answer-ready Schema / structured data – FAQ, HowTo, Article, Q&A, Organization and more: the machine-readable formats AI engines lift word for word. Inner Links and Link Opportunities – build topical authority by linking the right pages for the right keywords. SEO features Focus Pages – see exactly why a page is not ranking and what to fix, page by page. AI Keyword Research – find keywords you can actually rank for, with real competition and search-intent analysis. Live Assistant – real-time, on-page optimization guidance as you write in Gutenberg, Elementor, Divi and other builders. SEO Goals – a guided, prioritized plan of what to do next. Technical SEO on autopilot – XML sitemaps, canonical links, meta robots, Open Graph and Twitter / X cards, redirects and favicons. Audits and tracking – SERP and rank tracking, traffic, authority and backlink audits, plus competitor analysis. Built for how AI reads the web AEO and GEO reward content that is easy for a machine to extract: a clear answer up front, headings phrased as the questions people ask, lists and tables instead of walls of text, accurate schema, and a fresh last-updated date. Squirrly checks every one of these for you and tells you exactly what to fix, so the same work that helps you rank on Google also helps you get quoted by AI. Getting started in 3 steps Install and activate the plugin, then connect your free Squirrly account to unlock the cloud tools (audits, keyword research, rank tracking). Add your important pages to the GEO/AEO Audit. Squirrly scores each page for SEO and answer-readiness and gives you a prioritized “fix these first” list. Turn on the AEO/GEO essentials: generate your llms.txt, allow the AI crawlers you want, and switch on LLM Indexing so new and updated URLs are pushed to search and AI engines automatically. Works with your stack Gutenberg, Elementor, Divi, WooCommerce, WordPress Multisite, WPML, and PHP 7.0 to 8.x. Migrate safely Import your existing SEO data from Rank Math, Yoast, All in One SEO, SEO Framework, SEO Press, SEO Pressor, Add Meta Tags, Greg’s High Performance SEO, HeadSpace2, Platinum SEO Pack, SEO Title Tags and SEO Ultimate. Trusted worldwide Built by Squirrly Limited (United Kingdom) since 2012, used in 150+ countries, and a multiple-time award-winning SEO tool. Powered by Squirrly’s own AI from AISQ.com: Ranking Vision AI, Keyword Research AI and Ask AI. BENEFITS / CUSTOMER SUCCESS / ALL FEATURES / LIVE DEMO What’s Next If you like our WordPress SEO plugin, then consider checking out our other projects: Squirrly Social – One Year of Social Media Posts in a Flash. Starbox PRO – Your Authors Will Shine Like Stars. Squirrly SPY – Your Competitor’s SEO Growth. In Your Hands.. Education Cloud PLUS – It’s like Netflix for Marketing Education. RankJumps – Managed SEO. Done-for-you by Experts from Squirrly. Learning Solutions by Squirrly – Teach Online. Starting Tomorrow. Hide My WP Ghost – WordPress Security Layer and Security Enhancements. WordPress Developers Page – Innovations and Partnerships. Plugins – Other Plugins created by Squirrly. Credits Florin Muresan – CEO at Squirrly Calin Vingan – CTO at Squirrly Sorel Nagy – Developer Andreea Leau – VP Marketing Cristina Leau – Squirrly mascot designer Alexandra Nicola – COO at Squirrly Teodora Vingan – SEO Analyser Irina Pogor – Content Writer Ana Darstaru – Chief of Customer Service Lucian Nertan – VP of Agency Rares Papita – CHO Investors Ibrahim Evsan, serial entrepreneur, one of the best known bloggers in Germany Philipp Kandal, co-Founder and CTO of Skobbler (recently acquired for $24M by Telenav) Many Thanks. License Squirrly is Free to use. The version from the WP directory will install the Free Version. You’ll be able to use this seo software once you install the plugin and use your email to connect to Squirrly.co For higher content marketing and SEO needs, you can check our Official Site and see what the PRO Plan offers.