Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: expo url

AI Image Generator Python SDK

PyPI version License: MIT Python Versions

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}")
  1. 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.3.post20250314131817

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

Source distribution (sdist)

Source distribution for ai-img-gen-python 0.1.3.post20250314131817
File Size Uploaded
ai_img_gen_python-0.1.3.post20250314131817.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-img-gen-python 0.1.3.post20250314131817
File Interpreter ABI Platform
ai_img_gen_python-0.1.3.post20250314131817-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / ai_img_gen_python-0.1.3.post20250314131817.tar.gz

Download URL ai_img_gen_python-0.1.3.post20250314131817.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
238bf0685b45e25ee5b554189093820aea60c645371c22820061b54c14f82774
BLAKE2b-256 checksum
How to use checksums
a723e79beca2ac8ccead4298168baadc91cf9a3a3a447d34ce308e6b217a5c6f
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.3.post20250314131817-py3-none-any.whl

Download URL ai_img_gen_python-0.1.3.post20250314131817-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ae41862799d9bb947bd6afb08d21fdac4477a2d4fe9d39b72429baa6d852aca
BLAKE2b-256 checksum
How to use checksums
02dd2acb87dd58ad0a25ffe7ff458cb36c2e2eb6de3597f7a6e8dcadf64ad33c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.21

Release history Release notifications | RSS feed

This release

0.1.3.post20250314131817 This release

2 release files

0.1.0

2 release files

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