Common Response Fields

All Doubao API responses follow a standard structure with the following fields:
FieldTypeDescription
ResponseMetadataobjectResponse metadata
ResponseMetadata.RequestIdstringUnique request ID
ResponseMetadata.ActionstringAPI action name
ResponseMetadata.VersionstringAPI version
ResponseMetadata.ServicestringService name
ResponseMetadata.RegionstringRegion
ResultobjectResponse result data

Example Response

{
  "ResponseMetadata": {
    "RequestId": "2024xxxxxxxxxx",
    "Action": "CVProcess",
    "Version": "2022-08-31",
    "Service": "cv",
    "Region": "cn-north-1"
  },
  "Result": {
    // Actual response data varies by API
  }
}
When an error occurs, ResponseMetadata will contain an Error object with Code and Message fields describing the issue.