Introduction
Get started with the JigsawStack Python SDK to build powerful AI applications
Models
Explore our complete list of models and API references here.
Prerequisites
Before you begin, you’ll need:
- A JigsawStack account
- Your API key from the JigsawStack dashboard
- Python 3.7 or higher installed on your system
The SDK is compatible with Python 3.7+ and works on all major operating systems (Windows, macOS, and Linux).
Installation
Install the JigsawStack Python SDK using pip:
Authentication
There are two ways to authenticate with the JigsawStack API:
Option 1: Environment Variable (Recommended)
Set your API key as an environment variable:
Or in your project’s .env
file:
Then initialize the SDK without explicitly providing the API key:
Option 2: Direct Initialization
Provide your API key directly when initializing the SDK:
Basic Usage
Here’s a quick example of using the AI web scraper to extract information from an Amazon product page:
Response Handling
JigsawStack returns structured data as Python dictionaries. Here’s how to handle the response:
More Examples
Sentiment Analysis
Text Translation
Text to Speech
Next Steps
Now that you’ve set up the JigsawStack Python SDK, you can:
- Explore the complete API reference to discover all available models
- Try out different AI capabilities like image generation, OCR, and more
- Join our Discord for help and to share your projects
Start building powerful AI applications with JigsawStack today!