gigai-tools
Python client for the GigAI Tools API. Run PDF, image, SVG and QR tools from code. The free plan gives 1,000 tasks a month with no card.
No dependencies. Python 3.9+.
Install
pip install gigai-tools
Get a key
Create an account at gigai.tools/developers and make an API key in the dashboard. Set it as GIGAI_API_KEY or pass api_key=.
One call
from gigai_tools import Client
client = Client()
# Merge two PDFs
client.run("merge-pdf", files=["a.pdf", "b.pdf"], output="merged.pdf")
# Compress an image to fit under 200 KB
client.run("compress-image", files=["photo.jpg"], options={"target_kb": 200}, output="small.jpg")
# Generate a QR code (no input file - the text is the payload)
client.run("generate-qr", options={"text": "https://example.com"}, output="qr.png")
run() imports your files, runs the tool, exports the result and downloads it. Files can also be https:// URLs and the server fetches them.
Tools
for tool in client.tools():
print(tool["slug"], "-", tool["description"])
Live engines: merge-pdf, split-pdf, rotate-pdf, pdf-to-text, convert-image, resize-image, compress-image, optimize-svg, markdown-to-html, generate-qr. The catalog only lists tools the API can actually run.
Job graphs
Chain tools in one job. Each task names its inputs and the server runs them in dependency order:
job = client.create_job({
"in": {"operation": "import/url", "url": "https://example.com/report.pdf"},
"rot": {"operation": "rotate-pdf", "input": ["in"], "angle": 90},
"txt": {"operation": "pdf-to-text", "input": ["rot"]},
"out": {"operation": "export/url", "input": ["txt"]},
}, retention_s=600)
job = client.wait(job["id"])
export = next(t for t in job["tasks"] if t["name"] == "out")
client.download(export["result"]["files"][0]["url"], "report.txt")
Idempotency-Key makes retries safe: pass idempotency_key= and the same key returns the same job instead of running the work twice.
Errors
Every failure raises GigaiError with a machine-readable code (invalid_option, file_too_large, quota_exceeded, target_unreachable, ...), the human message, and the offending parameter when there is one.
Privacy
File contents are never logged. Results are deleted after the retention you choose (default 1 hour, retention_s=0 means one download or 60 seconds) and deletion is verified. The web tools at gigai.tools never need an account - accounts exist only for this API.
Metadata
Release files for gigai-tools 0.1.0
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 | |
|---|---|---|---|---|
| gigai_tools-0.1.0.tar.gz | 6.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gigai_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / gigai_tools-0.1.0.tar.gz
| Download URL | gigai_tools-0.1.0.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6903a8864677ff364dc63f92c16fd242a7bf3e61c25b4fb7ed29932ed9b6f6ff
|
|
BLAKE2b-256 checksum How to use checksums |
da0981689067512b6cc956823e7451f6baabb01fd5403188a50af0df8bcdb367
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Release files / gigai_tools-0.1.0-py3-none-any.whl
| Download URL | gigai_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69ec3f9c7b1d7ef5988820bc2d01e40fc9c012a530d2aaeaae86a1e09ca18bd5
|
|
BLAKE2b-256 checksum How to use checksums |
b5b7efb1327223364603001d6787fdec5ab0a89efed1f012ace1597b1e2fc155
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.0
|
Security for gigai-tools 0.1.0
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.