Introduction to Machine Learning for SEO
- Practical: Transform blog posts to social posts with OpenAI's GPT
- Practical: Rewrite titles and meta descriptions
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
APIs
In shortOpenAI's paid developer interface for using GPT, embedding, image and speech models from your own code, billed per token or per use.
The OpenAI API lets you send requests to OpenAI’s models from a script, a spreadsheet or an app instead of typing into ChatGPT. It covers text generation, embeddings, image generation, and speech-to-text with Whisper and newer transcription models. You pay for what you use, mostly by the token.
You create an account on the OpenAI platform, add billing and generate an API Key. Your code sends a request with the model name, your instructions and the input, and receives a structured response. OpenAI provides official Python and JavaScript libraries; as of 2026 its recommended endpoint for new text projects is the Responses API, with the older Chat Completions endpoint still supported.
Useful settings include the system or developer instructions, structured outputs (forcing JSON that matches a schema), tool calling, and batch processing for large jobs at a lower price.
In How to Automatically Optimize your SEO Metadata with FuzzyWuzzy and OpenAI in Google Colab, titles and meta descriptions are first compared with FuzzyWuzzy to find weak or duplicated ones; only those are sent to the OpenAI API with instructions to rewrite them. Combining a cheap rule-based filter with an LLM keeps costs down and leaves the decisions reviewable.