{"id":18696916,"url":"https://github.com/vra/bing_brush","last_synced_at":"2025-08-12T16:40:29.079Z","repository":{"id":205480693,"uuid":"714293137","full_name":"vra/bing_brush","owner":"vra","description":"One-line Image Generating Program Based on the Bing Image Createor (Powered by DALL·E 3), `pip install bing_brush`, that's it!","archived":false,"fork":false,"pushed_at":"2024-04-23T00:25:09.000Z","size":4330,"stargazers_count":11,"open_issues_count":4,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-27T03:13:51.471Z","etag":null,"topics":["ai","aigc","bing","bingimage-generator","click","dalle-3","dalle3","microsoft","openai","pip","python","requests","stable-diffusion"],"latest_commit_sha":null,"homepage":"https://bing-brush.vercel.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-11-04T13:40:38.000Z","updated_at":"2025-02-22T20:40:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd3bc2fa-60b8-4bc5-940b-689badfa3b3f","html_url":"https://github.com/vra/bing_brush","commit_stats":null,"previous_names":["vra/bing_brush"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vra/bing_brush","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vra%2Fbing_brush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vra%2Fbing_brush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vra%2Fbing_brush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vra%2Fbing_brush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vra","download_url":"https://codeload.github.com/vra/bing_brush/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vra%2Fbing_brush/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270099322,"owners_count":24527028,"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","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ai","aigc","bing","bingimage-generator","click","dalle-3","dalle3","microsoft","openai","pip","python","requests","stable-diffusion"],"created_at":"2024-11-07T11:21:50.385Z","updated_at":"2025-08-12T16:40:29.028Z","avatar_url":"https://github.com/vra.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"200px\" src=\"https://github.com/vra/bing_brush/blob/main/assets/logo.jpeg\"/\u003e\n  \n### One-line Image Generating Program Based on the Bing Image Createor (Powered by DALL·E 3)\n\n\u003c/div\u003e\n\n---\n\nCredit: The solution of invoking Bing Image Creator API is from \u003chttps://github.com/acheong08/BingImageCreator\u003e.\n\n## Installation\n```bash\npip install bing_brush\n```\n\n### Obtain your cookie\n\nThe cookie of Bing.com is needed. You need to login to Bing.com first, then follow the steps below to write your cookie to a file (e.g., `cookie.txt`):\n\n#### Step0:\nVist \u003chttps://www.bing.com/images/create\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"500px\" src=\"https://github.com/vra/bing_brush/blob/main/assets/step0.jpg\"/\u003e\n\u003c/div\u003e\n\n#### Step1:\nPress F12 to open dev tools, then refresh the web page to run all requests again:\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"500px\" src=\"https://github.com/vra/bing_brush/blob/main/assets/step1.jpg\"/\u003e\n\u003c/div\u003e\nSelect any rquest with type of xhr, then click the head of the request\n\n\n#### Step2:\nIn the detail of the request header, find the `Cookie` section, copy the value of it to your file (e.g., cookie.txt)\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"500px\" src=\"https://github.com/vra/bing_brush/blob/main/assets/step2.jpg\"/\u003e\n\u003c/div\u003e\nThen your cookie for Bing.com has successfully be stored.\n\n## Usage\n### CLI\n```bash\n# -c is short for --cookie, -p is short for --prompt\nbing_brush -c cookie.txt -p 'a cute panda eating bamboos' -o output_folder\n```\nThis command will generate 4 pictures located in `output_folder`, example outputs:\n\u003cdiv align=\"center\"\u003e\n  \u003cimg width=\"800px\" src=\"https://github.com/vra/bing_brush/blob/main/assets/demo_outputs.png\"/\u003e\n\u003c/div\u003e\n\n### Python API\n```python\nbrush = BingBrush(cookie='/path/to/cookie.txt')\nbrush.process(prompt='a cute panda eating bamboos', out_folder='output_folder')\n```\n\n\n## TODO\n+ [ ] unit test\n+ [ ] support for obtaining cookie from os.env\n\n\n## Logo\nLogo of this project is generated by Bing Image, prompt:\n\u003e A minimalist logo vector image, square-shaped, with a magical brush implemented in Python language in the center, colorful, digitial art\n\n## Contribution\n\n##\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvra%2Fbing_brush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvra%2Fbing_brush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvra%2Fbing_brush/lists"}