Image文本生图API 参数名称 参数类型 必选 描述 model string 是 模型ID。 prompt string 是 所需图像的文本描述,最大长度1000。 negativeprompt string 否 避免生成负面图像的提示,最大长度1000。 n int 否 要生成的图像数。 一般取值为1, 具体取值范围、默认值需见对应模型 。 numinferencesteps int 否 去噪步骤的数量。去噪步骤越多,通常可以得到更高质量的图像,但推理速度会变慢。 一般取值范围 [1, 50], 具体取值范围、默认值需见对应模型 。 quality int 否 生成图像质量。openai参数,平台未启用。 size string 否 输出的图像尺寸(高x宽)。 一般取值范围:360x640,480x640,512x512,640x360,640x480,720x1280,1024x1024, 1280x720,默认值为512x512, 具体取值范围、默认值需见对应模型 。 responseformat string 否 返回图像的格式。 一般取值范围url, b64json,默认值为b64json, 具体取值范围、默认值需见对应模型 。 style string 否 生成图像风格。 一般取值范围standard,portrait,landscape,cartoon,technology,photography,concept,默认值为standard, 具体取值范围、默认值需见对应模型 。 user string 否 用户唯一身份ID。