Skip to main content

genblaze-falai

fal.ai image, video, and audio generation adapter for genblaze. One connector reaches fal's whole model catalog through its queue API, using plain HTTP (no fal-client dependency).

Install

pip install genblaze-falai
export FAL_KEY="..."   # https://fal.ai/dashboard/keys

Usage

from genblaze_core import Modality, Pipeline
from genblaze_fal import FalProvider

run, manifest = (
    Pipeline("fal-image")
    .step(
        FalProvider(),
        model="fal-ai/flux/schnell",
        prompt="A product photograph on a clean studio background",
        modality=Modality.IMAGE,
        image_size="square_hd",
    )
    .run(timeout=300)
)
print(run.steps[0].assets[0].url, manifest.canonical_hash)

model is any fal endpoint id. Model-specific inputs are forwarded unchanged, so check the model's API page (for example FLUX.1 schnell) for its input schema. The connector ships starter defaults for a few well-known endpoints:

Endpoint Modality Notes
fal-ai/flux/schnell, fal-ai/flux/* image FLUX family
fal-ai/wan/v2.2-a14b/text-to-video, fal-ai/wan/*-to-video video Wan family
fal-ai/stable-audio audio standard duration maps to seconds_total

Any other endpoint id passes through as-is. Outputs are mapped to assets by media type, using fal's content_type when present and the output key (images, video, audio_file, and so on) or URL extension otherwise. Chained inputs are routed to fal's conventional image_url, video_url, and audio_url slots.

Inputs and safety

  • URL-bearing inputs (image, video, audio, and any *_url / *_urls param, at any nesting depth) must be https:// URLs or inline data: URIs. Local file:// paths are rejected because fal cannot read them. Upload them (for example to B2) first. Private-network https hosts are not blocked, because fal's servers, not yours, fetch these URLs.
  • sync_mode is rejected because it returns inline data instead of hosted media URLs.
  • The API key is sent only in the Authorization header, and only to the configured queue host. Status and result URLs are always rebuilt on that host and never taken verbatim from a response. The key never appears in step params, provider payloads, or manifests.

Reliability

Submission is never retried by the provider's RetryPolicy, not even after a connect failure, because an ambiguous failure can still represent a billable generation. Status and result GETs use that policy (bounded backoff that honors Retry-After and the step deadline) for timeouts, connection errors, 429s, and 5xx responses. Setting step-level config["max_retries"] opts in to re-running a failed submit, so leave it at 0 when duplicate generations are unacceptable.

A failed generation is terminal on fal's side, since fal already re-queues runner failures. It is reported as CONTENT_POLICY, INVALID_INPUT, or MODEL_ERROR with fal's error_type in the message, and is never retried.

The prediction id is the request's queue path (fal-ai/flux/requests/<request_id>), so a checkpointed id can be passed to resume() from any process. Call close() to release the internal HTTP client.

License

MIT

Metadata

Release files for genblaze-falai 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 genblaze-falai 0.1.0
File Size Uploaded Provenance Actions
genblaze_falai-0.1.0.tar.gz 17.8 kB With provenance Details for genblaze_falai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for genblaze-falai 0.1.0
File Interpreter ABI Platform Actions
genblaze_falai-0.1.0-py3-none-any.whl Python 3 none any Details for genblaze_falai-0.1.0-py3-none-any.whl

Total release size: 31.0 kB

Release files / genblaze_falai-0.1.0.tar.gz

Download URL genblaze_falai-0.1.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
85d522734e13e1c2a3ccd5963922994a4b8a4dbed2d38d60abd3b26e0e026aa7
BLAKE2b-256 checksum
How to use checksums
bab1a5734b3524af5977f538498f65c5b7952d0c70ce6debe05c3a04ae1424b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

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

Download URL genblaze_falai-0.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8695e746ba05049cf03fdc3a415400405e23d447de97ea80a8ae34b31412bd5c
BLAKE2b-256 checksum
How to use checksums
14ec8cdf9fbedb995008172eb34f1d1ec75b5c0cc1b0bf2c7466d947b33f23c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 16, 2026.

Transparency log

Security for genblaze-falai 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for genblaze_falai-0.1.0.tar.gz

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 Nov 16, 2026.

Transparency log

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 Full 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