Skip to main content
GET
/
api
/
v3
/
predictions
/
{task_id}
/
result
Query Task
curl --request GET \
  --url https://gptproto.com/api/v3/predictions/{task_id}/result \
  --header 'Authorization: <authorization>'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Overview

This endpoint provides query task functionality.

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
default:"sk-***"
required
Your API key in the format: YOUR_API_KEY

Request Body

task_id
string
Unique identifier for the prediction, Task Id

Response

data.outputs
string[]
Array of URLs to the generated content (empty when status is not completed)
{
    "data": {
        "id": "4ec5973904e74f31bc9cd4ce94e3878e",
        "model": "wan-2.2/animate",
        "outputs": [
            "https://d2p7pge43lyniu.cloudfront.net/output/9e55b0b3-cf8a-4dea-a262-4055a5b02d90-u2_4e9ae5d1-f6da-45bf-9763-9a763d3a1c43.mp4"
        ],
        "urls": {
            "get": "https://gptproto.com/api/v3/predictions/4ec5973904e74f31bc9cd4ce94e3878e/result"
        },
        "status": "completed",
        "error": "",
        "executionTime": 380841,
        "timings": {
            "inference": 380841
        },
        "has_nsfw_contents": null,
        "created_at": "2025-11-07T02:35:15.34950574Z"
    },
    "message": "success",
    "code": 200
}
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}