System Requirements
Before installing the SDK, ensure you have:- Python 3.7 or higher
- Internet connection for API access
- Imagen AI API key (see below)
Install the SDK
Get Your API Key
To use the Imagen AI SDK, you’ll need an API key:Sign up for Imagen AI
Create an account at imagen-ai.com
Request API access
Contact support via support.imagen-ai.com with your account email to request your API key.
Test Your Setup
Verify that everything is working correctly by testing your API connection:Replace
"your_api_key" with your actual API key, or use os.getenv("IMAGEN_API_KEY") to read from the environment variable.Using Environment Variables in Code
The recommended approach is to read the API key from environment variables:Troubleshooting
Import Error
- Install the package:
pip install imagen-ai-sdk - Check you’re using the correct Python environment
- Try:
pip install --upgrade imagen-ai-sdk
Authentication Error
- Double-check that your API key is correct
- Make sure you’ve contacted support to activate your key
- Verify environment variable is set:
echo $IMAGEN_API_KEY
Version Check
To check your installed SDK version:Next Steps
Now that you have the SDK installed and configured, you’re ready to start editing photos!Quick Start Guide
Learn how to edit your first photos with the
quick_edit function