mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-28 04:04:31 +00:00
* docs(v1.59.8-stable): add release note * docs(index.md): cleanup new stable release, release notes
31 lines
478 B
Markdown
31 lines
478 B
Markdown
# [BETA] Image Variations
|
|
|
|
OpenAI's `/image/variations` endpoint is now supported.
|
|
|
|
## Quick Start
|
|
|
|
```python
|
|
from litellm import image_variation
|
|
import os
|
|
|
|
# set env vars
|
|
os.environ["OPENAI_API_KEY"] = ""
|
|
os.environ["TOPAZ_API_KEY"] = ""
|
|
|
|
# openai call
|
|
response = image_variation(
|
|
model="dall-e-2", image=image_url
|
|
)
|
|
|
|
# topaz call
|
|
response = image_variation(
|
|
model="topaz/Standard V2", image=image_url
|
|
)
|
|
|
|
print(response)
|
|
```
|
|
|
|
## Supported Providers
|
|
|
|
- OpenAI
|
|
- Topaz
|