Skip to main content

GPTProto Python SDK

Typed Python client for the GPTProto unified asynchronous media API. The generated transport and models are wrapped by GptprotoClient for unified create/get/run polling.

Use

pip install gptproto
export GPTPROTO_API_KEY=your_key
from gptproto import GptprotoClient
from gptproto.models import UnifiedVideoRequest, VideoResolution

client = GptprotoClient()
result = client.run(
    "video",
    UnifiedVideoRequest(
        model="kwaivgi/kling-v2.5",
        prompt="a cat dancing",
        duration=5,
        resolution=VideoResolution.RESOLUTION_1080P,
    ),
)
print(result.unsigned_urls)

Task kinds are video, image, speech, voice-clone, lip-sync, 3d, and image-tool. run() returns on completed, raises TaskFailedError for failed, cancelled, or expired, and raises TaskTimeoutError on timeout.

For local development:

python3.11 -m venv .venv
source .venv/bin/activate
pip install -e .
python examples/demo.py

Use the repository-level ../generate.sh to regenerate without overwriting the hand-written run.py and public __init__.py.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gptproto-0.1.0.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

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

gptproto-0.1.0-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file gptproto-0.1.0.tar.gz.

File metadata

  • Download URL: gptproto-0.1.0.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.12

File hashes

Hashes for gptproto-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6790f3ceef893866394315c07928ca9bdebf254fdecb43f1aa437c7d0932f0d6
MD5 d2de53b21d3de5955537ab6f2735e800
BLAKE2b-256 9b141432d937b70d9d1182a01d52f98bc7a82d2fb02fbff418bf056efc24091c

See more details on using hashes here.

File details

Details for the file gptproto-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gptproto-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.12

File hashes

Hashes for gptproto-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1441261d7b1eac77e648be0231c57d1a69de51eb138ae3ee019771233831ea6
MD5 7cc136e261fac90216a6bea4fb12a9ee
BLAKE2b-256 41b251d9bf4c372be738857b16d8c232bc9386e1a7a6b1bbffea68068ea2c08f

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 Sentry Error logging StatusPage Status page