Skip to main content
GET
/
v3
/
async
/
task-result
Query Task Result
curl --request GET \
  --url https://api.myrouter.ai/v3/async/task-result \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>'
{
  "extra": {
    "seed": "<string>",
    "debug_info": {
      "request_info": "<string>",
      "submit_time_ms": "<string>",
      "execute_time_ms": "<string>",
      "complete_time_ms": "<string>"
    }
  },
  "task": {
    "task_id": "<string>",
    "status": "<string>",
    "reason": "<string>",
    "task_type": "<string>",
    "eta": 123,
    "progress_percent": 123
  },
  "images": [
    {
      "image_url": "<string>",
      "image_url_ttl": 123,
      "image_type": "<string>"
    }
  ],
  "videos": [
    {
      "video_url": "<string>",
      "video_url_ttl": "<string>",
      "video_type": "<string>"
    }
  ],
  "audios": [
    {
      "audio_url": "<string>",
      "audio_url_ttl": "<string>",
      "audio_type": "<string>",
      "audio_metadata": {
        "text": "<string>",
        "start_time": 123,
        "end_time": 123
      }
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.myrouter.ai/llms.txt

Use this file to discover all available pages before exploring further.

The “Query Task Result API” is used to retrieve image, audio, or video results returned by asynchronous tasks.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Query Parameters

task_id
string
required
The task_id value returned in the 200 response of the async API.

Response Parameters

extra
object
task
object
required
Task details.
images
object[]
Returns the output image results for image-type tasks.
videos
object[]
Returns the output video results for video-type tasks.
audios
object[]
Returns the output audio results for audio-type tasks.