Skip to main content

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 os
import uuid
from delula_sdk import DelulaClient

client = DelulaClient(api_key=os.environ["DELULA_API_KEY"])

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
}

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"])
print(result["status"], result.get("videoUrl") or result.get("mediaUrl"))

Default base URL: https://delu.la/public/api. Pass base_url= for local dev.

Docs: delu.la/docs/api

Beta

Breaking changes may ship in 0.x without a /v1 path bump. Pin your version in production.

License

MIT — see LICENSE (Copyright Scrypted Inc.). Use of the Delula API is subject to delu.la terms.

Support: support@delu.la

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

delula_sdk-0.1.3.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

delula_sdk-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file delula_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: delula_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for delula_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 03dc2b3d685eb0202d9da49ca8804354333f1779992a9af67a28f06db5bf2331
MD5 976caef006d4416211d126b1ce96c8db
BLAKE2b-256 dbf9643c882bd1593f7bb443fe46a49703dfba9ca94463b07fdec0c8d0a8673c

See more details on using hashes here.

File details

Details for the file delula_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: delula_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.14

File hashes

Hashes for delula_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 75ddc84a5d082d39ee38cdb41fcd3fd0db45507d0775d2e699d778a38a0a8160
MD5 5bc334a52486da2435d092947c9aa70a
BLAKE2b-256 05cb6f51602c6e85ba290d500af6754eff00c50c66f2c3fda0940a80160eacd3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page