curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2-t2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Majestic dragon flying over medieval castle, epic fantasy art"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-ghi789",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-ghi789"
}
}
}A next-generation text-to-image model with significantly improved detail and visual fidelity, supporting both 1K and 2K resolutions for professional output.
POST
/
kling-v2-t2i
/
async
curl --request POST \
--url https://api.modellix.ai/api/v1/kling/kling-v2-t2i/async \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "Majestic dragon flying over medieval castle, epic fantasy art"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-ghi789",
"model_id": "model-123",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-ghi789"
}
}
}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:
"Majestic dragon flying over medieval castle, epic fantasy art"
Negative prompt describing undesired elements
Required string length:
1 - 2500Example:
"cartoon, anime, low quality"
Image aspect ratio
Available options:
16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 Example:
"16:9"
Image resolution. V2 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