{"id":27243329,"url":"https://github.com/spyna/aimage","last_synced_at":"2026-05-10T19:08:01.441Z","repository":{"id":244832775,"uuid":"816365724","full_name":"Spyna/aimage","owner":"Spyna","description":"a node cli to generate images using open ai","archived":false,"fork":false,"pushed_at":"2024-08-23T09:27:59.000Z","size":57,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:06:32.619Z","etag":null,"topics":["ai","cli","dall-e","image-generation","nodejs","openai","openai-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Spyna.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-17T15:41:42.000Z","updated_at":"2024-08-23T09:27:42.000Z","dependencies_parsed_at":"2024-06-17T19:31:16.547Z","dependency_job_id":"4b068f3e-e41c-4609-9a5e-c7c2f271268d","html_url":"https://github.com/Spyna/aimage","commit_stats":null,"previous_names":["spyna/aimage"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Faimage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Faimage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Faimage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Spyna%2Faimage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Spyna","download_url":"https://codeload.github.com/Spyna/aimage/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248290018,"owners_count":21078923,"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","cli","dall-e","image-generation","nodejs","openai","openai-api"],"created_at":"2025-04-10T20:27:54.549Z","updated_at":"2026-05-10T19:08:01.404Z","avatar_url":"https://github.com/Spyna.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node CLI for Creating Images Using OpenAI API DALL-E\n\nWelcome to the Node CLI project for creating images using the OpenAI API DALL-E. This project allows users to generate images via a command-line interface by leveraging OpenAI's DALL-E model.\n\n## Table of Contents\n\n- [Usage](#usage)\n- [Configuration](#configuration)\n- [Contributing](#contributing)\n- [Development](#development)\n- [License](#license)\n\n\n## Usage\n### Linux/macOS\nTo create an image, use the following command:\n\n```bash\nexport OPENAI_API_KEY=your-openai-api-key\nnpx aimage --prompt \"A description of the image you want to generate\"\n```\n\n### Windows\nFor Windows, use the set command to set the environment variable:\n\n```bash\nset OPENAI_API_KEY=your-openai-api-key\nnpx aimage --prompt \"A description of the image you want to generate\"\n```\n\n## Configuration\nEnsure you set the environment variable `OPENAI_API_KEY` with your OpenAI API key.\n\n### Parameters\n\n```shell\nUsage: aimage [options]\n\nOptions:\n  -V, --version           output the version number\n  -s, --size \u003csize\u003e       Size of the image to generate: 256x256 | 512x512 | 1024x1024 | 1792x1024 | 1024x1792 (default: \"1024x1024\")\n  -m, --model \u003cmodel\u003e     The model to use: dall-e-3 / dall-e-2 (default: \"dall-e-3\")\n  --f, --folder \u003cfolder\u003e  Saves the generated image in the specified folder (default: \"./images\")\n  -h, --help              output usage information\n\n\n```\n## Contributing\nWe welcome contributions! Please follow these steps to contribute:\n\n* Fork the repository.\n* Create a new branch (`git checkout -b feature/your-feature-name`).\n* Commit your changes (`git commit -m 'Add some feature'`).\n* Push to the branch (`git push origin feature/your-feature-name`).\n* Open a pull request.\n\nPlease ensure your code adheres to our coding standards and passes all tests.\n\n## Development\n\n```\nyarn dev\n```\n\n```\nnode dist/index.js\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Faimage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspyna%2Faimage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspyna%2Faimage/lists"}