Skip to main content

i2v.ai

i2v.ai Python SDK

Server-side Python client for i2v.ai image and video generation: catalog, quotes, uploads, tasks, recovery and signed webhooks.
Python 3.10 or newer · no runtime dependencies · quote before submit.

PyPI Python Docs License


Install

pip install i2v-ai

Quick start

import os
from i2v import I2VClient

client = I2VClient(api_key=os.environ["I2V_API_KEY"])
models = client.list_models().data["data"]        # public catalog, no key needed

quote = client.quote("gpt-image-2", {"prompt": "A ceramic mug"}).data
receipt = client.create_task(
    "gpt-image-2",
    {"prompt": "A ceramic mug"},
    max_cost_usd="0.20",
    expected_revision=quote["expectedRevision"],
    idempotency_key="order-1234-image",
).data
result = client.wait_for_task(receipt["taskId"], timeout=900).data
print(result["status"], result.get("output"))

Error model

Exception Meaning
I2VHttpError Non-2xx response. Carries status, code, reason, request_id, retry_after_ms.
I2VSubmissionUnknownError The submission may be accepted (5xx, network failure, or HTTP 409 with submission_pending). Recover with recover_submission(key).
I2VWaitTimeoutError The wait ended before the task reached a terminal state.

verify_webhook(raw_body, headers, get_secret) checks the timestamp window, the HMAC over timestamp.body and the event ID in the body.

Development

python -m unittest discover -s tests -v

Releases publish from a python-vX.Y.Z tag through GitHub OIDC (see .github/workflows/publish-pypi.yml).

For AI agents

Repository Purpose
i2v-sdk-js TypeScript SDK
i2v-cli Command-line tools
i2v-skills Agent Skills
i2v-mcp Remote MCP metadata
generate-action GitHub Action
i2v-api-examples Runnable examples
i2v-agent-tools Ecosystem hub

License

MIT. See LICENSE.

Metadata

Release files for i2v-ai 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for i2v-ai 0.1.2
File Size Uploaded Provenance Actions
i2v_ai-0.1.2.tar.gz 12.8 kB With provenance Details for i2v_ai-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for i2v-ai 0.1.2
File Interpreter ABI Platform Actions
i2v_ai-0.1.2-py3-none-any.whl Python 3 none any Details for i2v_ai-0.1.2-py3-none-any.whl

Total release size: 22.8 kB

Release files / i2v_ai-0.1.2.tar.gz

Download URL i2v_ai-0.1.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2f12d47f0c62b105ffb485601ae9b1f580206164482e2ce468f1456d0e9c7e83
BLAKE2b-256 checksum
How to use checksums
5815a45cf28b2e54ff4b6f7012d95ccca6d4d57d9217d4f668494806d34e9456
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Release files / i2v_ai-0.1.2-py3-none-any.whl

Download URL i2v_ai-0.1.2-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e46113141f67e26e38a376049673ad35304a2fd551f2fc7687a8c1b32c7c2d42
BLAKE2b-256 checksum
How to use checksums
63dac74b9ccbc69d78ae80948f8304ba0899c0a92d92a5b9d5134850cff3fec1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

Security for i2v-ai 0.1.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for i2v_ai-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page