图像生成

DeeLMind小于 1 分钟

图像生成

import os
import openai
openai.api_key = "OPENAI_API_KEY"

completion = openai.Image.create(
  prompt="A cute baby sea otter",
  n=2,
  size="1024x1024"
)

print(completion)
{
  "created": 1589478378,
  "data": [
    {
      "url": "https://..."
    },
    {
      "url": "https://..."
    }
  ]
}

上次编辑于:
贡献者: DeeLMind