The RPG-DiffusionMaster framework utilizes LLM to optimize SD text-to-image. It supports large language models such as GPT-4 and Gemini PRO, as well as open-source models like miniGPT-4. Features like multimodal re-labeling, chain of thought planning, and regional diffusion enhance the quality of image generation. Experimental results show that the RPG framework can generate highly accurate and detailed images, making it widely applicable across various scenarios. Project address: https://top.aibase.com/tool/rpg