Skip to main content
POST
/
api
/
image
/
generation
/
ai-flower-wallpaper
AI Flower Wallpaper
curl --request POST \
  --url https://www.ailabapi.com/api/image/generation/ai-flower-wallpaper \
  --header 'Content-Type: multipart/form-data' \
  --header 'ailabapi-api-key: <api-key>' \
  --form name=AUTO \
  --form flower_elements=AUTO \
  --form 'style=soft watercolor floral illustration' \
  --form 'background=pastel gradient background' \
  --form aspect_ratio=auto
{
  "request_id": "",
  "log_id": "",
  "error_code": 0,
  "error_code_str": "",
  "error_msg": "",
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "task_type": "async",
  "task_id": ""
}

Documentation Index

Fetch the complete documentation index at: https://ailabtools.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Query Task

This is an asynchronous task API. The submission request returns only task_id.Use task_id to call Querying Async Task Results and retrieve the final result. Async task results remain available for 24 hours. Query every 5 seconds.
FieldTypeDescription
dataobjectFinal result data.
+result_urlsarrayResult image URLs.
++result_urls[]stringResult image URL.
{
  "data": {
    "result_urls": [""]
  }
}
result_urls are temporary and remain valid for 24 hours. If you need long-term storage, download the files to your own storage within that period.

Submit Task

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
name
string
default:AUTO

User name to display in the wallpaper (English only).

Maximum string length: 500
flower_elements
string
default:AUTO

Flower elements and bouquet composition description (English only).

Maximum string length: 4000
style
string
default:soft watercolor floral illustration

Artwork style for the generated wallpaper (English only).

Maximum string length: 4000
background
string
default:pastel gradient background

Background style or color theme for the wallpaper (English only).

Maximum string length: 4000
aspect_ratio
enum<string>
default:auto

Output Image Aspect Ratio.

Available options:
auto,
1:1,
3:4,
4:3,
9:16,
16:9

Response

200 - application/json

Success

The response is of type object.