Skip to main content

Get Your API Key

Before you can use the Sqwish API, you’ll need to get an API key.

Get API Key

Visit our demo site to sign up and get your API key.

API Key Management

Once you have your API key, you can manage it through your dashboard:
  • View usage: Monitor your API calls and token usage
  • Regenerate keys: Create new keys if needed
  • Set limits: Configure rate limits and usage alerts

Installation

Below are the instructions to install and initialize the Sqwish client library in your preferred language:
  • Python
  • JavaScript
  • cURL
pip install sqwishai

# Then set your API key as an environment variable or in your code:
# import os
# os.environ["SQWISH_API_KEY"] = "YOUR_API_KEY"

Environment Variables

Set your API key as an environment variable:

Linux/macOS

export SQWISH_API_KEY=your_api_key_here

Windows

set SQWISH_API_KEY=your_api_key_here

Using .env file

Create a .env file in your project root:
SQWISH_API_KEY=your_api_key_here
Then load it in your application:
  • Python
  • JavaScript
from dotenv import load_dotenv
import os

load_dotenv()  # Load environment variables from .env file
api_key = os.getenv("SQWISH_API_KEY")

Pricing & Limits

Free Tier

  • 100 requests per hour
  • Perfect for testing and small projects
  • No credit card required

Pro Tier

  • 10,000 requests per hour
  • Priority support
  • Advanced features

Enterprise

  • Custom limits
  • Dedicated support
  • SLA guarantees
All plans include the same API features. The difference is in rate limits and support levels.

Quick Test

Once you have your API key set up, you can test it with a simple request:
  • Python
  • JavaScript
  • cURL
from sqwishai import Sqwish
import os

# Initialize the client
sqwish_client = Sqwish(os.environ.get("SQWISH_API_KEY"))

# Test with a simple prompt
test_prompt = "Hello, this is a test prompt."
response = sqwish_client.text.optimize(test_prompt)

print(f"Original: {test_prompt}")
print(f"Optimized: {response}")

Next Steps

Once you have your API key set up and tested, you can proceed to the Getting Started guide to learn how to use the API for more complex scenarios.