Skip to main content

Prerequisites

Python 3.12+

Required for SDK

API Key

From your dashboard

Organization ID

Your org UUID
API keys and Organization IDs are covered in the Get Started section.

1. Install the SDK

2. Set Your API Key

3. Create Your First Dataset

Create first_dataset.py:

4. Run the Script

Expected output:

Understanding the Code

  • Client Initialization: Client(ORGANIZATION_ID) connects using your API key
  • Dataset Creation: Specifies model, sample count, and generation parameters
  • Waiting: dataset.wait() blocks until generation completes
  • Downloading: Saves the generated dataset locally

Common Patterns

Error Handling

Next Steps

Python SDK Guide

Complete SDK documentation and advanced features

Code Examples

Advanced patterns and real-world use cases

API Reference

Complete method and class documentation

Model Catalog

Browse available AI models

Quick Reference