blob: dbae22ed82fed40dd603c6b107a8081dbc195ae8 (
plain) (
tree)
|
|
import requests
url = "http://localhost:1337/v1/images/generations"
body = {
"prompt": "heaven for dogs",
"provider": "OpenaiAccount",
"response_format": "b64_json",
}
data = requests.post(url, json=body, stream=True).json()
print(data)
|