{"id":15150623,"url":"https://github.com/zerobytecodecom/zerobytecode-ai-featured-image-generator","last_synced_at":"2026-01-21T10:36:03.896Z","repository":{"id":251641823,"uuid":"838002167","full_name":"zerobytecodecom/zerobytecode-ai-featured-image-generator","owner":"zerobytecodecom","description":"One-click generate and set WordPress post featured image using OpenAI's Dalle 3 AI.","archived":false,"fork":false,"pushed_at":"2024-08-05T07:11:59.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T07:53:08.277Z","etag":null,"topics":["dall-e","dall-e-3","dall-e-api","dall-e3","openai-api","php","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://zerobytecode.com/create-a-wordpress-plugin-to-generate-featured-images-using-ai/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zerobytecodecom.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-08-04T16:57:31.000Z","updated_at":"2024-08-04T17:11:47.000Z","dependencies_parsed_at":"2024-09-26T14:24:17.004Z","dependency_job_id":null,"html_url":"https://github.com/zerobytecodecom/zerobytecode-ai-featured-image-generator","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"e29b021b0cfbfe1c38554d5bc488cf7567fb7e4c"},"previous_names":["zerobytecodecom/zerobytecode-ai-featured-image-generator"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/zerobytecodecom/zerobytecode-ai-featured-image-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerobytecodecom%2Fzerobytecode-ai-featured-image-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerobytecodecom%2Fzerobytecode-ai-featured-image-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerobytecodecom%2Fzerobytecode-ai-featured-image-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerobytecodecom%2Fzerobytecode-ai-featured-image-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zerobytecodecom","download_url":"https://codeload.github.com/zerobytecodecom/zerobytecode-ai-featured-image-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zerobytecodecom%2Fzerobytecode-ai-featured-image-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28631936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["dall-e","dall-e-3","dall-e-api","dall-e3","openai-api","php","wordpress","wordpress-plugin"],"created_at":"2024-09-26T14:23:11.484Z","updated_at":"2026-01-21T10:36:03.879Z","avatar_url":"https://github.com/zerobytecodecom.png","language":"PHP","readme":"# zerobytecode-ai-featured-image-generator\n One-click generate and set WordPress post featured image using OpenAI's Dall-E 3.\n\n---\nThis plugin can help you generate a featured image directly from the post editor screen just with one click.\n\nThe plugin has a settings options with two fields:\n- OpenAI API Key\n- Content Template (the prompt)\n\nBy default, the plugin will use the post's excerpt as part of the prompt. To change the user input from post's excerpt, just change `$excerpt` in the following line to whatever you like, whether static or dynamic value like post's title, etc.\n\n```\n// Generate image prompt using OpenAI chat completions\n    $prompt_response = wp_remote_post(\n        'https://api.openai.com/v1/chat/completions',\n        [\n            'headers' =\u003e [\n                'Content-Type' =\u003e 'application/json',\n                'Authorization' =\u003e 'Bearer ' . $api_key,\n            ],\n            'body' =\u003e wp_json_encode([\n                'model' =\u003e 'gpt-3.5-turbo',\n                'messages' =\u003e [\n                    [\n                        'role' =\u003e 'system',\n                        'content' =\u003e sanitize_textarea_field($content_template),\n                    ],\n                    [\n                        'role' =\u003e 'user',\n                        'content' =\u003e sanitize_text_field($excerpt),\n                    ],\n                ],\n            ]),\n            'timeout' =\u003e 60,\n        ]\n    );\n```\n\nYou can read the complete guide to [generate featured image using Dall-E 3](https://zerobytecode.com/create-a-wordpress-plugin-to-generate-featured-images-using-ai/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerobytecodecom%2Fzerobytecode-ai-featured-image-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzerobytecodecom%2Fzerobytecode-ai-featured-image-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzerobytecodecom%2Fzerobytecode-ai-featured-image-generator/lists"}