curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2.1-t2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Oil painting style landscape with impressionist brush strokes"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mno345",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mno345"
}
}
}The latest and highest-quality text-to-image model in the Kling family, delivering state-of-the-art results at up to 2K resolution.
POST
/
kling-v2.1-t2i
/
async
curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2.1-t2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Oil painting style landscape with impressionist brush strokes"
}
'
{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-mno345",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-mno345"
}
}
}Documentation Index
Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
application/json
Image description text, supports Chinese and English
Required string length:
1 - 2500Example:
"Oil painting style landscape with impressionist brush strokes"
Negative prompt describing undesired elements
Required string length:
1 - 2500Example:
"simple, plain, boring, low detail"
Image aspect ratio
Available options:
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Example:
"1:1"
Image resolution. V2.1 supports both 1K and 2K
Available options:
1k, 2k Example:
"2k"
Number of images to generate per request
Required range:
1 <= x <= 9Example:
1
⌘I