To interact with the ShareAI API, you must generate an API Key to authenticate your requests. This guide walks you through the steps to create an API key and configure it for your needs.
Step 1: Log into Your ShareAI Account #
Before generating an API key, ensure you have a ShareAI account. If you don’t have one, sign up here.
Step 2: Access the API Key Management Section #
- Navigate to your ShareAI Dashboard.
- Go to the Your API Keys section.
- Click on the Plus (+) sign or use this direct link: Create API Key.
Step 3: Configure Your API Key #
- Give your API key a name – This helps you recognize and manage multiple keys easily.
- Select AI models – Choose the AI models this API key can query.
- You can prioritize models so ShareAI will attempt the first one, then move to the next if needed.
Step 4: Generate the API Key #
Click Create API Key, and ShareAI will generate a unique key for you.
Step 5: Copy & Use Your API Key #
- Locate the newly created key in the API Keys section.
- Click on the key to reveal and copy it.
- Paste it into your application’s authentication header as follows:
Authorization: Bearer YOUR_SHAREAI_API_KEY
Important Notes #
- Keep your API key secure – Do not share or expose it in public repositories.
- If you lose access to your key, generate a new one and update your application.
You’re now ready to start using the ShareAI API! Check out our API Reference for details on available endpoints.