Skip to content

查询任务

GET https://az.gptplus5.com/v1/video/query

给定一个提示,该模型将返回一个或多个预测的完成,并且还可以返回每个位置的替代标记的概率。

为提供的提示和参数创建完成

请求参数

Authorization

在 Header 添加参数Authorization,其值为在 Bearer 之后拼接 Token

示例:Authorization: Bearer ********************

Query 参数

参数名类型必需说明示例
idstring必需veo3.1-fast:1770350082-trii1OXZc3

Header 参数

参数名类型必需说明示例
Content-Typestring必需application/json
Acceptstring必需application/json
Authorizationstring可选Bearer {{YOUR_API_KEY}}
X-Forwarded-Hoststring可选localhost:5173

cURL 示例

bash
curl --location --request GET 'https://az.gptplus5.com/v1/video/query?id=veo3.1-fast:1770350082-trii1OXZc3' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'

返回响应

🟢200成功

响应 Body

参数名类型必需说明
idstring必需
statusstring必需
video_urlnull必需
enhanced_promptstring必需
status_update_timeinteger必需

响应示例

json
{
    "id": "veo3.1-fast:1770350082-trii1OXZc3",
    "detail": {
        "id": "veo3.1-fast:1770350082-trii1OXZc3",
        "req": {
            "model": "veo3.1-fast",
            "images": [
                "https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png"
            ],
            "prompt": "make animate",
            "aspect_ratio": "16:9",
            "enhance_prompt": true,
            "enable_upsample": true
        },
        "images": [
            {
                "url": "https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png",
                "status": "completed",
                "mediaId": "CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM"
            }
        ],
        "status": "completed",
        "running": false,
        "video_url": "https://pro.filesystem.site/cdn/20260206/9ddbd3bdc67f75a02f766363ebf8eb.mp4",
        "created_at": 1770350082099,
        "error_sleep": 5000,
        "max_retries": 3,
        "retry_count": 3,
        "completed_at": 1770350328994,
        "error_message": "[403] Request failed with status code 403 | Message: reCAPTCHA evaluation failed | Code: 403 | Status: PERMISSION_DENIED | Reason: PUBLIC_ERROR_SOMETHING_WENT_WRONG | Type: type.googleapis.com/google.rpc.ErrorInfo | URL: /v1/video:batchAsyncGenerateVideoStartImage",
        "video_media_id": "CAUSJDU1YzFjNTliLWYxNzctNGYwYy04YTJkLTI3MGFkMWE4YjkyMxokMTZjYjk1NzUtYWY4Yy00MzQzLWI4NjMtNGQ5YWFiZTZmNzMzIgNDQUUqJGQxZjBhOGExLTUxYjYtNDk5Yy04YWJlLWFhZTU0YzZiMjIxZQ",
        "enhanced_prompt": "Create a vibrant and whimsical animation that features a joyful scene of colorful animals playing together in a sunny meadow, surrounded by blooming flowers and butterflies fluttering by.",
        "upsample_status": "MEDIA_GENERATION_STATUS_SUCCESSFUL",
        "startImageMediaId": "CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM",
        "status_update_time": 1770350329098,
        "upsample_video_url": "https://pro.filesystem.site/cdn/20260206/1b50395bad4c6c7bc22e6ada144951.mp4",
        "video_generation_id": "608c00e8de85d8856554201ae115b7c2",
        "veo3StartImageMediaId": "CAMaJGUwOTE4MTA4LWQ3MTgtNDk0OS05ZDNiLTIxMjBkM2M5ZGFkYyIDQ0FFKiQzYzY4MjJhZi05ZTVkLTRhNjktOGQ5NC1jYmNjYWVjNDhkMjM",
        "needs_safe_enhancement": true,
        "upsample_generation_id": "d1f0a8a1-51b6-499c-8abe-aae54c6b221e_upsampled",
        "video_generation_error": "your request contains unsafe prompt or images, such as porn, violence, minors etc., has been rejected by google, please change your prompt or images and try again",
        "video_generation_status": "MEDIA_GENERATION_STATUS_SUCCESSFUL"
    },
    "status": "completed",
    "video_url": "https://pro.filesystem.site/cdn/20260206/1b50395bad4c6c7bc22e6ada144951.mp4",
    "status_update_time": 1770350329098
}