Skip to content

Add initial Python SDK support#9

Open
2005-ab wants to merge 2 commits into
SamurAIGPT:mainfrom
2005-ab:feature/python-sdk
Open

Add initial Python SDK support#9
2005-ab wants to merge 2 commits into
SamurAIGPT:mainfrom
2005-ab:feature/python-sdk

Conversation

@2005-ab
Copy link
Copy Markdown

@2005-ab 2005-ab commented Jun 3, 2026

Summary

This PR introduces an initial Python SDK for MuAPI, providing a programmatic interface on top of the existing client implementation.

Features Added

Images

  • client.images.generate()
  • client.images.edit()

Videos

  • client.videos.generate()
  • client.videos.from_image()

Uploads

  • client.uploads.upload()

Predictions

  • client.predictions.get()
  • client.predictions.wait()

Example Usage

from muapi import MuAPI

client = MuAPI()

result = client.images.generate(
    prompt="A futuristic city at sunset"
)

print(result)

Additional Changes

  • Added SDK entry point via MuAPI
  • Added usage examples under the examples/ directory
  • Updated README with Python SDK documentation
  • Reused existing client.py request and polling logic to avoid code duplication

Notes

This is an initial SDK implementation focused on providing a clean Python interface while maintaining compatibility with the existing CLI architecture.

@2005-ab 2005-ab closed this Jun 4, 2026
@2005-ab 2005-ab reopened this Jun 4, 2026
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.

1 participant