github replicate/replicate-python 1.1.0b1

latest releases: 1.1.0b3, 1.1.0b2
pre-release3 months ago

What's Changed

The main change in 1.1.0b1 is the introduction of a new experimental replicate.use() function intended to eventually replace replicate.run(). This provides a more expressive function-like interface for calling models.

import replicate

flux_dev = replicate.use("black-forest-labs/flux-dev")
outputs = flux_dev(prompt="a cat wearing an amusing hat")

for output in outputs:
    print(output) # /tmp/output.webp

Check out the README.md on the beta branch for more details.

  • Switch to using uv for project tooling by @aron in #437
  • Add experimental replicate.use() function by @aron in #438

Full Changelog: 1.0.7...1.1.0b1

Don't miss a new replicate-python release

NewReleases is sending notifications on new releases.