简体中文
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":"画一只可爱的小猫在草丛中玩耍" }'
async
true
curl --location --request POST 'https://geekai.dev/api/v1/images/generations' \ --header 'Content-Type: application/json' \ --header 'Authorization: $GEEKAI_API_KEY' \ --data '{ "model":"midjourney-imagine", "prompt":"画一只可爱的小猫在草丛中玩耍", "async": true }'
curl --location --request GET 'https://geekai.dev/api/v1/images/{task_id}/result' \ --header 'Authorization: $GEEKAI_API_KEY'
succeed