Create Infinity Image
Generate Infinity AI Image
POST
https://pub-api.mojo.vn/srv/publish/api/art_v5/generate
Headers
Name
Type
Description
Content-Type*
application/json
Authorization*
Bearer apikey
API_KEY
Request Body
Name
Type
Description
prompt*
String
Image description
ar*
String
Image Ratio
style*
String
Art Style Name (Get from API Get Art Style)
{
"success": true,
"id": "ImageId",
"queue_type": "fast"
}
curl --location 'https://pub-api.mojo.vn/srv/publish/api/art_v5/generate' --header 'Authorization: Bearer apikey,API_KEY' --header 'Content-Type: application/json' --data '{ "prompt": "Beautiful girl and sunflower", "style": "StyleName", "ar": "1:1" }'
The ar field is image ratio. ar in list ["16:9", "4:3", "3:2", "1:1", "2:3", "3:4", "9:16"]. If you provide the ar not in list, image ratio default is 1:1
StyleName is name of Infinity Art Style, get here
Last updated