[Tutorial] How to make ChatGPT generate pictures? Share the latest instructions

We all know that ChatGPT can generate text, but if you ask him to generate a picture, the following statement will be displayed:

insert image description here

							ChatGPT3月16日的回答

But through this tutorial, you can achieve such an effect in ChatGPT, and let ChatGPT directly generate the corresponding picture:

insert image description here

ChatGPT generates corresponding pictures according to the instructions

This feature unlocks more fun ways to play ChatGPT, such as letting ChatGPT help you generate web page illustrations, and even let ChatGPT generate PPTs with pictures on each page. The productivity has been improved instantly, no!

This tutorial covers the following

  1. Instruction template for ChatGPT to generate pictures
  2. Analysis of the principle of ChatGPT generating pictures
  3. Precautions for use

Instruction template for ChatGPT to generate pictures

Copy the prompt template below into ChatGPT:

接下来我会给你指令,生成相应的图片,我希望你用Markdown语言生成,不要用反引号,不要用代码框,你需要用Unsplash API,遵循以下的格式:https://source.unsplash.com/1600x900/?< PUT YOUR QUERY HERE >。你明白了吗?

ChatGPT can start to generate pictures:

picture

Analysis of the principle of ChatGPT generating pictures

Do you have a lot of question marks here?

  1. Didn't it mean that ChatGPT cannot generate pictures?
  2. Didn't it mean that ChatGPT cannot be connected to the Internet?
  3. What is Markdown?
  4. What is the Unsplash API?

Let me explain the principle of why ChatGPT can generate pictures in the most simple and easy-to-understand language:

First of all, ChatGPT has a built-in rendering engine of the Markdown language, and Markdown is a lightweight text markup language that can convert text into various forms of expression such as pictures, tables, and code blocks. So here ChatGPT is still just generating text.

The source of the picture here is Unsplash, which is one of the world's largest free picture databases, and the picture has free copyright and can be used commercially. Moreover, the API interface is opened, which provides the basic conditions for ChatGPT to generate Unsplash pictures.

Does ChatGPT search for pictures in Unsplash? No, here ChatGPT just generates the corresponding Unsplash image link based on the text. Link rendering is done in the Markdown engine.

Precautions for use

Q: Can the pictures be used commercially?

A: yes

Q: Can I use other galleries besides Unsplash?

A: Yes, but some free gallery APIs need to configure a personal key, and cannot be used completely by copying the template

Q: How to change the picture size?

A: Change the yellow part in the command to the size of the picture you need, such as 800x800. https://source.unsplash.com/1600x900/?<PUT YOUR QUERY HERE>

Q: Why does the picture change after downloading?

A: Because ChatGPT only generates fuzzy search links, it can only generate photos of the same theme, and cannot specify a specific picture.

おすすめ

転載: blog.csdn.net/qq_44303766/article/details/129584072