Skip to content

Commit 117100f

Browse files
authored
Merge pull request #42 from DeepLcom/aj/AE-412-limits
AE-412: Add speech-to-text usage limits for setting limits to Admin API
2 parents c56ff79 + babc27e commit 117100f

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ typos, schema fixes, or adding examples.
2525
### Deprecated
2626
* Removed the `openapi_gitbook.yaml` file due to redundancy. Please use `openapi.yaml` going forward
2727

28+
## [3.10.0] - 2025-01-27
29+
### Added
30+
* Add `speech_to_text_milliseconds` field to developer key usage limits in `/v2/admin/developer-keys/limits` endpoint and `ApiKey` response schema
31+
2832
## [3.9.0] - 2025-12-11
2933
### Added
3034
* Add `speech_to_text_milliseconds` field to usage reports and analytics components

openapi.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2634,6 +2634,9 @@
26342634
},
26352635
"characters": {
26362636
"$ref": "#/components/schemas/ApiKeyUsageCharacters"
2637+
},
2638+
"speech_to_text_milliseconds": {
2639+
"$ref": "#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds"
26372640
}
26382641
}
26392642
}
@@ -5095,6 +5098,11 @@
50955098
"type": "number",
50965099
"example": 5000
50975100
},
5101+
"ApiKeyUsageSpeechToTextMilliseconds": {
5102+
"description": "Restricts the number of milliseconds of speech-to-text that can be consumed by an API key in a one-month usage period.\nSetting the limit to `0` means the API key will not be able to consume speech-to-text milliseconds.\nSetting the limit to `null` disables the limit, effectively allowing unlimited usage.\n",
5103+
"type": "number",
5104+
"example": 3600000
5105+
},
50985106
"ApiKey": {
50995107
"description": "The API key.",
51005108
"type": "object",
@@ -5126,6 +5134,9 @@
51265134
"properties": {
51275135
"characters": {
51285136
"$ref": "#/components/schemas/ApiKeyUsageCharacters"
5137+
},
5138+
"speech_to_text_milliseconds": {
5139+
"$ref": "#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds"
51295140
}
51305141
}
51315142
}

openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1870,6 +1870,8 @@ paths:
18701870
$ref: '#/components/schemas/ApiKeyId'
18711871
characters:
18721872
$ref: '#/components/schemas/ApiKeyUsageCharacters'
1873+
speech_to_text_milliseconds:
1874+
$ref: '#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds'
18731875
responses:
18741876
200:
18751877
description: The set usage limits function returns a JSON representation of the modified API key.
@@ -3733,6 +3735,13 @@ components:
37333735
Setting the limit to `null` disables the limit, effectively allowing unlimited usage.
37343736
type: number
37353737
example: 5000
3738+
ApiKeyUsageSpeechToTextMilliseconds:
3739+
description: |
3740+
Restricts the number of milliseconds of speech-to-text that can be consumed by an API key in a one-month usage period.
3741+
Setting the limit to `0` means the API key will not be able to consume speech-to-text milliseconds.
3742+
Setting the limit to `null` disables the limit, effectively allowing unlimited usage.
3743+
type: number
3744+
example: 3600000
37363745
ApiKey:
37373746
description: The API key.
37383747
type: object
@@ -3759,6 +3768,8 @@ components:
37593768
properties:
37603769
characters:
37613770
$ref: '#/components/schemas/ApiKeyUsageCharacters'
3771+
speech_to_text_milliseconds:
3772+
$ref: '#/components/schemas/ApiKeyUsageSpeechToTextMilliseconds'
37623773
Context:
37633774
description: |-
37643775
The `context` parameter makes it possible to include additional context that can influence a translation but is not translated itself.

0 commit comments

Comments
 (0)