Skip to content

Getting API Keys for AI Models

This guide will walk you through the process of obtaining API keys from various popular AI model providers like OpenAI, Gemini, DeepSeek, Claude, and Mistral. These keys are required when using the Geekflare AI Multi AI Chat (BYOK) product to interact with AI models.

Before you start obtaining keys for AI models, here are some best practices you should follow for managing your API keys.

  • Treat API Keys Like Passwords: They grant access to your account and billable services. Keep them confidential and secure. Do not share publicly.
  • Rotate Keys Regularly: For enhanced security, consider regenerating your API keys periodically.
  • Monitor Your API Usage: Keep an eye on your API usage dashboards provided by the AI model provider. This helps you track costs, stay within quotas, and detect any unauthorized activity.
  • Understand Pricing and Quotas: Be aware of the pricing model, free tiers, rate limits, and usage quotas associated with each API to avoid unexpected charges or service disruptions.
  • Revoke Unused or Compromised Keys: If a key is no longer needed or you suspect it has been compromised, revoke or delete it immediately from the provider’s dashboard.

If you don’t have an account on OpenAI:

  • Go to Openai Platform and sign up or log in to your account.

    openai login page.png

  • Click the green ‘Start building’ button in the top-right corner.

    openai start building.png

  • Enter organization details and optionally invite team members.

    Invite members.png

  • Add the project name and give the API key a name.

    key name.png

  • A prompt will appear to purchase credits or skip for later. If credits are purchased, payment details must be added.

    add some credits.png

    add payment method.png

  • The API key will be generated. Copy and store it safely, as it won’t be shown again.

    key generation.png

If you already have an OpenAI account:

  • Click your profile picture in the top-right corner and go to Settings.

    openai click on settings.png

  • From the sidebar, select API keys.

    API Keys Openai.png

  • Click Create new secret key on the right side. Enter a name and generate the key. Copy and store it securely.

    create new secret key.png

  • Visit Google AI Studio and sign in with your Google account.

  • Navigate to the API key dashboard page.

    google ai studio.png

  • Click on “Create API Key”. Select an existing Google Cloud project or create a new one.

    gemini create api key.png

  • Once generated, your API key will be displayed. Copy it and store it securely.

    gemini api key generated.png

  • Go to Anthropic console and sign up or log in to your account.

    claude console login.png

  • Click the Get API Key button on the dashboard.

    Anthropic Dashboard.png

  • Fill in your name and choose your account type (Individual or Organization). If applicable, complete the organization details.

    add company information.png

    type of account.png

    organization details.png

  • Name your API key and select the appropriate workspace.

    create api key.png

  • Your API key will be generated. Copy and store it safely.

    save api key.png

  • Go to Deepseek platform and sign up or log in to your account.

    deepseek login.png

  • Navigate to API Keys in the left sidebar.

    deepseek api keys.png

  • Click Create new API Key.

  • Assign a name to your API key to help identify it later.

  • Click Create API key.

    deepseek api key generated.png

  • Your API key will be generated. Copy and store it securely. You won’t be able to view it again.