DeepSwapAI Logo - Professional Face Swap Platform
Deep Swap AI

API Authentication

All DeepSwapAI API requests require authentication using an API key. This guide explains how to obtain and use your API key securely.

Getting Your API Key

  1. 1

    Create an Account

    Sign up at deepswapai.com/signup if you haven't already.

  2. 2

    Navigate to API Settings

    Go to your dashboard and click "API Settings" in the sidebar navigation.

  3. 3

    Generate Your Key

    Click "Generate New API Key" and securely store the key. You won't be able to see it again.

Using Your API Key

Include your API key in the Authorization header of every request:

curl -X POST https://api.deepswapai.com/v1/image-swap \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source_image": "...", "target_image": "..."}'

Rate Limits

PlanRequests/MinuteRequests/Day
Free10100
Pro605,000
EnterpriseUnlimitedUnlimited

Security Best Practices

  • Never expose your API key in client-side code or public repositories
  • Use environment variables to store your API key
  • Rotate keys periodically and immediately if compromised
  • Use IP allowlisting for production environments (Enterprise)

Ready to Make Your First API Call?

Now that you're authenticated, explore our API endpoints to start integrating face swap into your application.

View API Endpoints →