-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to make image public and generate shareable link #10
Comments
So, there's additional steps required. {
"generations": {
"data": [
{
"id": "generation-KdiiXg780fGKdfOEiMXI8Tnf",
...
},
..,
]
}
} that we launch empty POST request to import requests
auth_header = "Bearer sess-......"
generation = "KdiiXg780fGKdfOEiMXI8Tnf"
ret = requests.post(
f"https://labs.openai.com/api/labs/generations/generation-{generation}/share",
headers={"Authorization": auth_header},
)
print(ret.json())
print(f"Your share link: https://labs.openai.com/s/{generation}") And, yes, link returns 404 before it, so /share is required |
The DALL·E UI allows you to designate an image as public and then creates a shareable link. It would be nice to be able to do this programatically.
The text was updated successfully, but these errors were encountered: