Back to blog
AIGuides & Tutorials

How to Get Your Cohere API Key

Learn how to find and get your cohere api key from the cohere dashboard

Saurabh RaiSaurabh Rai

Saurabh Rai

4 min read
How to Get Your Cohere API Key

Cohere provides enterprise-grade language models through a straightforward API access system. This guide covers everything from obtaining your API key to understanding rate limits and pricing structures.

Cohere's Core Offerings

Screenshot 2025-09-24 at 07.51.39@2x

Before diving into API setup, understand what Cohere brings to the table:

  • Command Models: Text generation and conversation capabilities for chatbots, content creation, and summarization
  • Embed Models: Create semantic embeddings for search, classification, and clustering tasks
  • Rerank: Improve search relevance by reordering results based on semantic similarity
  • Classify: Fine-tuned classification endpoints for specific use cases
  • Connectors: Integration with external data sources for retrieval-augmented generation

API Key Types: Trial vs Production

Cohere offers two distinct API key types, each serving different purposes:

Trial Keys

  • Automatically generated upon account creation
  • Free to use for testing and development
  • Limited to 1,000 total API calls per month across all endpoints
  • Perfect for prototyping and initial integration testing

Production Keys

  • Requires billing setup through the dashboard
  • No monthly call limits
  • Higher rate limits suitable for production workloads
  • Pay-as-you-go pricing based on actual usage

Step-by-Step: Getting Your Cohere API Key

Step 1: Create Your Account

Navigate to dashboard.cohere.com and sign up using either email or Google authentication. The registration process takes under a minute.

Step 2: Access the Dashboard

Screenshot 2025-09-24 at 07.50.03@2x

Upon successful registration, Cohere automatically creates a trial API key for your account. You'll be redirected to the main dashboard where your key awaits.

Step 3: Locate Your API Key

Screenshot 2025-09-24 at 07.58.49@2x

Find the "API Keys" section in the dashboard sidebar. Your trial key will be displayed here, ready to copy with a single click.

Step 4: Generate Additional Keys (Optional)

Click "Create API Key" to generate additional keys for different environments or applications. Name each key descriptively (e.g., "development", "staging", "production") for better organization.

Step 5: Upgrade to Production (When Ready)

Navigate to the billing section in your dashboard settings. Add payment information and switch to a production key when your application requires higher limits.

Understanding Rate Limits

Screenshot 2025-09-24 at 07.55.21@2x

Rate limits vary significantly between trial and production keys:

Trial Key Limits (per minute):

  • Chat endpoints: 20 requests
  • Generate endpoints: 20 requests
  • Embed endpoints: 100 requests
  • Classify endpoints: 20 requests
  • Rerank endpoints: 20 requests
  • Monthly total: 1,000 API calls

Production Key Limits (per minute):

  • Chat endpoints: 10,000 requests
  • Generate endpoints: 10,000 requests
  • Embed endpoints: 10,000 requests
  • Classify endpoints: 10,000 requests
  • Rerank endpoints: 10,000 requests
  • Monthly total: Unlimited

Pricing Structure

Cohere operates on a transparent pay-as-you-go model for production usage:

Command Models:

  • Command R: $0.15 per million tokens
  • Command R+: $3 per million tokens
  • Command R+ 08-2024: $2.50 per million tokens

Embed Models:

  • Embed v3: $0.10 per million tokens
  • Multilingual embeddings available at same pricing

Rerank:

  • $2 per 1,000 search queries

Fine-tuning:

  • Custom pricing based on dataset size and training requirements
  • Contact sales for enterprise fine-tuning options

Trial keys include free monthly credits sufficient for development and testing. Production usage is billed monthly based on actual token consumption.

Security Best Practices

  1. Never commit API keys to version control - Use environment variables or secret management services
  2. Rotate keys regularly - Generate new keys quarterly and update your applications
  3. Use separate keys for different environments - Maintain distinct keys for development, staging, and production
  4. Monitor usage patterns - Check your dashboard regularly for unexpected activity
  5. Implement key restrictions - Where possible, limit keys to specific IP addresses or domains

Testing Your API Key

Verify your setup with this basic test (requires Python):

import cohere

co = cohere.Client('YOUR_API_KEY')
response = co.generate(
    model='command',
    prompt='Hello, Cohere!',
    max_tokens=20
)
print(response.generations[0].text)

If successful, you'll receive a response confirming your API key works correctly.

Moving to Production

When your application outgrows trial limits:

  1. Analyze your usage patterns in the dashboard analytics section
  2. Estimate production costs using Cohere's pricing calculator
  3. Add billing information through dashboard settings
  4. Generate a production API key
  5. Update your application's environment variables
  6. Monitor initial production usage closely

Next Steps

With your API key configured, explore Cohere's comprehensive documentation at docs.cohere.com for detailed integration guides, SDK references, and advanced features such as fine-tuning and custom models.

Ready to get started?

Scale your integration strategy and deliver the integrations your customers need in record time.

Ready to get started?
Talk to an expert

Trusted by fast-moving product & engineering teams

Nmbrs
Benefex
Invoice2go by BILL
Trengo
Ponto | Isabel Group
Apideck Blog

Insights, guides, and updates from Apideck

Discover company news, API insights, and expert blog posts. Explore practical integration guides and tech articles to make the most of Apideck's platform.

Top API Integration Tools in 2025
Unified APIGuides & Tutorials

Top API Integration Tools in 2025

This article breaks down API integration tools, from iPaaS to unified APIs and marketplaces, showing how they save months of development, cut complexity, and help companies scale faster. With real-world examples, it’s a clear guide to choosing the right tool for your business growth.

Kateryna Poryvay

Kateryna Poryvay

17 min read
REST vs. SOAP APIs
Guides & Tutorials

REST vs. SOAP APIs

Learn the real differences between REST, SOAP, and GraphQL APIs with practical code examples, performance metrics, and when to actually use each one.

Saurabh Rai

Saurabh Rai

8 min read
Building Expense Integrations for Microsoft Business Central API
Unified APIGuides & TutorialsAccounting

Building Expense Integrations for Microsoft Business Central API

Master Microsoft Business Central expense API integration with practical examples, authentication setup, and purchase invoice management. Learn how unified APIs can reduce weeks of complex integration work to days.

Saurabh Rai

Saurabh Rai

9 min read