---
name: "getAiVisualBoxInfo"
mode: "kit"
versionRequirements:
  - { name: "@tuya-miniapp/cloud-api", version: "1.0.5" }
---

## getAiVisualBoxInfo

> [VERSION] @tuya-miniapp/cloud-api >= 1.0.5

### Description

Query Visual Cube info

### Parameters

`Params`

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `params` | `GetAiVisualBoxInfoParams` | Yes | - | Request body |

### Referenced Types

##### `type` GetAiVisualBoxInfoParams

| Property | Type | Required | Description |
| --- | --- | --- | --- |
| `stockId` | `string` | Yes | Inventory ID |
| `visionBoxId` | `string` | No | Vision Box ID (optional) |
| `gid` | `string` | Yes | Home gid |


### Examples

#### Request example

```typescript
import { getAiVisualBoxInfo } from '@tuya-miniapp/cloud-api';

getAiVisualBoxInfo({ gid: '194137', stockId: 'stock-1', visionBoxId: 'vb-1' })
  .then((box) => console.log(box))
  .catch(console.error);
```

#### Response example

```json
{
  "visionBoxId": "vb-1",
  "visionBoxName": "Living Room Cube",
  "serviceStockId": "stock-1",
  "visionBoxState": 1,
  "generateDescState": 0,
  "reportTypeList": [1],
  "reportLangType": "zh",
  "visionBoxEventList": [],
  "sceneType": 0
}
```
