Skip to main content

Get Task Details

Query the status and results of any task created in the Market models

Overview

Use this endpoint to query the status and results of any task created through Market model APIs. This is a unified query interface that works with all models under the Market category.
This endpoint works with all Market models including Seedream, Grok Imagine, Kling, Claude, and any future models added to the Market.

API Endpoint

Query Parameters

taskId
string
required
The unique task identifier returned when you created the task.Example: task_12345678

Request Example

Response Format

Response Fields

code
integer
Response status code. 200 indicates success.
message
string
Response message. Typically "success" for successful queries.
data
object
The task data object containing all task information.

Task States

Polling Best Practices

For production applications, we strongly recommend using the callBackUrl parameter when creating tasks:
  • No polling needed: Your server receives notifications automatically
  • Lower API costs: Eliminates continuous polling requests
  • Better performance: Immediate notifications when tasks complete
  • Reduced latency: No delay between completion and notification
See individual model documentation for callback implementation details.
When state is success:
  1. Parse the resultJson string to JSON
  2. Extract the resultUrls array
  3. Download generated content immediately
  4. Store content in your own storage
Important: Generated content URLs typically expire after 24 hours.

Error Handling

Common Error Codes

Example: Complete Polling Flow

Node.js

Rate Limits

  • Maximum query rate: 10 requests per second per API key
  • Recommended interval: 2-5 seconds between polls
Excessive polling may result in rate limiting. Use callbacks for production applications.

Market Overview

Explore all available models

Get Account Credits

Check your remaining credits

OpenAPI

market/common/get-task-detail.json get /api/v1/jobs/recordInfo

To find navigation and other pages in this documentation, fetch the llms.txt file at: https://docs.kie.ai/llms.txt