Get started
  • English
  • 简体中文
Official Site
Get started
  • English
  • 简体中文
Official Site
  • Get started
  • Concepts
  • Guides
    • Account and authorization
    • Device access
    • Audio and video
    • Device capability integration
    • Receive device messages
    • Manage cloud storage
    • Manage AI Insight
    • Release and operations
  • Device capabilities & events
  • API reference
  • SDK and tools
  • Solutions
  • Platform and support
On this page
Recommended order
Server-side responsibilities
Prerequisites
Enable a package
Query
Switches and language
Unbind
Face library (optional)
Related

Manage AI Insight

Manage AI Insight

This page covers binding AI Insight packages on overseas data centers, reading and updating detection switches and device language, and maintaining the face library when face rights are enabled. See AI Insight packages for strategyId, entitlements, and cloud storage; HTTP fields are on each AI Insight API method page.

Recommended order

Check quota or inventory → bindDeviceAiInsight → queryDeviceAiInsight / queryDeviceAiInsightList → switches / activate → setDeviceAiLanguage and face APIs when needed.

Server-side responsibilities

  • Packages and quota: Prepare packages, inventory, and strategyId in the developer console before calling bindDeviceAiInsight; do not embed package IDs in client apps.
  • Switches and language: Call setDeviceAiInsightSwitch and setDeviceAiLanguage from your server; effective switches come from queryDeviceAiInsight / queryDeviceAiInsightList.
  • Face library: Requires face entitlement on the package and faceSwitch on the channel; use the face APIs in the same module; see each method page for display avatar fields.

Prerequisites

Devices are registered; enable cloud storage or smart event cloud storage when your product needs linked recordings. Obtain tokens as in First API call.

Enable a package

ScenarioQuery firstBind
New bind using account quotaqueryAiInsightCount — callNum > 0bindDeviceAiInsight with strategyId
Bind from account inventoryqueryUnusedAiInsightList for deviceAiInsightIdbindDeviceAiInsight with deviceAiInsightId

When the channel already has packages, use activateNow on the bind page or activateDeviceAiInsight for queue vs immediate activation.

Overseas optional fields: language and detection / face switches (shared with AI Insight cloud storage on the channel). See bind and setDeviceAiInsightSwitch.

Query

  1. queryDeviceAiInsight — first non-expired package by start time (includes language and switch fields); see that page for strategyStatus semantics.
  2. queryDeviceAiInsightList — in-use and queued packages with useSwitch.

Switches and language

  • setDeviceAiInsightSwitch — useSwitch to enable or pause; optional detection and face switches.
  • setDeviceAiLanguage — change channel AI language after enablement.

Unbind

unbindDeviceAiInsight — returns the package to developer inventory.

Face library (optional)

When the plan includes face rights and the channel face switch is on, use face APIs in the same module (module index, section 2): listAiInsightFeature / listAiInsightUnknownFace, then addAiInsightFeature, etc.

Related

  • Development guides overview · AI Insight API
  • AI Insight event cloud storage · Cloud storage guide
Manage cloud storage
Release checklist