Divooka.DSL.ImageGeneration.Services.zh

Divooka.DSL.ImageGeneration.Services.DallEImageGen

提供使用 DALL·E 3 生成图像的方法。

Divooka.DSL.ImageGeneration.Services.DallEImageGen.DallEGenerate()

使用Dall-E生成图像。

Parameters

NameDescriptionDefault
prompt 图片生成的指令。
size 输出图像大小。选择256x256,512x512,1024x1024。最大为1024x1024。
configuration OpenAI配置设置。

生成的图像

生成的图像。

Divooka.DSL.ImageGeneration.Services.DallEImageGen.DallEGenerateToFile()

使用Dall-E生成图像并保存到文件中。

Parameters

NameDescriptionDefault
prompt 图片生成的指令。
filePath 文件的路径。
size 输出图像的大小。选择256x256、512x512、1024x1024。最大为1024x1024。
configuration OpenAI配置设置。

生成的图像

生成的图像。

Divooka.DSL.ImageGeneration.Services.DallEImageGen.GenerateImageAsync()

使用 DALL·E 根据提供的提示生成图像。

Parameters

NameDescriptionDefault
prompt 所需图像的描述。
n 要生成的图像数量。
size 生成图像的大小 (例如, 256x256, 512x512, 1024x1024)。

生成图像的 URL 列表

生成图像的 URL 列表。