试了一下Dalle3的API,成功率和ChatGPT里面调用差不多,只不过少了一层ChatGPT的审查,可以直接对Dalle3下指令,代价就是要用英文prompt,以及每张成功生成的图要8美分。
虽然生成失败会抛出一个代号400错误,然后告诉你下面三种之一:
Your request was rejected as a result of our safety system. Image descriptions generated from your prompt may contain text that is not allowed by our safety system. If you believe this was done in error, your request may succeed if retried, or by adjusting your prompt.
This request has been blocked by our content filters.
Your request was rejected as a result of our safety system. Your prompt may contain text that is not allowed by our safety system.
但是至少可以反复尝试而不被ChatGPT挡下。