Complete API reference for the Sinkove Python SDK
Property | Type | Description |
---|---|---|
id | uuid.UUID | Organization ID |
organization_name | str | Organization name |
datasets | DatasetClient | Dataset operations interface |
Property | Type | Description |
---|---|---|
id | uuid.UUID | Unique dataset identifier |
model_id | uuid.UUID | ID of the model used |
organization_id | uuid.UUID | Organization that owns this dataset |
num_samples | int | Number of samples to generate |
args | dict | Model-specific arguments |
created_at | str | ISO timestamp of creation |
state | str | Current processing state |
finished | bool | Whether processing is complete |
ready | bool | Whether dataset is ready for download |
metadata | Metadata | None | Dataset metadata (if available) |
output_file
: Path where dataset will be savedstrategy
: How to handle existing files ("fail"
, "skip"
, "replace"
)wait
: Whether to wait for dataset to be readytimeout
: Maximum seconds to waitState | Description |
---|---|
"PENDING" | Queued for processing |
"STARTED" | Currently generating |
"READY" | Successfully completed |
"FAILED" | Generation failed |
Variable | Description | Default |
---|---|---|
SINKOVE_API_KEY | API key for authentication | Required |
SINKOVE_API_URL | API endpoint URL | https://api.sinkove.com |
Exception | Cause |
---|---|
ValueError | Missing required configuration |
TimeoutError | Operation timeout exceeded |
Exception | API errors, network issues, etc. |