zerogpu-api (Python SDK)
Official Python SDK for the ZeroGPU API: POST /v1/responses and POST /v1/chat/completions, with x-api-key and x-project-id on every request.
Install
pip install zerogpu-api
Quick start — Responses
input may be a string or a list of message dicts / InputMessage, depending on the model.
import os
from zerogpu import ZerogpuApi
client = ZerogpuApi(
api_key=os.environ["ZEROGPU_API_KEY"],
project_id=os.environ["ZEROGPU_PROJECT_ID"],
)
response = client.responses.create_response(
model="zlm-v1-followup-questions-edge",
input="In one short sentence, what is a habit tracker?",
text={"format": {"type": "text"}},
)
print(response)
Optional metadata (Responses)
client.responses.create_response(
model="gliner-multi-pii-v1",
input="Your text…",
metadata={"mask": "label", "usecase": "redact"},
)
Chat completions
from zerogpu import ChatMessage
client.chat.create_chat_completion(
model="gliner-multi-pii-v1",
messages=[ChatMessage(role="user", content="Your text…")],
metadata={"mask": "label", "usecase": "redact"},
)
API reference
Repository
Source and release workflow: github.com/zerogpu/SDK (Python package lives under pypi/).
Metadata
Release files for zerogpu-api 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zerogpu_api-0.1.3.tar.gz | 29.9 kB | Without provenance | Details for zerogpu_api-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zerogpu_api-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for zerogpu_api-0.1.3-py3-none-any.whl |
Total release size: 81.4 kB
Release files / zerogpu_api-0.1.3.tar.gz
| Download URL | zerogpu_api-0.1.3.tar.gz |
|---|---|
| Size | 29.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25f19b051a0070a14c94d431338194ad70b9b28534a42045a3ee6d7302f4e6a7
|
|
BLAKE2b-256 checksum How to use checksums |
34a80207c33bb9a79a1ffb5670591c674b26c8c9c5063e6a49ae7856d88877b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|
Release files / zerogpu_api-0.1.3-py3-none-any.whl
| Download URL | zerogpu_api-0.1.3-py3-none-any.whl |
|---|---|
| Size | 51.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b1ae51c7b6995dcf50b961f2ea119424bbcd7decd470d1e280b437529643670
|
|
BLAKE2b-256 checksum How to use checksums |
ecebd292c7f0a2e2acdee77db149967465a22f163c1b707e04792efed41401ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.6
|
Security for zerogpu-api 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.