{"id":19313245,"url":"https://github.com/mattt/bfl-python","last_synced_at":"2025-04-22T16:30:54.164Z","repository":{"id":258201666,"uuid":"867259067","full_name":"mattt/bfl-python","owner":"mattt","description":"Unofficial Python client for interacting with the Black Forest Labs API","archived":false,"fork":false,"pushed_at":"2024-10-16T12:01:21.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T01:19:40.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pypi.org/project/black-forest-labs/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-03T18:16:26.000Z","updated_at":"2024-10-17T13:19:57.000Z","dependencies_parsed_at":"2024-10-18T01:19:47.478Z","dependency_job_id":"816ced53-235a-4029-8e55-0f09c310d898","html_url":"https://github.com/mattt/bfl-python","commit_stats":null,"previous_names":["mattt/bfl-python"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fbfl-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fbfl-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fbfl-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2Fbfl-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/bfl-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223900323,"owners_count":17222028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:37:58.449Z","updated_at":"2024-11-10T00:37:59.122Z","avatar_url":"https://github.com/mattt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Black Forest Labs API Client\n\nThis is an unofficial Python client for interacting with the\n[Black Forest Labs API](https://api.bfl.ml/).\n\n```console\npip install black-forest-labs\n```\n\n```console\nexport BFL_API_KEY=\"...\"\n```\n\n```python\nimport black_forest_labs\nimport time\n\ntask = black_forest_labs.generate(\n    \"flux-pro\",\n    prompt=\"ein fantastisches bild\",\n)\n\nprint(f\"Task created with id `{task.id}`\")\n\nprint(\"Polling for results...\", end=\"\", flush=True)\nwhile not task.is_done:\n    print(\".\", end=\"\", flush=True)\n    task = black_forest_labs.get_result(task.id)\n    time.sleep(1)\n\nprint(f\"\\nTask finished with status `{task.status}`\")\nif task.result:\n    print(f\"Prompt: {task.result.prompt}\")\n    print(f\"Image URL: {task.result.sample}\")\n\n```\n\n\u003coutput\u003e\n\n```\nTask created with id `ce9e065d-dc90-4633-9c1e-44ea839ed569`\nPolling for results............\nTask finished with status `Ready`\nPrompt: ein fantastisches bild\nImage URL: https://bflapistorage.blob.core.windows.net/public/db43e36806f74c1a9c6972127c9d71ea/sample.jpg\n```\n\n\u003c/output\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Fbfl-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2Fbfl-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2Fbfl-python/lists"}