Skip to main content

Interior Preview Bot

A Python package to generate interior design previews using the IPPrompter-1, Segment-Anything-v2, and IPPreview-1 models on Poe.

Installation

pip install interior_preview_bot

Usage

  1. Get a Poe API Key: Create an API key from poe.com/api_key and set it as an environment variable named POE_API_KEY.

  2. Run the preview pipeline:

import os
from interior_preview_bot import InteriorPreviewBot

api_key = os.getenv("POE_API_KEY")

bot = InteriorPreviewBot(api_key=api_key)

# Generate a preview
result_image = bot.generate_preview(
    room_image_path="path/to/your/room.png",
    reference_image_path="path/to/your/material.png",
    prompt="Replace the floor with this marble texture.",
    # Optional parameters
    # quality="high", 
    # aspect="1:1",
    # use_sam_mask=True
)

# The result is a bytes object, you can save it to a file
with open("preview_result.png", "wb") as f:
    f.write(result_image)

print("Preview image saved to preview_result.png")

Metadata

Release files for interior-preview-bot 0.1.0

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

Source distribution (sdist)

Source distribution for interior-preview-bot 0.1.0
File Size Uploaded
interior_preview_bot-0.1.0.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for interior-preview-bot 0.1.0
File Interpreter ABI Platform
interior_preview_bot-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.7 kB

Release files / interior_preview_bot-0.1.0.tar.gz

Download URL interior_preview_bot-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b97fdaa2442b54a5c59defc0290e8f9b285007b595f3ec9672193b0ab0de2175
BLAKE2b-256 checksum
How to use checksums
504621f8fe7b3890e74b4796d5db8af85a550da8f87ab65138d01b82b030001b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2025.

Transparency log

Release files / interior_preview_bot-0.1.0-py3-none-any.whl

Download URL interior_preview_bot-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ab1c6234fee1c605e3a34e26c3b8a380053f79c90741b04e55e177edc9ab0df1
BLAKE2b-256 checksum
How to use checksums
8590e876e4e75731033f8e174cfe643e711fe5345e013f5e76ace2675e958328
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 19, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

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