{"id":22378879,"url":"https://github.com/codebrahma/create-image","last_synced_at":"2025-06-20T14:08:56.818Z","repository":{"id":212618646,"uuid":"731914567","full_name":"Codebrahma/create-image","owner":"Codebrahma","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-22T05:40:31.000Z","size":221,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T19:16:27.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/Codebrahma.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-12-15T07:19:58.000Z","updated_at":"2023-12-27T07:06:28.000Z","dependencies_parsed_at":"2025-03-26T18:47:44.452Z","dependency_job_id":"1a59ed75-331d-408b-becc-ef9e1fbea3ab","html_url":"https://github.com/Codebrahma/create-image","commit_stats":null,"previous_names":["codebrahma/create-image"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Codebrahma/create-image","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codebrahma%2Fcreate-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codebrahma%2Fcreate-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codebrahma%2Fcreate-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codebrahma%2Fcreate-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codebrahma","download_url":"https://codeload.github.com/Codebrahma/create-image/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codebrahma%2Fcreate-image/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260958953,"owners_count":23088808,"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-12-04T23:08:12.732Z","updated_at":"2025-06-20T14:08:51.797Z","avatar_url":"https://github.com/Codebrahma.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-image-cli\n\n## Overview\nAn Interactive command line tool that simplifies the process of creating image using the [OpenAI Image Generation API](https://platform.openai.com/docs/api-reference/images/create).\n\n## Installation\nYou can install create-image-cli globally using npm:\n\n```bash\nnpm install -g create-image-cli\n```\n\n## Usage\n\n### 1. Generate an API key:\nBefore using the CLI, make sure you have obtained an API key from OpenAI. You can sign up and get your key [here](https://openai.com/).\n\n### 2. Configure API Key:\nRun the following command to set the API key.\n\n```bash\nexport OPENAI_API_KEY=\u003cYOUR_OPENAI_API_KEY\u003e\n```\n\n### 3. Create Image:\n\n#### 1. Interactive Way:\n\n```bash\ncreate-image-cli start\n```\n\nThis command will launch an interactive interface that guides you through the image generation process. You'll be prompted to enter the necessary information, such as the description or prompt for the image, and any additional options. Follow the on-screen instructions to customize the image generation according to your preferences.\n\n#### Example:\n\n![Non Interactive Example](\u003c./examples/interactive.png\u003e)\n\n#### 2. Non Interactive Way:\n\n```bash\ncreate-image-cli generate --description \"A serene sunset over a mountain lake\"\n```\n\n#### Options:\n\n- `--description, -d` (Required): Image description or prompt to generate.\n\n- `--model, -m` (Optional): Model to use for image generation.\n  - Choices: `dall-e-2`, `dall-e-3`\n  - Default: `dall-e-2`\n\n- `--size, -s` (Optional): Size of the image.\n  - dall-e-2 choices:  `256x256`, `512x512`, `1024x1024`\n  - dall-e-3 choices: `1024x1024`, `1792x1024`, `1024x1792`\n  - Default: `1024x1024`\n\n- `--quality, -q` (Optional): Quality of the image. Supports ony for \n`dall-e-3`\n  - Choices: `standard`, `hd`.\n  - Default: `standard`\n\n- `--style` (Optional): Style of the image. Supports ony for \n`dall-e-3`\n  - Choices: `natural`, `vivid`.\n  - Default: `natural`\n\n#### Example:\n\n![Non Interactive Example](\u003c./examples/non-interactive.png\u003e)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrahma%2Fcreate-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebrahma%2Fcreate-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebrahma%2Fcreate-image/lists"}