---
updatedAt: 2025-12-08T11:19:20.000Z
agentTools:
  projectIndex: https://docs.topview.ai/llms.txt
---

# Query Task(Product Model)

# Response

<Table>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        code
      </td>

      <td>
        String
      </td>

      <td>
        Response code indicating success.
      </td>
    </tr>

    <tr>
      <td>
        message
      </td>

      <td>
        String
      </td>

      <td>
        Message describing the response.
      </td>
    </tr>

    <tr>
      <td>
        taskId
      </td>

      <td>
        String
      </td>

      <td>
        Unique identifier for the task.
      </td>
    </tr>

    <tr>
      <td>
        status
      </td>

      <td>
        String
      </td>

      <td>
        Status of the task, indicating success or failure.
      </td>
    </tr>

    <tr>
      <td>
        errorMsg
      </td>

      <td>
        String
      </td>

      <td>
        Error message if applicable (empty if no error).
      </td>
    </tr>

    <tr>
      <td>
        costCredit
      </td>

      <td>
        Float
      </td>

      <td>
        Cost in credits for the task.
      </td>
    </tr>

    <tr>
      <td>
        anyfitImages
      </td>

      <td>
        Array
      </td>

      <td>
        Array of images related to the task.
      </td>
    </tr>

    <tr>
      <td>
        * key
      </td>

      <td>
        String
      </td>

      <td>
        Unique identifier for the image.
      </td>
    </tr>

    <tr>
      <td>
        * url
      </td>

      <td>
        String
      </td>

      <td>
        URL of the image.
      </td>
    </tr>
  </tbody>
</Table>

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0",
    "title": "Submit Task(Product Model)"
  },
  "servers": [
    {
      "url": "https://api.topview.ai"
    }
  ],
  "paths": {
    "/v2/product_anyShoot/product_model/task/result": {
      "get": {
        "summary": "New Endpoint",
        "description": "This is your first endpoint! Edit this page to start documenting your API.",
        "operationId": "get_new-endpoint",
        "responses": {
          "200": {
            "description": "Successful response"
          }
        },
        "parameters": [
          {
            "in": "header",
            "name": "Topview-Uid",
            "schema": {
              "type": "string",
              "default": "<your-topview-uid>"
            },
            "required": true
          },
          {
            "in": "header",
            "name": "Authorization",
            "schema": {
              "type": "string",
              "default": "Bearer <your-api-key>"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "taskId",
            "schema": {
              "type": "string"
            },
            "required": true
          },
          {
            "in": "query",
            "name": "needCloudFrontUrl",
            "schema": {
              "type": "boolean",
              "enum": [
                false,
                true
              ],
              "default": "false"
            },
            "description": "Default false. Whether to return a CloudFront URL: true - returns the CloudFront URL; false - will return the S3 URL"
          }
        ]
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": false
  }
}
```