Registry / communication / imagekitio

imagekitio

JSON →
library5.7.0pypypi✓ verified 84d ago

The official Python library for the ImageKit API. Version 5.4.0 supports image and video management, transformations, URL generation, and DAM operations. Requires Python >=3.9.

pip install imagekitio
INSTALL
IMPORT
SIG · IMAGEKITIO
I
imagekitio
communicationpythonv5.7.0
Install
3.9s avg
Import
—
Disk
33MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.9–3.13
musl
3.9–3.13
Install & Compatibility
Where this runs
tested against v5.7.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 34.6MB
glibc
py 3.10–3.95 runs
installs and imports cleanly · install 3.9s · import 0.000s · 34MB
33MB installed
● package 33MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
✓ from imagekitio import Client
✗ from imagekitio import ImageKitClient
AsyncClient
✓ from imagekitio import AsyncClient
AsyncImageKit
✓ from imagekitio import AsyncImageKit

Initialize the client with your credentials and upload a file.

import os from imagekitio import ImageKitClient client = ImageKitClient( private_key=os.environ.get('IMAGEKIT_PRIVATE_KEY', 'your_private_key'), public_key=os.environ.get('IMAGEKIT_PUBLIC_KEY', 'your_public_key'), url_endpoint=os.environ.get('IMAGEKIT_URL_ENDPOINT', 'https://ik.imagekit.io/your_imagekit_id') ) # Upload a file upload = client.upload_file( file=open('path/to/image.jpg', 'rb'), file_name='example.jpg' ) print(upload.url)
Debug
Known issues
breakingVersion 5.0.0 is a complete rewrite. The old SDK (v4.x) used `ImageKit` class and `imagekitio.ImageKit` import. New SDK uses `ImageKitClient` and different API methods.
fix
Update imports to `from imagekitio import ImageKitClient` and adapt to new method signatures (e.g., `upload_file` instead of `upload`).
affects: <5.0.0
deprecatedThe `ImageKit` class from v4.x is deprecated and removed in v5. Use `ImageKitClient` instead.
fix
Replace `from imagekitio import ImageKit` with `from imagekitio import ImageKitClient`.
affects: >=4.0.0, <5.0.0
gotchaSigned URL generation with diacritic characters can produce invalid signatures (fixed in v4.0.1 but still relevant). Ensure URLs are properly encoded if you encounter 401 errors.
fix
Upgrade to v4.0.1+ and use URL-encoded strings when generating signed URLs.
affects: <4.0.1, >0
Upgrade
Version history
5.7.0latest on PyPI · released Jun 18, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
36 hits · last 30 days
node
34
Anthropic
1
OpenAI (training)
1
Resources
imagekitio — pip install imagekitio · libregistry