Skip to content

feat: add first SDK implementation#1

Merged
AdirAmsalem merged 20 commits intomainfrom
add-basic-sdk
Oct 21, 2025
Merged

feat: add first SDK implementation#1
AdirAmsalem merged 20 commits intomainfrom
add-basic-sdk

Conversation

@AdirAmsalem
Copy link
Contributor

@AdirAmsalem AdirAmsalem commented Oct 20, 2025

Add Python SDK for Decart API

Implements a fully-featured Python SDK for Decart, enabling video and image generation/transformation and real-time communication.
Aligned with the Python SDK documentation.

Usage

import asyncio
import os
from decart_sdk import DecartClient, models

async def main():
    async with DecartClient(api_key=os.getenv("DECART_API_KEY")) as client:
        result = await client.process({
            "model": models.video("lucy-pro-t2v"),
            "prompt": "A serene lake at sunset",
        })

        with open("output.mp4", "wb") as f:
            f.write(result)

asyncio.run(main())

@AdirAmsalem AdirAmsalem marked this pull request as ready for review October 21, 2025 09:21
@AdirAmsalem AdirAmsalem changed the title feat: add basic SDK feat: add first SDK implementation Oct 21, 2025
@AdirAmsalem AdirAmsalem merged commit b077061 into main Oct 21, 2025
9 checks passed
@AdirAmsalem AdirAmsalem deleted the add-basic-sdk branch October 21, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments