接口地址: https://baiapi.cn/api/aidraw
返回格式: JSON
请求方式: GET/POST
请求示例: https://baiapi.cn/api/aidraw?text=猫&type=json&key=sk-xxx

请求参数

名称 必填 类型 说明
text string 生成内容
key string OpenAI官方KEY
type string 参数为json时则以json格式输出

返回示例

{
	"imgurl": "https:\/\/oaidalleapiprodscus.blob.core.windows.net\/private\/org-kYUPfiRebZTkR4SayUQK8Jgp\/user-pkkDnGsGSPlW8U5G7bzDuiCY\/img-qi3i1jRYDTwNl1HhYgU2KtpT.png?st=2023-11-01T05%3A38%3A19Z&se=2023-11-01T07%3A38%3A19Z&sp=r&sv=2021-08-06&sr=b&rscd=inline&rsct=image\/png&skoid=6aaadede-4fb3-4698-a8f6-684d7786b067&sktid=a48cca56-e6da-484e-a814-9c849652bcb3&skt=2023-11-01T01%3A03%3A06Z&ske=2023-11-02T01%3A03%3A06Z&sks=b&skv=2021-08-06&sig=gKgvYYFhWveBioBw6L8N48h3pkR1PVOf2tpQxlOxeKw%3D"
}
支付宝红包