Official Python client for the Indream Open API.
- API docs: Video Editor API
- Supports Python 3.10+
pip install indream-clientfrom 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)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.