# replicate-python

> Python client for Replicate

- **URL**: https://www.freshcrate.ai/projects/replicate-python
- **Author**: replicate
- **Category**: Uncategorized
- **Latest version**: `1.1.0b1` (2025-06-09)
- **License**: Apache-2.0
- **Source**: https://github.com/replicate/replicate-python
- **Homepage**: https://replicate.com
- **Language**: Python
- **GitHub**: 900 stars, 267 forks
- **Registry**: github
- **Tags**: `python`

## Description

Python client for Replicate

## Recent releases

| Version | Date | Urgency | Changes |
| --- | --- | --- | --- |
| `1.1.0b1` | 2025-06-09 | Low | ## 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](https://github. |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |
| `1.0.7` | 2025-05-27 | Low | ## What's Changed  If you run replicate-python within a cog model running [cog 0.14.11](https://github.com/replicate/cog/releases/tag/v0.14.11) or later, it is now possible to pass a `REPLICATE_API_TOKEN` via the `context` as part of a prediction request.  The `Replicate()` constructor will now use this context when available. This grants cog models the ability to use the Replicate client libraries, scoped to a user on a per request basis.  **Full Changelog**: https://github.com/replicate/ |

## Citation

- HTML: https://www.freshcrate.ai/projects/replicate-python
- Markdown: https://www.freshcrate.ai/projects/replicate-python.md
- Dependencies JSON: https://www.freshcrate.ai/api/projects/replicate-python/deps

_Generated by freshcrate.ai. Indexes github releases for AI-agent ecosystem packages._
