Get started
Quickstart
Create a key, install an SDK and get your first article back in a few minutes.
This guide takes you from a new account to a streamed article. You need an SEOsorted account and either Python 3.8 or later, Node.js 18 or later, or a terminal with cURL.
Create an API key
Open the API keys page in the console and choose Create key. Copy the key when it appears: it is shown only once. Every new organization gets $5 of free credit, so you can start without adding a card.
Set the key as an environment variable
Keep the key out of your source code. The examples in these docs read it from
SEOSORTED_API_KEY.Install an SDK
Use the official OpenAI SDK for your language. No SEOsorted package is needed.
Send your first request
Point the client at the SEOsorted base URL and send a brief as the user message.
A successful response contains the article in
choices[0].message.contentand token counts inusage.Stream the article
Long articles take time to write. Set
streamto get tokens as they are generated, and ask for usage in the final chunk.