{"id":20638358,"url":"https://github.com/genza999/openai_image_variations_generator","last_synced_at":"2026-05-08T06:02:46.123Z","repository":{"id":169774311,"uuid":"645808698","full_name":"Genza999/openai_image_variations_generator","owner":"Genza999","description":"This is a fullstack project that generates variations of an image using OpenAI API","archived":false,"fork":false,"pushed_at":"2023-08-17T15:33:38.000Z","size":1814,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-17T08:20:31.058Z","etag":null,"topics":["django","openai-api","python"],"latest_commit_sha":null,"homepage":"http://genza999.pythonanywhere.com/","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/Genza999.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-05-26T13:35:43.000Z","updated_at":"2024-09-10T21:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"be6b505d-49bc-4ab9-8497-282e6753cf39","html_url":"https://github.com/Genza999/openai_image_variations_generator","commit_stats":null,"previous_names":["genza999/openai_image_variations_generator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genza999%2Fopenai_image_variations_generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genza999%2Fopenai_image_variations_generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genza999%2Fopenai_image_variations_generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genza999%2Fopenai_image_variations_generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genza999","download_url":"https://codeload.github.com/Genza999/openai_image_variations_generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242667475,"owners_count":20166303,"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":["django","openai-api","python"],"created_at":"2024-11-16T15:17:47.275Z","updated_at":"2026-05-08T06:02:46.031Z","avatar_url":"https://github.com/Genza999.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openai_image_variations_generator\nThis is a small Django project used to automatically generate variations for an image uploaded by the user. This uses the OpenAI image variation api.\n\n## Tools used\n- Python/Django\n- OpenAI API\n\n## Setup\n- Create an OpenAI account and [Generate an OpenAI API key](https://beta.openai.com/account/api-keys) to be able to access openAI services. \n- Generate a .env file and add API_KEY=GENERATED_API_KEY\n- Setup a virtualenv for the project\n- Install the dependecies in the requirements.txt file\n```\npip installl -r requirements.txt\n```\n- Run the project\n```\npython manage.py runserver\n```\n\n## Note\n- You can only upload a PNG image that is less than 4MB.\n- You can change the number of image variations generated by changing the VARIATIONS_NUMBER constant in settings file\n- You can change the image quality by changing the IMAGE_SIZE in the settings file. This can be 256(256x256), 512(512x512) and 1024(1024x1024)\n- In order for the images to be generated, you will have to [pay for billing](https://beta.openai.com/account/billing/overview) incase your free trial period is over. Without paying for billing, you will not be able to generate any image variations.\nAn error you'd get related to this:\n```\nopenai.error.InvalidRequestError: Billing hard limit has been reached\n```\n\n## Examples\n\n### Home page\n![home](static/home_page.png)\n\n### Original image uploaded by user\n![image_1](static/tiger_png.png)\n### Variations produced on page\n![variations_1](static/tiger_variations.png)\n\n### Original image uploaded by user\n![image_2](static/father_daughter.png)\n\n### Variations produced on page\n![variations_2](static/variations_2.png)\n\n## References\n\n- https://beta.openai.com/docs/introduction\n\n## Authors\n\n- [Genza999](https://www.linkedin.com/in/kisekka-david-a933ba13b/)\n\n\n## Contributing\n\n- Contributions, issues, and feature requests are welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenza999%2Fopenai_image_variations_generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenza999%2Fopenai_image_variations_generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenza999%2Fopenai_image_variations_generator/lists"}