Skip to content

Decide whether an image is needed ​

POST/ai-doc/if-need-image

Request URL ​

text
POST https://open-api.habitaxx.com/v1/ms-ai-fast/ai-doc/if-need-image

Request headers ​

http
Authorization: Bearer <ACCESS_TOKEN>
Content-Type: application/json

Request body ​

json
{
  "session_id": "<SESSION_ID>",
  "pet_profile_id": 44
}

Request fields ​

FieldTypeRequiredDescription
session_idstringYesThe session_id returned when the session was created.
pet_profile_idintegerNoPet-profile ID; when omitted the profile bound to the session is used. If provided it must match the session.
langstringNoOmit it or send the same language as the session, for example zh-CN.

Response example ​

json
{
  "code": 200,
  "message": "success",
  "data": {
    "session_id": "<SESSION_ID>",
    "data": {
      "is_pic": "True",
      "pic_explain": "Please upload a clear, evenly lit photo of the affected area."
    },
    "raw_content": "Raw model output",
    "gateway_request_id": "<REQUEST_ID>"
  }
}

Response fields ​

Paths below are relative to the response data; data.xxx refers to a field of the nested inner data object. The inner content comes from the model, so no fields beyond this table are guaranteed.

FieldTypeDescription
session_idstringCurrent session ID.
data.is_picstringCurrent public convention: "True" needs an image; "False" does not.
data.pic_explainstring/nullInstruction to show when an image is needed.
raw_contentstring/nullRaw model output.
gateway_request_idstring/nullGateway request ID.

The backend response model exposes the AI result as an object, so is_pic and pic_explain are current business output conventions rather than fixed Pydantic fields. If is_pic is missing or has another value, do not advance automatically.

最近更新

Qijie Open Platform · API Documentation