api.bfl.ml -> api.bfl.ai (old endpoint dead)

This commit is contained in:
russell@unturf.com 2026-02-15 10:55:25 -05:00
parent 8fe6c4c481
commit 18982283c8
2 changed files with 2 additions and 2 deletions

View file

@ -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,

View file

@ -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 = {