mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
* docs(v1.59.8-stable): add release note * docs(index.md): cleanup new stable release, release notes
478 B
478 B
[BETA] Image Variations
OpenAI's /image/variations
endpoint is now supported.
Quick Start
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