|
2063 | 2063 | "auth_header": [] |
2064 | 2064 | } |
2065 | 2065 | ] |
2066 | | - }, |
2067 | | - "UsageResponse": { |
2068 | | - "type": "object", |
2069 | | - "properties": { |
2070 | | - "character_count": { |
2071 | | - "description": "Characters translated so far in the current billing period.", |
2072 | | - "type": "integer", |
2073 | | - "format": "int64", |
2074 | | - "example": 180118 |
2075 | | - }, |
2076 | | - "character_limit": { |
2077 | | - "description": "Current maximum number of characters that can be translated per billing period. If cost control is set, the cost control limit will be returned in this field.", |
2078 | | - "type": "integer", |
2079 | | - "format": "int64", |
2080 | | - "example": 1250000 |
2081 | | - }, |
2082 | | - "products": { |
2083 | | - "type": "array", |
2084 | | - "description": "Only present for API Pro users. Per-product usage details.", |
2085 | | - "items": { |
2086 | | - "type": "object", |
2087 | | - "properties": { |
2088 | | - "product_type": { |
2089 | | - "type": "string", |
2090 | | - "description": "The type of product (e.g., 'write', 'translate').", |
2091 | | - "example": "write" |
2092 | | - }, |
2093 | | - "api_key_character_count": { |
2094 | | - "type": "integer", |
2095 | | - "description": "Characters used for this product by this API key in the current period.", |
2096 | | - "example": 0 |
2097 | | - }, |
2098 | | - "character_count": { |
2099 | | - "type": "integer", |
2100 | | - "description": "Total characters used for this product in the current period.", |
2101 | | - "example": 5643 |
2102 | | - } |
2103 | | - } |
2104 | | - } |
2105 | | - }, |
2106 | | - "api_key_character_count": { |
2107 | | - "type": "integer", |
2108 | | - "description": "Only present for API Pro users. Total characters used by this API key in the current period.", |
2109 | | - "example": 636 |
2110 | | - }, |
2111 | | - "api_key_character_limit": { |
2112 | | - "type": "integer", |
2113 | | - "description": "Only present for API Pro users. Character limit for this API key in the current period.", |
2114 | | - "example": 1000000000000 |
2115 | | - }, |
2116 | | - "start_time": { |
2117 | | - "type": "string", |
2118 | | - "format": "date-time", |
2119 | | - "description": "Only present for API Pro users. Start time of the current billing period (ISO 8601).", |
2120 | | - "example": "2025-05-13T09:18:42Z" |
2121 | | - }, |
2122 | | - "end_time": { |
2123 | | - "type": "string", |
2124 | | - "format": "date-time", |
2125 | | - "description": "Only present for API Pro users. End time of the current billing period (ISO 8601).", |
2126 | | - "example": "2025-06-13T09:18:42Z" |
2127 | | - } |
2128 | | - } |
2129 | 2066 | } |
2130 | 2067 | }, |
2131 | 2068 | "/v2/languages": { |
|
2986 | 2923 | "html" |
2987 | 2924 | ] |
2988 | 2925 | }, |
| 2926 | + "UsageResponse": { |
| 2927 | + "type": "object", |
| 2928 | + "properties": { |
| 2929 | + "character_count": { |
| 2930 | + "description": "Characters translated so far in the current billing period.", |
| 2931 | + "type": "integer", |
| 2932 | + "format": "int64", |
| 2933 | + "example": 180118 |
| 2934 | + }, |
| 2935 | + "character_limit": { |
| 2936 | + "description": "Current maximum number of characters that can be translated per billing period. If cost control is set, the cost control limit will be returned in this field.", |
| 2937 | + "type": "integer", |
| 2938 | + "format": "int64", |
| 2939 | + "example": 1250000 |
| 2940 | + }, |
| 2941 | + "products": { |
| 2942 | + "type": "array", |
| 2943 | + "description": "Only present for API Pro users. Per-product usage details.", |
| 2944 | + "items": { |
| 2945 | + "type": "object", |
| 2946 | + "properties": { |
| 2947 | + "product_type": { |
| 2948 | + "type": "string", |
| 2949 | + "description": "The type of product (e.g., 'write', 'translate').", |
| 2950 | + "example": "write" |
| 2951 | + }, |
| 2952 | + "api_key_character_count": { |
| 2953 | + "type": "integer", |
| 2954 | + "description": "Characters used for this product by this API key in the current period.", |
| 2955 | + "example": 0 |
| 2956 | + }, |
| 2957 | + "character_count": { |
| 2958 | + "type": "integer", |
| 2959 | + "description": "Total characters used for this product in the current period.", |
| 2960 | + "example": 5643 |
| 2961 | + } |
| 2962 | + } |
| 2963 | + } |
| 2964 | + }, |
| 2965 | + "api_key_character_count": { |
| 2966 | + "type": "integer", |
| 2967 | + "description": "Only present for API Pro users. Total characters used by this API key in the current period.", |
| 2968 | + "example": 636 |
| 2969 | + }, |
| 2970 | + "api_key_character_limit": { |
| 2971 | + "type": "integer", |
| 2972 | + "description": "Only present for API Pro users. Character limit for this API key in the current period.", |
| 2973 | + "example": 1000000000000 |
| 2974 | + }, |
| 2975 | + "start_time": { |
| 2976 | + "type": "string", |
| 2977 | + "format": "date-time", |
| 2978 | + "description": "Only present for API Pro users. Start time of the current billing period (ISO 8601).", |
| 2979 | + "example": "2025-05-13T09:18:42Z" |
| 2980 | + }, |
| 2981 | + "end_time": { |
| 2982 | + "type": "string", |
| 2983 | + "format": "date-time", |
| 2984 | + "description": "Only present for API Pro users. End time of the current billing period (ISO 8601).", |
| 2985 | + "example": "2025-06-13T09:18:42Z" |
| 2986 | + } |
| 2987 | + } |
| 2988 | + }, |
2989 | 2989 | "NonSplittingTagCommaSeparatedList": { |
2990 | 2990 | "allOf": [ |
2991 | 2991 | { |
|
0 commit comments