Catalog PyPI
PACKAGE EXPLORERView in registry

ai-img-gen-python

PyPI

Python SDK for AI Image Generator API

Versions collected1
Direct dependencies1From release 0.1.4.post20250314132522
Last observed21 Oct, 11:02 UTC

README

Version 0.1.4.post20250314132522 documentation

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}")

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.4.post20250314132522Yanked14 Mar 20251

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
skbhati199/ai-img-gen-python

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 11:02 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:6d626840afbac45ff63aacd55f7fbcb11f69a9a1197b822395368d5963375a7b