# GetUMInferRequestLogDetail - GetUMInferRequestLogDetail

## Overview

GetUMInferRequestLogDetail




## Usage

You can choose any of the following methods to initiate an API request:
- Multi-language OpenSDK / [Go](https://github.com/ucloud/ucloud-sdk-go) / [Java](https://github.com/ucloud/ucloud-sdk-java) / [Python](https://github.com/ucloud/ucloud-sdk-python3) / [JavaScript](https://github.com/ucloud/ucloud-sdk-js) / [PHP](https://github.com/ucloud/ucloud-sdk-php) /
- [CloudShell](https://shell.ucloud.cn/)

## Definition

### Public Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Action**     | string  | Corresponding API command name, the current API is `GetUMInferRequestLogDetail`.                      | **Yes** |
| **PublicKey**  | string  | The user's public key can be obtained from [Console](https://console.ucloud.cn/uaccount/api_manage)                                             | **Yes** |
| **Signature**  | string  | User signature generated based on public key and API command, see [Signature Algorithm](https://docs.ucloud.cn/api/summary/signature)  | **Yes** |

### Request Parameters

| Parameter Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **Region** | string | Business region, for example cn-wlcb. Use ListUMInferRegions to get available regions |**Yes**|
| **ProjectId** | string | Project ID. Leave it blank for the default project. Sub-accounts must fill in. Please refer to the GetProjectList API |No|
| **Zone** | string | Zone. See [Region and Zone List](https://docs.ucloud.cn/api/summary/regionlist) |**Yes**|
| **RequestId** | string | Request ID |**Yes**|

### Response Field

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RetCode** | int | Return status code. If it is 0, it means successful return. If it is not 0, it means failure. |**Yes**|
| **Action** | string | Operation command name. |**Yes**|
| **Message** | string | Returns an error message, providing detailed description when `RetCode` is non-zero. |No|
| **Data** | [*RequestLogDetail*](#requestlogdetail) | Request log detail |**Yes**|

#### Data Model

#### RequestLogDetail

| Field Name | Type | Description Information | Required |
|:---|:---|:---|:---|
| **RequestId** | string | Request ID |No|
| **TopOrganizationId** | string | Top organization ID |No|
| **OrganizationId** | string | Organization ID |No|
| **ClientIp** | string | Client IP |No|
| **Region** | string | Business region |No|
| **StartTime** | int | Request start time, Unix timestamp in milliseconds |No|
| **StartTimeReadable** | string | Readable request start time |No|
| **ModelName** | string | Model name |No|
| **IsStream** | boolean | Whether the request is streaming |No|
| **ApiKeyId** | string | API Key ID |No|
| **HttpStatusCode** | int | HTTP status code |No|
| **ErrorCode** | string | Error code |No|
| **ErrorMessage** | string | Error message |No|
| **IsSuccess** | boolean | Whether the request succeeded |No|
| **Latency** | int | Total latency in milliseconds |No|
| **FirstTokenLatency** | int | First token latency in milliseconds |No|
| **OutputTokenThroughput** | float | Output token throughput |No|
| **Usage** | string | Raw usage JSON returned by model |No|
| **Request** | string | Raw request payload, currently empty |No|
| **Response** | string | Raw response payload, currently empty |No|
| **Extras** | string | Extra fields, currently empty |No|

## Example

### Request Example
```
https://api.ucloud.cn/?Action=GetUMInferRequestLogDetail
&Region=cn-wlcb
&Zone=cn-wlcb-01
&ProjectId=org-xxxx
&RequestId=request-xxxx
```

### Response Example
```json
{
  "Action": "GetUMInferRequestLogDetailResponse",
  "Data": {
    "ApiKeyId": "uminferapikey-xxxx",
    "ClientIp": "10.0.0.1",
    "ErrorCode": "",
    "ErrorMessage": "",
    "Extras": null,
    "FirstTokenLatency": 300,
    "HttpStatusCode": 200,
    "IsStream": true,
    "IsSuccess": true,
    "Latency": 1200,
    "ModelName": "deepseek-r1",
    "OrganizationId": "org-xxxx",
    "OutputTokenThroughput": 42.5,
    "Region": "cn-wlcb",
    "Request": null,
    "RequestId": "request-xxxx",
    "Response": null,
    "StartTime": 1751299200000,
    "StartTimeReadable": "2025-07-01 00:00:00",
    "TopOrganizationId": "org-xxxx",
    "Usage": {
      "completion_tokens": 64,
      "prompt_tokens": 64,
      "total_tokens": 128
    }
  },
  "RetCode": 0
}
```
