You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: openapi.json
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
"name": "DeepL - Contact us",
9
9
"url": "https://www.deepl.com/contact-us"
10
10
},
11
-
"version": "2.16.0"
11
+
"version": "2.17.0"
12
12
},
13
13
"externalDocs": {
14
14
"description": "DeepL Pro - Plans and pricing",
@@ -63,9 +63,8 @@
63
63
],
64
64
"properties": {
65
65
"text": {
66
-
"description": "Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmultiple times and translations are returned in the same order as they are requested. Each of the\nparameter values may contain multiple sentences. Up to 50 texts can be sent for translation in one\nrequest.",
66
+
"description": "Text to be translated. Only UTF-8-encoded plain text is supported. The parameter may be specified\nmultiple times and translations are returned in the same order as they are requested. Each of the\nparameter values may contain multiple sentences.",
67
67
"type": "array",
68
-
"maxItems": 50,
69
68
"items": {
70
69
"type": "string",
71
70
"example": "Hello, World!"
@@ -92,6 +91,9 @@
92
91
"formality": {
93
92
"$ref": "#/components/schemas/Formality"
94
93
},
94
+
"model_type": {
95
+
"$ref": "#/components/schemas/ModelType"
96
+
},
95
97
"glossary_id": {
96
98
"allOf": [
97
99
{
@@ -199,6 +201,9 @@
199
201
"formality": {
200
202
"$ref": "#/components/schemas/Formality"
201
203
},
204
+
"model_type": {
205
+
"$ref": "#/components/schemas/ModelType"
206
+
},
202
207
"glossary_id": {
203
208
"allOf": [
204
209
{
@@ -262,6 +267,11 @@
262
267
"billed_characters": {
263
268
"description": "Number of characters counted by DeepL for billing purposes. Only present if the show_billed_characters parameter is set to true.",
264
269
"type": "integer"
270
+
},
271
+
"model_type_used": {
272
+
"description": "Indicates the translation model used. Only present if model_type parameter is included in the request.",
273
+
"type": "string",
274
+
"example": "quality_optimized"
265
275
}
266
276
}
267
277
}
@@ -1748,6 +1758,15 @@
1748
1758
],
1749
1759
"default": "default"
1750
1760
},
1761
+
"ModelType": {
1762
+
"type": "string",
1763
+
"description": "Specifies which DeepL model should be used for translation.\n\nPossible values are:\n* `latency_optimized` (default) - uses lower latency \u201cclassic\u201d translation models, which support all language pairs; \n default value \n* `quality_optimized` - uses higher latency, improved quality \u201cnext-gen\u201d translation models, which support only a\n subset of language pairs; if a language pair that is not supported by next-gen models is included in the\n request, it will fail. Consider using prefer_quality_optimized instead. \n* `prefer_quality_optimized` - prioritizes use of higher latency, improved quality \u201cnext-gen\u201d translation models,\n which support only a subset of DeepL languages; if a request includes a language pair not supported by \n next-gen models, the request will fall back to latency_optimized classic models.",
1764
+
"enum": [
1765
+
"quality_optimized",
1766
+
"prefer_quality_optimized",
1767
+
"latency_optimized"
1768
+
]
1769
+
},
1751
1770
"GlossaryId": {
1752
1771
"type": "string",
1753
1772
"description": "A unique ID assigned to a glossary.",
0 commit comments