api.bfl.ml -> api.bfl.ai (old endpoint dead)
This commit is contained in:
parent
8fe6c4c481
commit
18982283c8
2 changed files with 2 additions and 2 deletions
|
|
@ -189,7 +189,7 @@ def poll_for_result(conn, headers, request_id):
|
|||
|
||||
def generate_image(prompt, api_key, endpoint, seed):
|
||||
"""Generate an image using the Black Forest Labs API."""
|
||||
conn = http.client.HTTPSConnection("api.bfl.ml")
|
||||
conn = http.client.HTTPSConnection("api.bfl.ai")
|
||||
headers = {"Content-Type": "application/json", "X-Key": api_key}
|
||||
payload = {
|
||||
"prompt": prompt,
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ def main():
|
|||
if not api_key:
|
||||
raise ValueError("BLACK_FOREST_LABS_API_KEY environment variable is not set")
|
||||
|
||||
conn = http.client.HTTPSConnection("api.bfl.ml")
|
||||
conn = http.client.HTTPSConnection("api.bfl.ai")
|
||||
headers = {"Content-Type": "application/json", "X-Key": api_key}
|
||||
|
||||
payload = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue