Skip to main content

Python SDK for generating images with Unexposed

Project description

Unexposed Python SDK

Generate an image:

from unexposed_image_gen import generate_image

image = generate_image(
    access_token="ux_...AIax",
    prompt="product photo of a watch",
    model="flux2_dev",
)

image.save("./watch.png")

Generate a batch:

from unexposed_image_gen import generate_images

for result in generate_images(
    [
        {"prompt": "product photo of a watch", "model": "flux2_dev"},
        {"prompt": "studio product photo of headphones", "model": "qwen"},
    ],
    access_token="ux_...AIax",
):
    if result["ok"]:
        result["image"].save(f"./image-{result['index']}.png")

UNEXPOSED_ACCESS_TOKEN is used when access_token is omitted.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unexposed_image_gen-0.1.6.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unexposed_image_gen-0.1.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file unexposed_image_gen-0.1.6.tar.gz.

File metadata

  • Download URL: unexposed_image_gen-0.1.6.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for unexposed_image_gen-0.1.6.tar.gz
Algorithm Hash digest
SHA256 dbe8c540fa8be5575d233a941487a75375ae8bb1ba017312a3c93fb6e350cd01
MD5 160f54fc7c6dca4ea9dc110eace787f0
BLAKE2b-256 60dba1089cf338362cefada7b4f911dcce2eb140954ac7c4a8c6b6d69a16196d

See more details on using hashes here.

Provenance

The following attestation bundles were made for unexposed_image_gen-0.1.6.tar.gz:

Publisher: publish-python-sdk.yml on smccamley/unexposed.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file unexposed_image_gen-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for unexposed_image_gen-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b8daf7edb224957bbf1001f069b17f726bda1f72372fcc8d229f3882778cf42b
MD5 eb3eb341752d5ad160c62b900dc03c42
BLAKE2b-256 2886e2038481e70b7144e0758c51e4d323290267657e6eb071c5df8e1398035b

See more details on using hashes here.

Provenance

The following attestation bundles were made for unexposed_image_gen-0.1.6-py3-none-any.whl:

Publisher: publish-python-sdk.yml on smccamley/unexposed.ai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page