Yanked
This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: Expose keys
AI Image Generator Python SDK
A Python SDK for interacting with the AI Image Generator API.
Installation
pip install ai-img-gen-python
Quick Start
from ai_img_gen import AIImageGeneratorClient, ClientConfig, ImageGenerationOptions
# Initialize the client
client = AIImageGeneratorClient(
ClientConfig(
base_url="https://api.img-gen.ai",
api_key="your_api_key_here"
)
)
Generate an image
options = ImageGenerationOptions(
width=512,
height=512,
prompt="A futuristic city with flying cars and neon lights",
model="dall-e-2",
format="png",
quality=90,
optimize=True
)
image_url = client.generate_image(options)
print(f"Generated image URL: {image_url}")
- Let's create a basic example:
from ai_img_gen import AIImageGeneratorClient, ClientConfig, ImageGenerationOptions
# Initialize the client
client = AIImageGeneratorClient(
ClientConfig(
base_url="https://api.img-gen.ai",
api_key="your_api_key_here"
)
)
# Generate an image
options = ImageGenerationOptions(
width=512,
height=512,
prompt="A futuristic city with flying cars and neon lights",
model="dall-e-2",
format="png",
quality=90,
optimize=True
)
image_url = client.generate_image(options)
print(f"Generated image URL: {image_url}")
Release files for ai-img-gen-python 0.1.4.post20250314132522
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ai_img_gen_python-0.1.4.post20250314132522.tar.gz | 4.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_img_gen_python-0.1.4.post20250314132522-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / ai_img_gen_python-0.1.4.post20250314132522.tar.gz
| Download URL | ai_img_gen_python-0.1.4.post20250314132522.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9246010f4eb0cc7039c729fd73b68cb28f2d34c0ceea1dc11e98687e2b71a677
|
|
BLAKE2b-256 checksum How to use checksums |
739080b805b8eb4668fcce9c1eb658e5b7e05549b2bc5f264ecd6897e7370b36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / ai_img_gen_python-0.1.4.post20250314132522-py3-none-any.whl
| Download URL | ai_img_gen_python-0.1.4.post20250314132522-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f114746a4cb476cb7d7f18a47b670528c4a723382fd91680bd26cffcc20eb2c8
|
|
BLAKE2b-256 checksum How to use checksums |
4be6defd007929b779add8a411585542d8c3bbd545024f8a85076c7546cb57d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|