Delula Public API SDK (beta)
Project description
delula-sdk
Python client for the Delula Public API (beta).
Install
pip install delula-sdk
Requires Python 3.10+. No third-party dependencies (stdlib only).
Quick start
Create an API key in Delula → Account → API, then:
import uuid
from delula_sdk import DelulaClient
client = DelulaClient(api_key="dlu_...")
credits = client.get_credits()
RECIPE_ID = 482 # Branded AI Video
detail = client.get_recipe(RECIPE_ID)
form_data = {
s["id"]: s["defaultValue"]
for s in detail.get("recipeSteps") or []
if s.get("defaultValue") is not None
}
preflight = client.preflight_generation(RECIPE_ID, form_data=form_data)
gen = client.create_generation(
RECIPE_ID,
form_data=form_data,
idempotency_key=str(uuid.uuid4()),
)
result = client.wait_for_generation(gen["generationId"])
Default base URL: https://delu.la/public/api. Pass base_url= for local dev.
get_account() includes accountType (3 = registered). Use list_recipes(catalog="b2b") for the business catalog.
Beta
Breaking changes may ship in 0.x without a /v1 path bump. Pin your version in production.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file delula_sdk-0.1.2.tar.gz.
File metadata
- Download URL: delula_sdk-0.1.2.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8db550cca1edf480e6c3329c77c32ceb437add5a91c4e769701839e66a6941f1
|
|
| MD5 |
9c609e2a01db75d160a976e250ad15b8
|
|
| BLAKE2b-256 |
83b192692f23e1a5a1f54e4ef984d1870651a035a461e4354ec9dae76ed7cc25
|
File details
Details for the file delula_sdk-0.1.2-py3-none-any.whl.
File metadata
- Download URL: delula_sdk-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e152ee6ad00a528e275294b62d36b52abd53e0a97ba5f92c18ed565e39549f44
|
|
| MD5 |
35db78863a1a194bb962edb6c8ea2298
|
|
| BLAKE2b-256 |
72f3fae70b50aeaaf00af23c83787624308355a9439b370d8dc13fd273f6aed6
|