{"id":23181757,"url":"https://github.com/itachi1621/dall-e-3_desktop_client","last_synced_at":"2026-05-02T10:37:49.880Z","repository":{"id":243101039,"uuid":"810630552","full_name":"itachi1621/Dall-E-3_Desktop_Client","owner":"itachi1621","description":"generate images using OpenAI's DALL-E model via a command-line interface. The script supports asynchronous image creation, handles user inputs, and saves images with metadata.","archived":false,"fork":false,"pushed_at":"2024-06-12T01:26:01.000Z","size":31042,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T11:21:59.466Z","etag":null,"topics":["ai-art","aiohttp","api","api-client","artificial-intelligence","cli","dall-e","dall-e-api","dalle-3","dalle3","open-ai","openai","openaiapi","pyhton","python3"],"latest_commit_sha":null,"homepage":"","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/itachi1621.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-06-05T04:25:05.000Z","updated_at":"2024-06-12T01:26:04.000Z","dependencies_parsed_at":"2024-06-12T05:23:48.413Z","dependency_job_id":null,"html_url":"https://github.com/itachi1621/Dall-E-3_Desktop_Client","commit_stats":null,"previous_names":["itachi1621/dall-e-3_desktop_client"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itachi1621%2FDall-E-3_Desktop_Client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itachi1621%2FDall-E-3_Desktop_Client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itachi1621%2FDall-E-3_Desktop_Client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itachi1621%2FDall-E-3_Desktop_Client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itachi1621","download_url":"https://codeload.github.com/itachi1621/Dall-E-3_Desktop_Client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280255,"owners_count":20912967,"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":["ai-art","aiohttp","api","api-client","artificial-intelligence","cli","dall-e","dall-e-api","dalle-3","dalle3","open-ai","openai","openaiapi","pyhton","python3"],"created_at":"2024-12-18T08:17:54.078Z","updated_at":"2026-05-02T10:37:44.845Z","avatar_url":"https://github.com/itachi1621.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dall-E-3_Desktop_Client\n## Image Generation with OpenAI Dall-e-3 API\n\nThis script allows you to generate images using OpenAI's DALL-E 3 model via a command-line interface. The script supports asynchronous image creation, handles user inputs, and saves images with metadata.\n\n## Features\n- Asynchronous image generation using aiohttp and asyncio.\n- Supports standard, landscape, and portrait image sizes.\n- Saves generated images with metadata (original and revised prompts).\n- Handles multiple jobs concurrently with threading.\n- Configurable via environment variables.\n\n## Prerequisites\n- Python 3.10+\n- OpenAI API Key\n\nRequired Python packages: aiohttp, python-dotenv, Pillow, argparse, asyncio\n\n## Installation\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/itachi1621/Dall-E-3_Desktop_Client.git\ncd DAll-E-3-Desktop_Client\n```\n\n2. Install the required packages:\n\n```bash\npip install -r requirements.txt\n```\n3. Set up your environment variables. Create a .env file in the project directory and add your OpenAI API key:\n\n```env\nOPENAI_KEY=your_openai_api_key\nMAX_IMAGES=5\nQUALITY=standard\nUSE_REVISED=False\n```\n\n## Usage\nRun the script with the following command:\n\n```bash\npython Dall-E-3_Desktop_Client.py\n```\n## Output\nImages are stored in the output folder of the directory\n\n### Command-Line Arguments\nYou can also provide the prompt, number of images, and image size as command-line arguments:\n**Note Only *prompt* is required other arguments are optional\n\n```bash\npython Dall-E-3_Desktop_Client.py --prompt \"A futuristic cityscape\" --number_of_images 3 --pic_size \"l\"\n```\n\nBring up help info\n```\npython Dall-E-3_Desktop_Client.py --help\n```\n### Interactive Mode\n\nIf no command-line arguments are provided, the script will run in interactive mode, prompting you for the necessary inputs.\n\n#### Environment Variables\n- OPENAI_KEY: Your OpenAI API key.\n- MAX_IMAGES: Maximum possible number of images to generate per job. e.g only allow the user to generate up to 2 images (May also be dependent on your OpenAI Tier Limits)\n- QUALITY: Image quality setting. use `standard` or `HD`\n- USE_REVISED: Use the revised prompt returned by the API for subsequent image generation (True/False). By Default Dalle will generate a new prompt per image and will give varrying results.\n\n## Troubleshooting\nEnsure you have a valid OpenAI API key set in your .env file.\nCheck that the required Python packages are installed.\nVerify that the environment variables are correctly set.\n\n## OpenAI Dall E 3 Pricing\n![Screenshot from 2024-06-06 14-25-22](https://github.com/itachi1621/Dall-E-3_Desktop_Client/assets/62318474/4610c819-ed3d-4c64-a44a-9ac0b4391727)\n\n\n## Sample Images\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/itachi1621/Dall-E-3_Desktop_Client/assets/62318474/28f0a052-4c2c-4217-8a7d-7ad2d015583b\" width=\"400\"\u003e\n    \u003cimg src=\"https://github.com/itachi1621/Dall-E-3_Desktop_Client/assets/62318474/a55cc793-da84-43c3-b409-be11f6089e18\" width=\"400\"\u003e\n  \u003cimg src=\"https://github.com/itachi1621/Dall-E-3_Desktop_Client/assets/62318474/cb3d27b7-7962-491f-8fda-20fe1f691002\" width=\"300\"\u003e\n    \u003cimg src=\"https://github.com/itachi1621/Dall-E-3_Desktop_Client/assets/62318474/a4ed6a65-8f01-436e-b588-1e966ccd9725\" width=\"300\"\u003e\n\u003c/p\u003e\n\n\n## Contributing\nFeel free to open issues or submit pull requests if you have suggestions or improvements.\n\n## License\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitachi1621%2Fdall-e-3_desktop_client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitachi1621%2Fdall-e-3_desktop_client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitachi1621%2Fdall-e-3_desktop_client/lists"}