Getting AI API Keys

This guide provides official documentation links and instructions for obtaining API keys from major AI platforms. These keys will give you access to current models and capabilities for integration into other products. You may find instructions for configuring selfhost AI features here: AI

Overview

Getting API keys from AI platforms typically involves:

  1. Creating an account or logging into an existing one

  2. Navigating to the API section

  3. Generating or retrieving your API key

  4. Setting up billing (for paid services)

Caution: Ensure your API keys have access to current models, certain vendors may tier-lock advanced models for API access.


1. Claude (Anthropic)

Anthropic's Claude models are available through their API platform with various model versions. Used for general conversation, coding and agentic planning & orchestration in AFFiNE

Getting Started

  • Platform: Anthropic Console

  • Account Required: Yes (with credits for API usage)

  • Pricing: Credit-based system

Official Documentation

Quick Steps

  1. Create an account at https://console.anthropic.com/

  2. Add credits to your account

  3. Generate your API key

  4. Configure access permissions

2. OpenAI

OpenAI provides access to GPT models, DALL-E, and other AI capabilities through their API. Used for short text composing and image generation in AFFiNE

Getting Started

  • Platform: OpenAI Platform

  • Account Required: Yes (with payment method for API usage)

  • Pricing: Pay-per-use model

Quick Steps

  1. Sign up or log in at https://platform.openai.com

  2. Navigate to API keys section https://platform.openai.com/account/api-keys

  3. Generate a new API key

  4. Set up billing for API usage https://platform.openai.com/settings/organization/billing/overview


3. Gemini (Google AI Studio)

Google's Gemini models are accessible through AI Studio, offering a free tier for getting started. Used for transcribing and semantic indexing (embedding) in AFFiNE

Getting Started

  • Platform: Google AI Studio

  • Account Required: Google account

  • Pricing: Free tier available with limitations

Quick Steps

  1. Sign in with your Google account at https://aistudio.google.com/

  2. Navigate to API key section https://aistudio.google.com/apikey

  3. Generate your free API key

  4. Review usage limits and upgrade if needed


4. Exa.ai

Exa.ai is a search platform designed to find and retrieve information using AI-powered queries, accessible via its API. Used for internet search in AFFiNE

Getting Started

  • **Platform:**Exa Dashboard

  • **Account Required:**Yes

  • Pricing: Free tier available with a credit system for further usage.

Official Documentation

Quick Steps

  1. Sign up or log in athttps://dashboard.exa.ai/.

  2. Navigate to the "API Keys" section in the dashboard. https://dashboard.exa.ai/api-keys

  3. Click to create a new API key. And handle billing.

  4. Copy and store your key securely, as it is only displayed once upon creation.


5. Unsplash

Unsplash provides a massive library of high-quality, freely usable images accessible via their API. This is ideal for integrating dynamic, professional photography into AI outputs. Used for enriching slides and html generation in AFFiNE

Getting Started

  • Platform: Unsplash Developers

  • Account Required: Yes (a free Unsplash account)

  • Pricing: A free tier is available for development and low-traffic use, with higher rate limits for production applications upon approval.

Official Documentation

Quick Steps

  1. Log into your Unsplash account athttps://unsplash.com/join.

  2. Navigate to the "Your Apps" section of your account settings or go tohttps://unsplash.com/oauth/applications.

  3. Click "New Application" and accept the API terms.

  4. Fill out the application details (name and description).

  5. Once your app is created, you will find your Access Key and Secret Key under the "Keys" section.


Important Security Notes

  • Never share your API keys publicly

  • Rotate keys regularly for security

  • Monitor usage to avoid unexpected charges

  • Set up usage limits where available