Scan your whole stack
Are you using magic-hour?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.104.1
magic-hour was last scanned on 29 Nov 2026 at version 0.104.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.104.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.104.0 | 28 Nov 2026 | No rules fired |
| 0.103.0 | 28 Nov 2026 | No rules fired |
| 0.102.1 | 26 Nov 2026 | Not shown |
| 0.102.0 | 24 Nov 2026 | Not shown |
Findings for v0.104.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.104.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Requires Python 3.10 or newer.
The Magic Hour Python Library provides convenient access to the Magic Hour API. This library offers both synchronous and asynchronous clients powered by httpx.
For full documentation of all APIs, please visit https://docs.magichour.ai
If you have any questions, please reach out to us via discord.
pip install magic_hour
For end-to-end examples demonstrating all available Magic Hour APIs, check out our interactive Google Colab cookbook:
The cookbook includes:
from magic_hour import Client
# generate your API Key at https://magichour.ai/developer
client = Client(token="my api key")
response = client.v1.face_swap_photo.generate(
assets={
"face_swap_mode": "all-faces",
"source_file_path": "/path/to/source/image.png",
"target_file_path": "/path/to/target/image.png",
},
name="Face Swap image",
wait_for_completion=True,
download_outputs=True,
download_directory=".",
)
print(f"Project ID: {response.id}")
print(f"Status: {response.status}")
print(f"Downloaded files: {response.downloaded_paths}")
from magic_hour import AsyncClient
# generate your API Key at https://magichour.ai/developer
client = AsyncClient(token="my api key")
response = await client.v1.face_swap_photo.generate(
assets={
"face_swap_mode": "all-faces",
"source_file_path": "/path/to/source/image.png",
"target_file_path": "/path/to/target/image.png",
},
name="Face Swap image",
wait_for_completion=True,
download_outputs=True,
download_directory=".",
)
print(f"Project ID: {response.id}")
print(f"Status: {response.status}")
print(f"Downloaded files: {response.downloaded_paths}")
Most resources that generate media content support two methods:
generate() - A high-level convenience method that handles the entire workflowcreate() - A low-level method that only initiates the generation processThe generate() function provides a complete end-to-end solution:
Additional Parameters:
wait_for_completion (bool, default True): Whether to wait for the project to complete.download_outputs (bool, default True): Whether to download the generated filesdownload_directory (str, optional): Directory to save downloaded files (defaults to current directory)Downloads preserve existing files. If a filename is occupied, the SDK adds a numeric suffix, such as output_1.png. Use downloaded_paths for the saved filenames. Downloading a completed project again saves another copy.
# Generate function - handles everything automatically
response = client.v1.ai_image_generator.generate(
style={"prompt": "A beautiful sunset over mountains"},
name="Sunset Image",
wait_for_completion=True, # Wait for status to be complete/error/canceled
download_outputs=True, # Download files automatically
download_directory="./outputs/" # Where to save files
)
# You get both the API response AND downloaded file paths
print(f"Project ID: {response.id}")
print(f"Status: {response.status}")
print(f"Downloaded files: {response.downloaded_paths}")
The create() function provides granular control:
# Create function - only starts the process
create_response = client.v1.ai_image_generator.create(
style={"prompt": "A beautiful sunset over mountains"},
name="Sunset Image"
)
# You get just the project ID and initial response
project_id = create_response.id
print(f"Started project: {project_id}")
# You must handle the rest:
# 1. Poll for completion. We provide a helper function to handle polling for you
result = client.v1.image_projects.check_result(
id=project_id,
wait_for_completion=True,
download_outputs=False,
)
# 2. Download files using the download URLs
download_urls = result.downloads
# download the files using your preferred way
Use generate() when:
Use create() when:
Project create endpoints accept an Idempotency-Key header, so you can safely retry a request without creating or paying for a second project. Repeating a key within 24 hours returns the original project. Keys are shared across your account, so use a new key, such as a UUID, for each project.
client.v1.ai_image_generator.create(
image_count=1,
style={"prompt": "Cool image"},
request_options={"additional_headers": {"Idempotency-Key": "5f3c1b9e-8a41-4a0e-9d3e-2f6a1c7b9e10"}},
)
With generate():
client.v1.ai_image_generator.generate(
image_count=1,
style={"prompt": "Cool image"},
request_options={"additional_headers": {"Idempotency-Key": "5f3c1b9e-8a41-4a0e-9d3e-2f6a1c7b9e10"}},
)
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.