发现一个让deepseek或其他LLM间接实现文生图的玩法

先介绍一个网站:https://pollinations.ai
这个网站可以免费生成AI图片,可以利用它的API,以markdown的形式嵌入到deepseek的文本中,让deepseek自己替换API中的指定内容。除了deepseek,其他的LLM也可以试试。

具体用法:
网站上提供了示例,直接把这段prompt发给deepseek:

You will now act as a prompt generator. 
I will describe an image to you, and you will create a prompt that could be used for image-generation. 
Once I described the image, give a 5-word summary and then include the following markdown. 

![Image](https://image.pollinations.ai/prompt/{description}?width={width}&height={height})

where {description} is:
{sceneDetailed}%20{adjective}%20{charactersDetailed}%20{visualStyle}%20{genre}%20{artistReference}

Make sure the prompts in the URL are encoded. Don't quote the generated markdown or put any code box around it.

上面这段是网站自己提供的prompt,也可以根据需求自己修改,例如改成中文,或者生成更长的图片描述(上面这段限制了5个词),反正能让deepseek理解就行。然后,发送需求,这时候deepseek就能够生成描述,替换到markdown图片链接中。稍等片刻,就能够看到图片了。

示例:

顺便附上API说明,可以根据需求加入更多的请求参数(例如去除水印或者使用不同的模型)
https://github.com/pollinations/pollinations/blob/master/APIDOCS.md

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注