Comment on page
🧿
Images
Given a prompt and/or an input image, the model will generate a new image.
Creates an image given a prompt.
Example request
1
curl https://api.eye-ai.com/v1/images/generations \
2
-H 'Content-Type: application/json' \
3
-H 'Authorization: Bearer YOUR_API_KEY' \
4
-d '{
5
"prompt": "A cute baby sea otter",
6
"n": 2,
7
"size": "1024x1024"
8
}'
Parameters
1
{
2
"prompt": "A cute baby sea otter",
3
"n": 2,
4
"size": "1024x1024"
5
}
Response
1
{
2
"created": 1589478378,
3
"data": [
4
{
5
"url": "https://..."
6
},
7
{
8
"url": "https://..."
9
}
10
]
11
}
Last modified 11mo ago