Task: Text-to-Video
Overview
- Path:
POST /task/jimeng/text2video - Category: Video Models (Video) / Jimeng AI
- Authentication: Bearer Token
- Base URL:
https://api.gpt.ge
Request Parameters
Request body (application/json):
prompt(string, required): prompt text for generating the video, supports Chinese and English, within 150 characters.seed(integer, optional, default-1): random seed. When the same seed and parameters are identical, results are more stable.aspect_ratio(string, optional): video aspect ratio, supports16:9(default, 1280720),9:16,1:1,4:3,3:4,21:9.
Business Error Codes
10000: request succeeded50500: Internal Error (generated video failed moderation)50412: Text Risk Not Pass (input text failed pre-moderation)50413: Post Text Risk Not Pass (input text blocked for copyright or other risks)
Request Example
bash
curl -X POST "https://api.gpt.ge/task/jimeng/text2video" \
-H "Authorization: Bearer $YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A golden retriever travels along a winding mountain road...",
"aspect_ratio": "9:16"
}'Success Response Example
json
{
"code": 10000,
"data": {"task_id": "14117763723766220057"},
"message": "Success",
"request_id": "20250501223433B728875839C8FE1F4DBF",
"status": 10000,
"time_elapsed": "55.764678ms"
}