Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 908 Bytes

File metadata and controls

39 lines (28 loc) · 908 Bytes

indream-client

Official Python client for the Indream Open API.

Installation

pip install indream-client

Quick Start

from indream import IndreamClient

client = IndreamClient(api_key="YOUR_INDREAM_API_KEY")

created = client.exports.create(
    {
        "editorState": editor_state,
        "stateSchemaVersion": "v1",
        "ratio": "9:16",
        "scale": 0.6,
        "fps": 30,
        "format": "mp4",
    },
    idempotency_key="example-export-1",
)

task = client.exports.wait(created.task_id)
print(task.status, task.output_url)

Editor State Checks

client.editor.validate(...) and client.exports.create(...) run local editor-state schema checks before request dispatch. If editorState is invalid, the SDK raises ValidationError immediately.