Generate image from prompt
Request
Add parameter in header apikey
Example:apikey: ********************
Body Params application/json
{
"prompt": "Cute dragon in anime style",
"width": 1024,
"height": 1024
}
Request Code Samples
curl --location --request POST '/generate/text_to_image/' \
--header 'apikey: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Cute dragon in anime style",
"width": 1024,
"height": 1024
}'
Responses
{
"success": true,
"message": "string",
"data": {
"request_id": "string"
}
}
Modified at 2025-02-04 01:28:25