{"id":28804820,"url":"https://github.com/amirrezasalimi/bing-nodejs","last_synced_at":"2026-04-29T10:04:57.789Z","repository":{"id":205458891,"uuid":"714272304","full_name":"amirrezasalimi/bing-nodejs","owner":"amirrezasalimi","description":"unofficial nodejs bing api for dalle3","archived":false,"fork":false,"pushed_at":"2023-11-20T10:14:41.000Z","size":39,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T09:51:48.759Z","etag":null,"topics":["api","bing","dalle3","nodejs","private-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/bing-nodejs","language":"TypeScript","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/amirrezasalimi.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,"zenodo":null}},"created_at":"2023-11-04T12:29:21.000Z","updated_at":"2023-11-04T13:50:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"8e287bdd-e625-487a-87f0-cc2ac2e74f25","html_url":"https://github.com/amirrezasalimi/bing-nodejs","commit_stats":null,"previous_names":["amirrezasalimi/bing-nodejs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amirrezasalimi/bing-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirrezasalimi%2Fbing-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirrezasalimi%2Fbing-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirrezasalimi%2Fbing-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirrezasalimi%2Fbing-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amirrezasalimi","download_url":"https://codeload.github.com/amirrezasalimi/bing-nodejs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amirrezasalimi%2Fbing-nodejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32420370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["api","bing","dalle3","nodejs","private-api"],"created_at":"2025-06-18T09:42:03.499Z","updated_at":"2026-04-29T10:04:57.783Z","avatar_url":"https://github.com/amirrezasalimi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bing-nodejs\n\nA Node.js package for using the DALLE3 API to create images with Bing. DALLE3 is the latest image generation model from OpenAI, known for its high-quality image generation.\n\n## Installation\n\nYou can install this package using npm:\n\n```bash\nnpm install bing-nodejs\n```\n\nTo use the bing-nodejs package, follow these steps:\n\n1. Import the BingApi class:\n```js\nimport { BingApi } from \"bing-nodejs\";\n```\n\n2. Create an instance of BingApi by providing your Bing Image Creator cookie:\n\n```js\nconst bing = new BingApi({\n    cookie: \"YOUR_COOKIE_VALUE_HERE\",\n});\n```\n\nTo obtain your cookie value, follow these steps:\n\n- Go to Bing Image Creator in your browser and log in to your account.\n- Press Ctrl+Shift+J (or Cmd+Option+J on Mac) to open the developer tools.\n- Navigate to the Application section.\n- Click on the Cookies section.\n- Find the variable _U and copy its value.\n- Paste the copied value as the cookie \n- parameter when creating the BingApi instance.\n\n#### Use the package to create images with DALLE3:\n```js\nawait bing.createImage(\"cute cat\").then((res) =\u003e {\n    console.log(res.urls); // string[]\n});\n```\n\n#### You can also check your DALLE3 credits:\n```js\nawait bing.getDalleCredits().then((credits) =\u003e {\n    console.log(credits); // number\n});\n```\n\n#### Make sure to close the connection when you're done:\n```js\nawait bing.close();\n```\n\n\n### Credits:\nInspired by the Python version: [https://github.com/Agora-X/Dalle3](https://github.com/Agora-X/Dalle3)\n\n## License\nThis package is licensed under the MIT License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirrezasalimi%2Fbing-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famirrezasalimi%2Fbing-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famirrezasalimi%2Fbing-nodejs/lists"}