Skip to content

Get Task Status

Query the execution status and result of an asynchronous task

← All documentation
GET/v1/tasks/task-unified-1757156493-imcg5zqt?language=en
  • Real-time status updates and progress tracking
  • Retrieve generation results when tasks are completed
  • Error messages available in 10 languages (en/zh/ja/ko/ru/fr/de/id/pt/es)

Request examples

curl --request GET \
  --url https://api.apisea.ai/v1/tasks/task-unified-1757156493-imcg5zqt?language=en \
  --header 'Authorization: Bearer <token>'

Authorizations

Authorizationstringrequired

All API endpoints require Bearer Token authentication

Get your API Key:

Visit the API Key Management Page to get your API Key

Add it to the request header:

text
Authorization: Bearer YOUR_API_KEY

Path parameters

task_idstringrequired

Task ID returned by the generation API

Query parameters

languagestring

Language of error.message for failed tasks. Supported values:

  • en - English
  • zh - Simplified Chinese
  • ja - Japanese
  • ko - Korean
  • ru - Russian
  • fr - French
  • de - German
  • id - Indonesian
  • pt - Portuguese
  • es - Spanish

Values are case-insensitive, and surrounding whitespace is trimmed. Use the two-letter codes above; regional tags such as zh-CN, en-US, and pt-BR are not recognized.

This parameter only affects error.message. If omitted or set to an unsupported value, the original error message is returned.

Response

idstring

Unique task identifier

statusstring

Task status values:

  • pending - Queued for processing
  • processing - In progress
  • completed - Finished successfully
  • failed - Failed
  • cancelled - Cancelled by user
costnumber

Cost charged for this task

credits_costnumber

Credits charged for this task

progressinteger

Task progress percentage (0–100)

resultobject

Task result, returned only when status is completed

Properties

imagesarray

Array of generated image objects (for image generation tasks)

videosarray

Array of generated video objects (for video generation tasks)

createdinteger

Task creation timestamp

completedinteger

Task completion timestamp (only present when completed)

estimated_timeinteger

Estimated completion time in seconds

actual_timeinteger

Actual completion time in seconds (only present when completed)

errorobject

Error details (only present when status is failed)

Properties

codeinteger

Error code

messagestring

Error message

typestring

Error type

Responses

{
  "code": 200,
  "data": {
    "id": "task_01KA040M0HP1GJWBJYZMKX1XS1",
    "status": "completed",
    "cost": 0.15,
    "credits_cost": 1.5,
    "progress": 100,
    "result": {
      "images": [
        {
          "url": [
            "https://cdn.example.com/f/image/9998236911693428-e8d7441f-f7b4-4130-97ad-9ef8a0dde2ce-image_task_01KA0413RT2GGNZJ9GWQ4PXF2F_0.png"
          ],
          "expires_at": 1763174708
        }
      ]
    },
    "created": 1763088289,
    "completed": 1763088308,
    "estimated_time": 60,
    "actual_time": 19
  }
}

Found a problem in these docs? Email support@apisea.ai.