你可以通过文本提示生成图片,文本提示可以是任何描述性的句子,模型会根据这些描述生成相应的图片:

curl --location --request POST 'https://geekai.dev/api/v1/images/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: $GEEKAI_API_KEY' \
--data '{
    "model":"gpt-image-1",
    "prompt":"画一只可爱的小猫在草丛中玩耍"
}'

更多画图 API 参数细节,请参考画图 API 手册