Skip to main content

AI Background Changer — Python client

Replace photo backgrounds from text prompts; process uploaded files, URLs or storage images. Bulk result-link export: JSON, CSV, Excel and API. PPE: $7/1K delivered photos; start fee, usage extra.

This client starts the hosted Apify Actor, waits for completion and downloads Dataset records. It also reads SUMMARY and ERRORS when available. Source coverage and result fields depend on the Actor.

Install

pip install apivault-ai-background-changer

Run

Set APIFY_TOKEN in your environment. Replace the example values with your own valid inputs from the Actor input form.

from apivault_ai_background_changer import Client, WaitTimeout

client = Client()
actor_input = {
    "imageUrls": [
        "REPLACE_WITH_YOUR_INPUT"
    ]
}
result = client.run(actor_input, max_total_charge_usd=0.05, max_rows=100)
print(result.run_id, len(result.rows), result.truncated)
print(result.summary)

An Apify account and token are required. The package has no subscription of its own; hosted runs are billed by Apify under the Actor pricing. The event charge cap may not include platform usage. Review the current price before changing it. max_rows limits the download, not the Actor collection or its charges; configure an Actor result limit too.

Resume and diagnostics

client.start(input) returns a run ID; client.wait(run_id) and client.result(run_id) resume an existing run. A WaitTimeout exposes run_id. Starting a run is never automatically retried. Use an existing run ID after a connection or waiting failure to avoid duplicate paid runs. Failed and aborted runs raise ActorError. No-match and partial results require inspecting summary and errors; diagnostic rows must not be mistaken for useful results.

Rows can be serialized as JSON or used in your own CSV/Excel pipeline. Native Dataset exports are available in Apify. Optional integrations and credentials depend on the Actor.

Hosted Actor · Source · PyPI

Metadata

Release files for apivault-ai-background-changer 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 apivault-ai-background-changer 0.1.0
File Size Uploaded Provenance Actions
apivault_ai_background_changer-0.1.0.tar.gz 5.5 kB Without provenance Details for apivault_ai_background_changer-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apivault-ai-background-changer 0.1.0
File Interpreter ABI Platform Actions
apivault_ai_background_changer-0.1.0-py3-none-any.whl Python 3 none any Details for apivault_ai_background_changer-0.1.0-py3-none-any.whl

Total release size: 11.7 kB

Release files / apivault_ai_background_changer-0.1.0.tar.gz

Download URL apivault_ai_background_changer-0.1.0.tar.gz
Size 5.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1eb74c1baac34a71083497fe9d8e2cefec86d359f3307f283189c38b0167188a
BLAKE2b-256 checksum
How to use checksums
99b27e44d4b29613b7b830c389f5af7f8fc2417d79ae2415f1d8ae149fb0bac0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

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

Download URL apivault_ai_background_changer-0.1.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
78ca1d7a2ef238c4fd3c9d80335c4dd828c1236c0561f019d9c82abdd3439f28
BLAKE2b-256 checksum
How to use checksums
858c4ac0d4b68828004af6108b004e1bf5b299d7c0b0a255703361f0f3dc3ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for apivault-ai-background-changer 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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