Skip to content

dall-e-3 画图模型

其他语言 可通过curl实例 用ChatGPT转下

curl 实例

shell
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-替换为你的key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dall-e-3",
    "prompt": "a white siamese cat",
    "n": 1,
    "size": "1024x1024"
  }'
curl  https://api.openai-hk.com/v1/images/generations \
  -H 'Authorization: Bearer hk-替换为你的key' \
  -H "Content-Type: application/json" \
  -d '{
    "model": "dall-e-3",
    "prompt": "a white siamese cat",
    "n": 1,
    "size": "1024x1024"
  }'

在线测试

注意

1.访问 https://dall.ddaiai.com/ (如果被墙了,换下二级域名前缀 suibian)
2.如果发现被墙了 可以自己换地址 https://suibian.ddaiai.comsuibian 换其他的 如 https://2024.ddaiai.com 都能访问

设置

然后在下图相应的地方设置
OpenAi接口地址:https://api.openai-hk.com
OpenAi API KEY: hk-你的apiKey
然后在下图相应的地方设置
OpenAi接口地址:https://api.openai-hk.com
OpenAi API KEY: hk-你的apiKey

cover

效果

输入框 提问对话 cover