@tokenlabai/mcp-server 0.6.26 → 0.6.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/contract/mcp-overlay.json +8 -2
- package/contract/openapi.json +619 -95
- package/generated/public-contract.json +5 -5
- package/generated/tools.json +75 -64
- package/package.json +1 -1
- package/scripts/generate-contract.mjs +9 -0
package/contract/openapi.json
CHANGED
|
@@ -132,34 +132,6 @@
|
|
|
132
132
|
"stream": true
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
|
-
"live_translation": {
|
|
136
|
-
"summary": "Stream audio translation",
|
|
137
|
-
"value": {
|
|
138
|
-
"model": "qwen3-livetranslate-flash",
|
|
139
|
-
"messages": [
|
|
140
|
-
{
|
|
141
|
-
"role": "user",
|
|
142
|
-
"content": [
|
|
143
|
-
{
|
|
144
|
-
"type": "input_audio",
|
|
145
|
-
"input_audio": {
|
|
146
|
-
"data": "https://example.com/sample.wav",
|
|
147
|
-
"format": "wav"
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"translation_options": {
|
|
154
|
-
"source_lang": "zh",
|
|
155
|
-
"target_lang": "en"
|
|
156
|
-
},
|
|
157
|
-
"modalities": [
|
|
158
|
-
"text"
|
|
159
|
-
],
|
|
160
|
-
"stream": true
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
135
|
"function_calling": {
|
|
164
136
|
"summary": "Function calling",
|
|
165
137
|
"value": {
|
|
@@ -335,7 +307,7 @@
|
|
|
335
307
|
"text": {
|
|
336
308
|
"summary": "Text input",
|
|
337
309
|
"value": {
|
|
338
|
-
"model": "
|
|
310
|
+
"model": "qwen3-vl-embedding",
|
|
339
311
|
"input": {
|
|
340
312
|
"text": "Describe this product for semantic search."
|
|
341
313
|
}
|
|
@@ -535,6 +507,9 @@
|
|
|
535
507
|
},
|
|
536
508
|
"error_details": {
|
|
537
509
|
"$ref": "#/components/schemas/AsyncTaskErrorDetails"
|
|
510
|
+
},
|
|
511
|
+
"media_retention": {
|
|
512
|
+
"$ref": "#/components/schemas/MediaRetention"
|
|
538
513
|
}
|
|
539
514
|
}
|
|
540
515
|
}
|
|
@@ -592,18 +567,18 @@
|
|
|
592
567
|
"basic": {
|
|
593
568
|
"summary": "Basic TTS",
|
|
594
569
|
"value": {
|
|
595
|
-
"model": "tts
|
|
570
|
+
"model": "grok-tts",
|
|
596
571
|
"input": "Hello, welcome to TokenLab!",
|
|
597
|
-
"voice": "
|
|
572
|
+
"voice": "eve"
|
|
598
573
|
}
|
|
599
574
|
},
|
|
600
|
-
"
|
|
601
|
-
"summary": "
|
|
575
|
+
"voice_and_speed": {
|
|
576
|
+
"summary": "Voice and speed",
|
|
602
577
|
"value": {
|
|
603
|
-
"model": "tts-
|
|
604
|
-
"input": "This is
|
|
605
|
-
"voice": "
|
|
606
|
-
"response_format": "
|
|
578
|
+
"model": "qwen3-tts-flash",
|
|
579
|
+
"input": "This is a speech synthesis example.",
|
|
580
|
+
"voice": "Cherry",
|
|
581
|
+
"response_format": "wav",
|
|
607
582
|
"speed": 1
|
|
608
583
|
}
|
|
609
584
|
}
|
|
@@ -761,7 +736,7 @@
|
|
|
761
736
|
"image_to_video": {
|
|
762
737
|
"summary": "Image-to-Video",
|
|
763
738
|
"value": {
|
|
764
|
-
"model": "hailuo-2.3
|
|
739
|
+
"model": "hailuo-2.3",
|
|
765
740
|
"prompt": "Make this image come alive with gentle movement",
|
|
766
741
|
"operation": "image-to-video",
|
|
767
742
|
"image_url": "https://example.com/image.jpg",
|
|
@@ -1421,7 +1396,7 @@
|
|
|
1421
1396
|
"Tasks"
|
|
1422
1397
|
],
|
|
1423
1398
|
"summary": "Cancel async task",
|
|
1424
|
-
"description": "Cancels a queued asynchronous task when cancellation is supported for the selected task. Cancellation currently supports queued Seedance video tasks (`seedance-
|
|
1399
|
+
"description": "Cancels a queued asynchronous task when cancellation is supported for the selected task. Cancellation currently supports queued Seedance video tasks (`seedance-2.0` and `seedance-2.0-fast`) while they are still waiting to run. Tasks that are already processing, completed, failed, expired, or unsupported are not cancelled.",
|
|
1425
1400
|
"operationId": "cancelAsyncTask",
|
|
1426
1401
|
"parameters": [
|
|
1427
1402
|
{
|
|
@@ -1780,7 +1755,7 @@
|
|
|
1780
1755
|
"Anthropic"
|
|
1781
1756
|
],
|
|
1782
1757
|
"summary": "Count message tokens (Anthropic-compatible)",
|
|
1783
|
-
"description": "Counts input tokens for an Anthropic-compatible messages request without creating a model response. Authentication is required; the operation is not billed.",
|
|
1758
|
+
"description": "Counts input tokens for an Anthropic-compatible messages request without creating a model response. Authentication is required; the operation is not billed. Verified upstream counting is preferred. Upstream availability failures return a local estimate marked by X-TokenLab-Count-Tokens-Source: local_estimate. Platform authentication, permission and input errors remain errors. Bound files unreadable locally require upstream counting.",
|
|
1784
1759
|
"operationId": "countAnthropicMessageTokens",
|
|
1785
1760
|
"requestBody": {
|
|
1786
1761
|
"required": true,
|
|
@@ -2735,7 +2710,7 @@
|
|
|
2735
2710
|
"string",
|
|
2736
2711
|
"null"
|
|
2737
2712
|
],
|
|
2738
|
-
"description": "
|
|
2713
|
+
"description": "TokenLab serves this request at the standard service tier. auto and default are forwarded. Other values, such as flex, priority, fast and ultrafast, are ignored and billed at the standard price."
|
|
2739
2714
|
},
|
|
2740
2715
|
"truncation": {
|
|
2741
2716
|
"type": "string",
|
|
@@ -3236,9 +3211,6 @@
|
|
|
3236
3211
|
"application/json": {
|
|
3237
3212
|
"schema": {
|
|
3238
3213
|
"type": "object",
|
|
3239
|
-
"required": [
|
|
3240
|
-
"prompt"
|
|
3241
|
-
],
|
|
3242
3214
|
"properties": {
|
|
3243
3215
|
"model": {
|
|
3244
3216
|
"type": "string",
|
|
@@ -3246,7 +3218,7 @@
|
|
|
3246
3218
|
},
|
|
3247
3219
|
"prompt": {
|
|
3248
3220
|
"type": "string",
|
|
3249
|
-
"description": "3D model description"
|
|
3221
|
+
"description": "3D model description. Required for every model that takes a prompt; an image-to-3D model whose contract lists no prompt is called without one."
|
|
3250
3222
|
},
|
|
3251
3223
|
"image": {
|
|
3252
3224
|
"type": "string",
|
|
@@ -4539,7 +4511,8 @@
|
|
|
4539
4511
|
"schema": {
|
|
4540
4512
|
"type": "object",
|
|
4541
4513
|
"required": [
|
|
4542
|
-
"file"
|
|
4514
|
+
"file",
|
|
4515
|
+
"model"
|
|
4543
4516
|
],
|
|
4544
4517
|
"properties": {
|
|
4545
4518
|
"file": {
|
|
@@ -4547,8 +4520,7 @@
|
|
|
4547
4520
|
"format": "binary"
|
|
4548
4521
|
},
|
|
4549
4522
|
"model": {
|
|
4550
|
-
"type": "string"
|
|
4551
|
-
"default": "whisper-1"
|
|
4523
|
+
"type": "string"
|
|
4552
4524
|
},
|
|
4553
4525
|
"prompt": {
|
|
4554
4526
|
"type": "string"
|
|
@@ -4617,7 +4589,7 @@
|
|
|
4617
4589
|
"schema": {
|
|
4618
4590
|
"type": "string"
|
|
4619
4591
|
},
|
|
4620
|
-
"example": "
|
|
4592
|
+
"example": "grok-voice-latest"
|
|
4621
4593
|
}
|
|
4622
4594
|
],
|
|
4623
4595
|
"responses": {
|
|
@@ -5779,6 +5751,9 @@
|
|
|
5779
5751
|
},
|
|
5780
5752
|
"error_details": {
|
|
5781
5753
|
"$ref": "#/components/schemas/AsyncTaskErrorDetails"
|
|
5754
|
+
},
|
|
5755
|
+
"media_retention": {
|
|
5756
|
+
"$ref": "#/components/schemas/MediaRetention"
|
|
5782
5757
|
}
|
|
5783
5758
|
},
|
|
5784
5759
|
"additionalProperties": true
|
|
@@ -9396,6 +9371,149 @@
|
|
|
9396
9371
|
}
|
|
9397
9372
|
}
|
|
9398
9373
|
}
|
|
9374
|
+
},
|
|
9375
|
+
"/v1/media-results/{id}": {
|
|
9376
|
+
"get": {
|
|
9377
|
+
"tags": [
|
|
9378
|
+
"Media Results"
|
|
9379
|
+
],
|
|
9380
|
+
"summary": "Get a media result",
|
|
9381
|
+
"description": "Returns a generated image, video, audio or downloadable 3D result. Result URLs have this form and stay valid for 30 days from when the result is first recorded. Use the URL exactly as you received it: its token grants access, and no API key is needed.",
|
|
9382
|
+
"operationId": "getMediaResult",
|
|
9383
|
+
"security": [],
|
|
9384
|
+
"parameters": [
|
|
9385
|
+
{
|
|
9386
|
+
"name": "id",
|
|
9387
|
+
"in": "path",
|
|
9388
|
+
"required": true,
|
|
9389
|
+
"description": "Result ID, followed by the file extension, for example `.png`, `.mp4`, `.mp3` or `.glb`.",
|
|
9390
|
+
"schema": {
|
|
9391
|
+
"type": "string"
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
{
|
|
9395
|
+
"name": "token",
|
|
9396
|
+
"in": "query",
|
|
9397
|
+
"required": true,
|
|
9398
|
+
"description": "Access token from the URL you received.",
|
|
9399
|
+
"schema": {
|
|
9400
|
+
"type": "string",
|
|
9401
|
+
"pattern": "^[a-f0-9]{64}$"
|
|
9402
|
+
}
|
|
9403
|
+
},
|
|
9404
|
+
{
|
|
9405
|
+
"name": "metadata",
|
|
9406
|
+
"in": "query",
|
|
9407
|
+
"required": false,
|
|
9408
|
+
"description": "Return the saving status as JSON instead of the file.",
|
|
9409
|
+
"schema": {
|
|
9410
|
+
"type": "boolean"
|
|
9411
|
+
}
|
|
9412
|
+
}
|
|
9413
|
+
],
|
|
9414
|
+
"responses": {
|
|
9415
|
+
"200": {
|
|
9416
|
+
"description": "The file, or the saving status when `metadata=true`.",
|
|
9417
|
+
"content": {
|
|
9418
|
+
"application/octet-stream": {
|
|
9419
|
+
"schema": {
|
|
9420
|
+
"type": "string",
|
|
9421
|
+
"format": "binary"
|
|
9422
|
+
}
|
|
9423
|
+
},
|
|
9424
|
+
"application/json": {
|
|
9425
|
+
"schema": {
|
|
9426
|
+
"type": "object",
|
|
9427
|
+
"required": [
|
|
9428
|
+
"status",
|
|
9429
|
+
"expires_at",
|
|
9430
|
+
"kind"
|
|
9431
|
+
],
|
|
9432
|
+
"properties": {
|
|
9433
|
+
"status": {
|
|
9434
|
+
"type": "string",
|
|
9435
|
+
"enum": [
|
|
9436
|
+
"saving",
|
|
9437
|
+
"saved",
|
|
9438
|
+
"failed",
|
|
9439
|
+
"expired"
|
|
9440
|
+
]
|
|
9441
|
+
},
|
|
9442
|
+
"expires_at": {
|
|
9443
|
+
"type": "string",
|
|
9444
|
+
"format": "date-time"
|
|
9445
|
+
},
|
|
9446
|
+
"content_type": {
|
|
9447
|
+
"type": [
|
|
9448
|
+
"string",
|
|
9449
|
+
"null"
|
|
9450
|
+
]
|
|
9451
|
+
},
|
|
9452
|
+
"kind": {
|
|
9453
|
+
"type": "string",
|
|
9454
|
+
"enum": [
|
|
9455
|
+
"image",
|
|
9456
|
+
"video",
|
|
9457
|
+
"audio",
|
|
9458
|
+
"3d"
|
|
9459
|
+
]
|
|
9460
|
+
}
|
|
9461
|
+
}
|
|
9462
|
+
},
|
|
9463
|
+
"example": {
|
|
9464
|
+
"status": "saved",
|
|
9465
|
+
"expires_at": "2026-11-06T08:00:00.000Z",
|
|
9466
|
+
"content_type": "video/mp4",
|
|
9467
|
+
"kind": "video"
|
|
9468
|
+
}
|
|
9469
|
+
}
|
|
9470
|
+
}
|
|
9471
|
+
},
|
|
9472
|
+
"302": {
|
|
9473
|
+
"description": "Redirect to a short-lived download URL for a saved image, video or audio file. The download URL lasts at most five minutes."
|
|
9474
|
+
},
|
|
9475
|
+
"404": {
|
|
9476
|
+
"description": "`media_not_found`: the token or file extension does not match the result.",
|
|
9477
|
+
"content": {
|
|
9478
|
+
"application/json": {
|
|
9479
|
+
"schema": {
|
|
9480
|
+
"$ref": "#/components/schemas/ApiError"
|
|
9481
|
+
}
|
|
9482
|
+
}
|
|
9483
|
+
}
|
|
9484
|
+
},
|
|
9485
|
+
"410": {
|
|
9486
|
+
"description": "`media_expired`: the 30-day period has ended, or saving failed more than 24 hours ago.",
|
|
9487
|
+
"content": {
|
|
9488
|
+
"application/json": {
|
|
9489
|
+
"schema": {
|
|
9490
|
+
"$ref": "#/components/schemas/ApiError"
|
|
9491
|
+
}
|
|
9492
|
+
}
|
|
9493
|
+
}
|
|
9494
|
+
},
|
|
9495
|
+
"502": {
|
|
9496
|
+
"description": "`media_unavailable`: the result is not available now. Retry after the `Retry-After` delay.",
|
|
9497
|
+
"content": {
|
|
9498
|
+
"application/json": {
|
|
9499
|
+
"schema": {
|
|
9500
|
+
"$ref": "#/components/schemas/ApiError"
|
|
9501
|
+
}
|
|
9502
|
+
}
|
|
9503
|
+
}
|
|
9504
|
+
},
|
|
9505
|
+
"503": {
|
|
9506
|
+
"description": "`media_unavailable`: the result is not available now. Retry after the `Retry-After` delay.",
|
|
9507
|
+
"content": {
|
|
9508
|
+
"application/json": {
|
|
9509
|
+
"schema": {
|
|
9510
|
+
"$ref": "#/components/schemas/ApiError"
|
|
9511
|
+
}
|
|
9512
|
+
}
|
|
9513
|
+
}
|
|
9514
|
+
}
|
|
9515
|
+
}
|
|
9516
|
+
}
|
|
9399
9517
|
}
|
|
9400
9518
|
},
|
|
9401
9519
|
"components": {
|
|
@@ -9661,7 +9779,45 @@
|
|
|
9661
9779
|
"string",
|
|
9662
9780
|
"null"
|
|
9663
9781
|
],
|
|
9664
|
-
"description": "
|
|
9782
|
+
"description": "TokenLab serves this request at the standard service tier. auto and default are forwarded. Other values, such as flex, priority, fast and ultrafast, are ignored and billed at the standard price."
|
|
9783
|
+
},
|
|
9784
|
+
"anthropic_options": {
|
|
9785
|
+
"type": "object",
|
|
9786
|
+
"description": "Options for Claude models.",
|
|
9787
|
+
"properties": {
|
|
9788
|
+
"prompt_caching": {
|
|
9789
|
+
"type": "boolean",
|
|
9790
|
+
"description": "Set true to cache the start of the prompt on Claude models. TokenLab marks the end of the system prompt and the latest user message as cache points, unless a message already has cache_control."
|
|
9791
|
+
},
|
|
9792
|
+
"prompt_caching_ttl": {
|
|
9793
|
+
"type": "string",
|
|
9794
|
+
"enum": [
|
|
9795
|
+
"5m",
|
|
9796
|
+
"1h"
|
|
9797
|
+
],
|
|
9798
|
+
"description": "Cache lifetime. Defaults to 5m. If the serving route does not support 1h, the 5-minute cache is used and the request is not rejected."
|
|
9799
|
+
}
|
|
9800
|
+
},
|
|
9801
|
+
"additionalProperties": true
|
|
9802
|
+
},
|
|
9803
|
+
"extra": {
|
|
9804
|
+
"type": "object",
|
|
9805
|
+
"description": "Extension options. extra.prompt_caching and extra.prompt_caching_ttl are the same as the anthropic_options fields.",
|
|
9806
|
+
"properties": {
|
|
9807
|
+
"prompt_caching": {
|
|
9808
|
+
"type": "boolean",
|
|
9809
|
+
"description": "Set true to cache the start of the prompt on Claude models. TokenLab marks the end of the system prompt and the latest user message as cache points, unless a message already has cache_control."
|
|
9810
|
+
},
|
|
9811
|
+
"prompt_caching_ttl": {
|
|
9812
|
+
"type": "string",
|
|
9813
|
+
"enum": [
|
|
9814
|
+
"5m",
|
|
9815
|
+
"1h"
|
|
9816
|
+
],
|
|
9817
|
+
"description": "Cache lifetime. Defaults to 5m. If the serving route does not support 1h, the 5-minute cache is used and the request is not rejected."
|
|
9818
|
+
}
|
|
9819
|
+
},
|
|
9820
|
+
"additionalProperties": true
|
|
9665
9821
|
}
|
|
9666
9822
|
},
|
|
9667
9823
|
"additionalProperties": true
|
|
@@ -9824,6 +9980,14 @@
|
|
|
9824
9980
|
"tool_call_id": {
|
|
9825
9981
|
"type": "string",
|
|
9826
9982
|
"description": "ID of the tool call being responded to"
|
|
9983
|
+
},
|
|
9984
|
+
"reasoning_details": {
|
|
9985
|
+
"type": "array",
|
|
9986
|
+
"items": {
|
|
9987
|
+
"type": "object",
|
|
9988
|
+
"additionalProperties": true
|
|
9989
|
+
},
|
|
9990
|
+
"description": "Assistant messages only: the reasoning_details returned in an earlier response, sent back unchanged."
|
|
9827
9991
|
}
|
|
9828
9992
|
}
|
|
9829
9993
|
},
|
|
@@ -9980,6 +10144,18 @@
|
|
|
9980
10144
|
"string",
|
|
9981
10145
|
"null"
|
|
9982
10146
|
]
|
|
10147
|
+
},
|
|
10148
|
+
"reasoning_content": {
|
|
10149
|
+
"type": "string",
|
|
10150
|
+
"description": "Thinking text, when the model thinks. Some models return only a summary, or no text."
|
|
10151
|
+
},
|
|
10152
|
+
"reasoning_details": {
|
|
10153
|
+
"type": "array",
|
|
10154
|
+
"items": {
|
|
10155
|
+
"type": "object",
|
|
10156
|
+
"additionalProperties": true
|
|
10157
|
+
},
|
|
10158
|
+
"description": "Thinking blocks with their signatures. To continue a conversation with thinking, send them back unchanged in the assistant message."
|
|
9983
10159
|
}
|
|
9984
10160
|
}
|
|
9985
10161
|
},
|
|
@@ -10176,14 +10352,13 @@
|
|
|
10176
10352
|
"ImageGenerationRequest": {
|
|
10177
10353
|
"type": "object",
|
|
10178
10354
|
"required": [
|
|
10179
|
-
"model"
|
|
10180
|
-
"prompt"
|
|
10355
|
+
"model"
|
|
10181
10356
|
],
|
|
10182
10357
|
"properties": {
|
|
10183
10358
|
"prompt": {
|
|
10184
10359
|
"type": "string",
|
|
10185
10360
|
"maxLength": 4000,
|
|
10186
|
-
"description": "Image description"
|
|
10361
|
+
"description": "Image description. Required for every model that takes a prompt; a tool whose contract lists no prompt (background removal, upscaling, vectorizing) is called without one."
|
|
10187
10362
|
},
|
|
10188
10363
|
"model": {
|
|
10189
10364
|
"type": "string",
|
|
@@ -10237,7 +10412,7 @@
|
|
|
10237
10412
|
},
|
|
10238
10413
|
"size": {
|
|
10239
10414
|
"type": "string",
|
|
10240
|
-
"description": "Image size. Defaults are model-specific. For gpt-image-2, omit this field or use auto for automatic sizing, or send WIDTHxHEIGHT; custom dimensions must both be multiples of 16, longest edge <= 3840px, long/short ratio <= 3:1, and total pixels between 655,360 and 8,294,400."
|
|
10415
|
+
"description": "Image size. Defaults are model-specific. For gpt-image-2, omit this field or use auto for automatic sizing, or send WIDTHxHEIGHT; custom dimensions must both be multiples of 16, longest edge <= 3840px, long/short ratio <= 3:1, and total pixels between 655,360 and 8,294,400. For Google image models with resolution tiers (gemini-3.1-flash-image, gemini-3-pro-image, gemini-3.1-flash-lite-image, gemini-nano-banana-2.1, nano-banana-2, nano-banana-2.1, nano-banana-pro), send an output size from the model's size table or a resolution tier: 1K, 2K, or 4K. TokenLab sends a tier as resolution. A tier that the model does not support, or a tier that is different from resolution, returns 400 invalid_image_size_contract. The recommended form for these models is aspect_ratio with resolution."
|
|
10241
10416
|
},
|
|
10242
10417
|
"quality": {
|
|
10243
10418
|
"type": "string",
|
|
@@ -10273,8 +10448,7 @@
|
|
|
10273
10448
|
"url",
|
|
10274
10449
|
"b64_json"
|
|
10275
10450
|
],
|
|
10276
|
-
"
|
|
10277
|
-
"description": "Response format"
|
|
10451
|
+
"description": "How the images are returned. Omitted: when the model returns image bytes, each image is in data[].b64_json, and also in data[].url when TokenLab stored it; when the model returns a link, each image is in data[].url. url: only data[].url. b64_json: only data[].b64_json. Links are TokenLab media-result URLs that stay valid for 30 days."
|
|
10278
10452
|
},
|
|
10279
10453
|
"async": {
|
|
10280
10454
|
"type": "boolean",
|
|
@@ -10339,8 +10513,7 @@
|
|
|
10339
10513
|
"ImageGenerationMultipartRequest": {
|
|
10340
10514
|
"type": "object",
|
|
10341
10515
|
"required": [
|
|
10342
|
-
"model"
|
|
10343
|
-
"prompt"
|
|
10516
|
+
"model"
|
|
10344
10517
|
],
|
|
10345
10518
|
"properties": {
|
|
10346
10519
|
"model": {
|
|
@@ -10350,7 +10523,7 @@
|
|
|
10350
10523
|
"prompt": {
|
|
10351
10524
|
"type": "string",
|
|
10352
10525
|
"maxLength": 4000,
|
|
10353
|
-
"description": "Image description"
|
|
10526
|
+
"description": "Image description. Required for every model that takes a prompt; a tool whose contract lists no prompt (background removal, upscaling, vectorizing) is called without one."
|
|
10354
10527
|
},
|
|
10355
10528
|
"operation": {
|
|
10356
10529
|
"type": "string",
|
|
@@ -10507,6 +10680,9 @@
|
|
|
10507
10680
|
},
|
|
10508
10681
|
"error_details": {
|
|
10509
10682
|
"$ref": "#/components/schemas/AsyncTaskErrorDetails"
|
|
10683
|
+
},
|
|
10684
|
+
"media_retention": {
|
|
10685
|
+
"$ref": "#/components/schemas/MediaRetention"
|
|
10510
10686
|
}
|
|
10511
10687
|
},
|
|
10512
10688
|
"required": [
|
|
@@ -10517,14 +10693,14 @@
|
|
|
10517
10693
|
"AudioSpeechRequest": {
|
|
10518
10694
|
"type": "object",
|
|
10519
10695
|
"required": [
|
|
10696
|
+
"model",
|
|
10520
10697
|
"input"
|
|
10521
10698
|
],
|
|
10522
10699
|
"properties": {
|
|
10523
10700
|
"model": {
|
|
10524
10701
|
"type": "string",
|
|
10525
|
-
"
|
|
10526
|
-
"
|
|
10527
|
-
"example": "tts-1"
|
|
10702
|
+
"description": "TTS model. There is no default model. Query GET /v1/models?recommended_for=tts for the current shortlist.",
|
|
10703
|
+
"example": "grok-tts"
|
|
10528
10704
|
},
|
|
10529
10705
|
"input": {
|
|
10530
10706
|
"type": "string",
|
|
@@ -10582,7 +10758,7 @@
|
|
|
10582
10758
|
"sse"
|
|
10583
10759
|
],
|
|
10584
10760
|
"default": "audio",
|
|
10585
|
-
"description": "TokenLab delivery format.
|
|
10761
|
+
"description": "TokenLab delivery format."
|
|
10586
10762
|
},
|
|
10587
10763
|
"speed": {
|
|
10588
10764
|
"type": "number",
|
|
@@ -10613,8 +10789,8 @@
|
|
|
10613
10789
|
},
|
|
10614
10790
|
"model": {
|
|
10615
10791
|
"type": "string",
|
|
10616
|
-
"description": "
|
|
10617
|
-
"example": "whisper-
|
|
10792
|
+
"description": "Transcription model ID. There is no default model.",
|
|
10793
|
+
"example": "whisper-large-v3"
|
|
10618
10794
|
},
|
|
10619
10795
|
"language": {
|
|
10620
10796
|
"type": "string",
|
|
@@ -10719,7 +10895,7 @@
|
|
|
10719
10895
|
},
|
|
10720
10896
|
"model": {
|
|
10721
10897
|
"type": "string",
|
|
10722
|
-
"description": "Model to use (e.g., veo3.1, kling-
|
|
10898
|
+
"description": "Model to use (e.g., veo3.1, kling-v3.0)"
|
|
10723
10899
|
},
|
|
10724
10900
|
"operation": {
|
|
10725
10901
|
"type": "string",
|
|
@@ -10842,7 +11018,7 @@
|
|
|
10842
11018
|
},
|
|
10843
11019
|
"kling_elements": {
|
|
10844
11020
|
"type": "array",
|
|
10845
|
-
"description": "
|
|
11021
|
+
"description": "Element references for image-conditioned requests on models that explicitly support this field. Define 1-3 elements and reference them in the prompt with @name. Each element requires 2-4 image URLs in element_input_urls. Do not combine kling_elements with output_audio=true; omit output_audio or set it to false for element-reference requests.",
|
|
10846
11022
|
"minItems": 1,
|
|
10847
11023
|
"maxItems": 3,
|
|
10848
11024
|
"items": {
|
|
@@ -11145,6 +11321,9 @@
|
|
|
11145
11321
|
"draft_task_id": {
|
|
11146
11322
|
"type": "string",
|
|
11147
11323
|
"description": "Seedance draft task identifier when returned by the adapter."
|
|
11324
|
+
},
|
|
11325
|
+
"media_retention": {
|
|
11326
|
+
"$ref": "#/components/schemas/MediaRetention"
|
|
11148
11327
|
}
|
|
11149
11328
|
},
|
|
11150
11329
|
"required": [
|
|
@@ -11274,6 +11453,9 @@
|
|
|
11274
11453
|
},
|
|
11275
11454
|
"fbx_url": {
|
|
11276
11455
|
"type": "string"
|
|
11456
|
+
},
|
|
11457
|
+
"media_retention": {
|
|
11458
|
+
"$ref": "#/components/schemas/MediaRetention"
|
|
11277
11459
|
}
|
|
11278
11460
|
}
|
|
11279
11461
|
},
|
|
@@ -11603,21 +11785,44 @@
|
|
|
11603
11785
|
]
|
|
11604
11786
|
},
|
|
11605
11787
|
"input_per_1m": {
|
|
11606
|
-
"type": "string"
|
|
11788
|
+
"type": "string",
|
|
11789
|
+
"description": "TokenLab Verified price per 1M input tokens. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
11607
11790
|
},
|
|
11608
11791
|
"output_per_1m": {
|
|
11609
|
-
"type": "string"
|
|
11792
|
+
"type": "string",
|
|
11793
|
+
"description": "TokenLab Verified price per 1M output tokens. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
11610
11794
|
},
|
|
11611
11795
|
"per_request": {
|
|
11612
|
-
"type": "string"
|
|
11796
|
+
"type": "string",
|
|
11797
|
+
"description": "TokenLab Verified price per request. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
11613
11798
|
},
|
|
11614
11799
|
"min_price": {
|
|
11615
11800
|
"type": "string",
|
|
11616
|
-
"description": "
|
|
11801
|
+
"description": "Lowest TokenLab Verified price for a model with structured pricing. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
11617
11802
|
},
|
|
11618
11803
|
"max_price": {
|
|
11619
11804
|
"type": "string",
|
|
11620
|
-
"description": "
|
|
11805
|
+
"description": "Highest TokenLab Verified price for a model with structured pricing. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
11806
|
+
},
|
|
11807
|
+
"official_input_per_1m": {
|
|
11808
|
+
"type": "string",
|
|
11809
|
+
"description": "Official price per 1M input tokens. Requests that Official delivers are billed at this price."
|
|
11810
|
+
},
|
|
11811
|
+
"official_output_per_1m": {
|
|
11812
|
+
"type": "string",
|
|
11813
|
+
"description": "Official price per 1M output tokens. Requests that Official delivers are billed at this price."
|
|
11814
|
+
},
|
|
11815
|
+
"official_per_request": {
|
|
11816
|
+
"type": "string",
|
|
11817
|
+
"description": "Official price per request. Requests that Official delivers are billed at this price."
|
|
11818
|
+
},
|
|
11819
|
+
"official_min_price": {
|
|
11820
|
+
"type": "string",
|
|
11821
|
+
"description": "Lowest Official price for a model with structured pricing."
|
|
11822
|
+
},
|
|
11823
|
+
"official_max_price": {
|
|
11824
|
+
"type": "string",
|
|
11825
|
+
"description": "Highest Official price for a model with structured pricing."
|
|
11621
11826
|
},
|
|
11622
11827
|
"has_complex_pricing": {
|
|
11623
11828
|
"type": "boolean"
|
|
@@ -11774,7 +11979,7 @@
|
|
|
11774
11979
|
},
|
|
11775
11980
|
"code": {
|
|
11776
11981
|
"type": "string",
|
|
11777
|
-
"description": "Error code"
|
|
11982
|
+
"description": "Error code. Branch on this value, not on `message`. 400 codes include `invalid_request_error`, `missing_required_parameter`, `invalid_value`, `invalid_image_url`, `unsupported_model_capability` and `unpriceable_selection`."
|
|
11778
11983
|
},
|
|
11779
11984
|
"param": {
|
|
11780
11985
|
"type": "string",
|
|
@@ -13275,6 +13480,44 @@
|
|
|
13275
13480
|
"model": {
|
|
13276
13481
|
"type": "string"
|
|
13277
13482
|
},
|
|
13483
|
+
"deliveryAvailability": {
|
|
13484
|
+
"type": "object",
|
|
13485
|
+
"description": "Current model availability by delivery tier; omitted when the source projection is unavailable.",
|
|
13486
|
+
"properties": {
|
|
13487
|
+
"verified": {
|
|
13488
|
+
"type": "boolean",
|
|
13489
|
+
"description": "Whether this model has eligible TokenLab Verified delivery supply."
|
|
13490
|
+
},
|
|
13491
|
+
"official": {
|
|
13492
|
+
"type": "boolean",
|
|
13493
|
+
"description": "Whether this model has eligible Official delivery supply."
|
|
13494
|
+
},
|
|
13495
|
+
"operations": {
|
|
13496
|
+
"type": "object",
|
|
13497
|
+
"additionalProperties": {
|
|
13498
|
+
"type": "object",
|
|
13499
|
+
"properties": {
|
|
13500
|
+
"verified": {
|
|
13501
|
+
"type": "boolean"
|
|
13502
|
+
},
|
|
13503
|
+
"official": {
|
|
13504
|
+
"type": "boolean"
|
|
13505
|
+
}
|
|
13506
|
+
},
|
|
13507
|
+
"required": [
|
|
13508
|
+
"verified",
|
|
13509
|
+
"official"
|
|
13510
|
+
],
|
|
13511
|
+
"additionalProperties": false
|
|
13512
|
+
}
|
|
13513
|
+
}
|
|
13514
|
+
},
|
|
13515
|
+
"required": [
|
|
13516
|
+
"verified",
|
|
13517
|
+
"official"
|
|
13518
|
+
],
|
|
13519
|
+
"additionalProperties": false
|
|
13520
|
+
},
|
|
13278
13521
|
"pricing_unit": {
|
|
13279
13522
|
"type": "string"
|
|
13280
13523
|
},
|
|
@@ -13309,8 +13552,12 @@
|
|
|
13309
13552
|
"additionalProperties": true
|
|
13310
13553
|
},
|
|
13311
13554
|
"scalar_pricing": {
|
|
13312
|
-
"
|
|
13313
|
-
"
|
|
13555
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
13556
|
+
"description": "TokenLab Verified price. The price fields are null when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
13557
|
+
},
|
|
13558
|
+
"official_scalar_pricing": {
|
|
13559
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
13560
|
+
"description": "Official price. Requests that Official delivers are billed at this price."
|
|
13314
13561
|
}
|
|
13315
13562
|
},
|
|
13316
13563
|
"additionalProperties": true
|
|
@@ -13785,6 +14032,44 @@
|
|
|
13785
14032
|
"provider": {
|
|
13786
14033
|
"type": "string"
|
|
13787
14034
|
},
|
|
14035
|
+
"deliveryAvailability": {
|
|
14036
|
+
"type": "object",
|
|
14037
|
+
"description": "Current model availability by delivery tier; omitted when the source projection is unavailable.",
|
|
14038
|
+
"properties": {
|
|
14039
|
+
"verified": {
|
|
14040
|
+
"type": "boolean",
|
|
14041
|
+
"description": "Whether this model has eligible TokenLab Verified delivery supply."
|
|
14042
|
+
},
|
|
14043
|
+
"official": {
|
|
14044
|
+
"type": "boolean",
|
|
14045
|
+
"description": "Whether this model has eligible Official delivery supply."
|
|
14046
|
+
},
|
|
14047
|
+
"operations": {
|
|
14048
|
+
"type": "object",
|
|
14049
|
+
"additionalProperties": {
|
|
14050
|
+
"type": "object",
|
|
14051
|
+
"properties": {
|
|
14052
|
+
"verified": {
|
|
14053
|
+
"type": "boolean"
|
|
14054
|
+
},
|
|
14055
|
+
"official": {
|
|
14056
|
+
"type": "boolean"
|
|
14057
|
+
}
|
|
14058
|
+
},
|
|
14059
|
+
"required": [
|
|
14060
|
+
"verified",
|
|
14061
|
+
"official"
|
|
14062
|
+
],
|
|
14063
|
+
"additionalProperties": false
|
|
14064
|
+
}
|
|
14065
|
+
}
|
|
14066
|
+
},
|
|
14067
|
+
"required": [
|
|
14068
|
+
"verified",
|
|
14069
|
+
"official"
|
|
14070
|
+
],
|
|
14071
|
+
"additionalProperties": false
|
|
14072
|
+
},
|
|
13788
14073
|
"is_lock_price": {
|
|
13789
14074
|
"type": "boolean"
|
|
13790
14075
|
},
|
|
@@ -13804,19 +14089,43 @@
|
|
|
13804
14089
|
"type": [
|
|
13805
14090
|
"string",
|
|
13806
14091
|
"null"
|
|
13807
|
-
]
|
|
14092
|
+
],
|
|
14093
|
+
"description": "TokenLab Verified price per 1M input tokens. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
13808
14094
|
},
|
|
13809
14095
|
"output_per_1m_tokens": {
|
|
13810
14096
|
"type": [
|
|
13811
14097
|
"string",
|
|
13812
14098
|
"null"
|
|
13813
|
-
]
|
|
14099
|
+
],
|
|
14100
|
+
"description": "TokenLab Verified price per 1M output tokens. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
13814
14101
|
},
|
|
13815
14102
|
"lock_price_per_request": {
|
|
13816
14103
|
"type": [
|
|
13817
14104
|
"string",
|
|
13818
14105
|
"null"
|
|
13819
|
-
]
|
|
14106
|
+
],
|
|
14107
|
+
"description": "TokenLab Verified price per request. Omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
14108
|
+
},
|
|
14109
|
+
"official_input_per_1m_tokens": {
|
|
14110
|
+
"type": [
|
|
14111
|
+
"string",
|
|
14112
|
+
"null"
|
|
14113
|
+
],
|
|
14114
|
+
"description": "Official price per 1M input tokens. Requests that Official delivers are billed at this price."
|
|
14115
|
+
},
|
|
14116
|
+
"official_output_per_1m_tokens": {
|
|
14117
|
+
"type": [
|
|
14118
|
+
"string",
|
|
14119
|
+
"null"
|
|
14120
|
+
],
|
|
14121
|
+
"description": "Official price per 1M output tokens. Requests that Official delivers are billed at this price."
|
|
14122
|
+
},
|
|
14123
|
+
"official_lock_price_per_request": {
|
|
14124
|
+
"type": [
|
|
14125
|
+
"string",
|
|
14126
|
+
"null"
|
|
14127
|
+
],
|
|
14128
|
+
"description": "Official price per request. Requests that Official delivers are billed at this price."
|
|
13820
14129
|
},
|
|
13821
14130
|
"has_complex_pricing": {
|
|
13822
14131
|
"type": "boolean"
|
|
@@ -14326,7 +14635,7 @@
|
|
|
14326
14635
|
"model": {
|
|
14327
14636
|
"type": "string",
|
|
14328
14637
|
"description": "Model to use for multimodal embeddings",
|
|
14329
|
-
"example": "
|
|
14638
|
+
"example": "qwen3-vl-embedding"
|
|
14330
14639
|
},
|
|
14331
14640
|
"input": {
|
|
14332
14641
|
"oneOf": [
|
|
@@ -14502,8 +14811,12 @@
|
|
|
14502
14811
|
"additionalProperties": false
|
|
14503
14812
|
},
|
|
14504
14813
|
"pricing": {
|
|
14505
|
-
"
|
|
14506
|
-
"
|
|
14814
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
14815
|
+
"description": "TokenLab Verified price. The price fields are null when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
14816
|
+
},
|
|
14817
|
+
"official_pricing": {
|
|
14818
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
14819
|
+
"description": "Official price. Requests that Official delivers are billed at this price."
|
|
14507
14820
|
},
|
|
14508
14821
|
"capabilities": {
|
|
14509
14822
|
"type": "array",
|
|
@@ -14540,7 +14853,16 @@
|
|
|
14540
14853
|
"object",
|
|
14541
14854
|
"null"
|
|
14542
14855
|
],
|
|
14543
|
-
"additionalProperties": true
|
|
14856
|
+
"additionalProperties": true,
|
|
14857
|
+
"description": "TokenLab Verified prompt-cache prices. Null or omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
14858
|
+
},
|
|
14859
|
+
"official_cache_pricing": {
|
|
14860
|
+
"type": [
|
|
14861
|
+
"object",
|
|
14862
|
+
"null"
|
|
14863
|
+
],
|
|
14864
|
+
"additionalProperties": true,
|
|
14865
|
+
"description": "Official prompt-cache prices. Null or omitted when none are published."
|
|
14544
14866
|
},
|
|
14545
14867
|
"has_complex_pricing": {
|
|
14546
14868
|
"type": "boolean"
|
|
@@ -14754,6 +15076,7 @@
|
|
|
14754
15076
|
"required": [
|
|
14755
15077
|
"aliases",
|
|
14756
15078
|
"pricing",
|
|
15079
|
+
"official_pricing",
|
|
14757
15080
|
"capabilities",
|
|
14758
15081
|
"max_input_tokens",
|
|
14759
15082
|
"max_output_tokens",
|
|
@@ -14815,8 +15138,12 @@
|
|
|
14815
15138
|
"additionalProperties": false
|
|
14816
15139
|
},
|
|
14817
15140
|
"pricing": {
|
|
14818
|
-
"
|
|
14819
|
-
"
|
|
15141
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
15142
|
+
"description": "TokenLab Verified price. The price fields are null when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
15143
|
+
},
|
|
15144
|
+
"official_pricing": {
|
|
15145
|
+
"$ref": "#/components/schemas/ScalarPricing",
|
|
15146
|
+
"description": "Official price. Requests that Official delivers are billed at this price."
|
|
14820
15147
|
},
|
|
14821
15148
|
"capabilities": {
|
|
14822
15149
|
"type": "array",
|
|
@@ -14853,7 +15180,16 @@
|
|
|
14853
15180
|
"object",
|
|
14854
15181
|
"null"
|
|
14855
15182
|
],
|
|
14856
|
-
"additionalProperties": true
|
|
15183
|
+
"additionalProperties": true,
|
|
15184
|
+
"description": "TokenLab Verified prompt-cache prices. Null or omitted when the model has no Verified supply (`deliveryAvailability.verified` is false)."
|
|
15185
|
+
},
|
|
15186
|
+
"official_cache_pricing": {
|
|
15187
|
+
"type": [
|
|
15188
|
+
"object",
|
|
15189
|
+
"null"
|
|
15190
|
+
],
|
|
15191
|
+
"additionalProperties": true,
|
|
15192
|
+
"description": "Official prompt-cache prices. Null or omitted when none are published."
|
|
14857
15193
|
},
|
|
14858
15194
|
"has_complex_pricing": {
|
|
14859
15195
|
"type": "boolean"
|
|
@@ -16684,6 +17020,18 @@
|
|
|
16684
17020
|
"null"
|
|
16685
17021
|
]
|
|
16686
17022
|
},
|
|
17023
|
+
"webSearch": {
|
|
17024
|
+
"type": [
|
|
17025
|
+
"string",
|
|
17026
|
+
"null"
|
|
17027
|
+
]
|
|
17028
|
+
},
|
|
17029
|
+
"groundedPrompt": {
|
|
17030
|
+
"type": [
|
|
17031
|
+
"string",
|
|
17032
|
+
"null"
|
|
17033
|
+
]
|
|
17034
|
+
},
|
|
16687
17035
|
"structured": {
|
|
16688
17036
|
"anyOf": [
|
|
16689
17037
|
{
|
|
@@ -17551,6 +17899,111 @@
|
|
|
17551
17899
|
}
|
|
17552
17900
|
},
|
|
17553
17901
|
"additionalProperties": true
|
|
17902
|
+
},
|
|
17903
|
+
"MediaRetention": {
|
|
17904
|
+
"type": "object",
|
|
17905
|
+
"description": "Saving status of the media results in this response. Present when the status is known within the response time limit; when it is absent, the media URLs still work.",
|
|
17906
|
+
"required": [
|
|
17907
|
+
"days",
|
|
17908
|
+
"items"
|
|
17909
|
+
],
|
|
17910
|
+
"properties": {
|
|
17911
|
+
"days": {
|
|
17912
|
+
"type": "integer",
|
|
17913
|
+
"description": "Days a media-result URL stays valid after the result is first recorded.",
|
|
17914
|
+
"example": 30
|
|
17915
|
+
},
|
|
17916
|
+
"items": {
|
|
17917
|
+
"type": "array",
|
|
17918
|
+
"items": {
|
|
17919
|
+
"type": "object",
|
|
17920
|
+
"required": [
|
|
17921
|
+
"url",
|
|
17922
|
+
"kind",
|
|
17923
|
+
"status",
|
|
17924
|
+
"expires_at"
|
|
17925
|
+
],
|
|
17926
|
+
"properties": {
|
|
17927
|
+
"url": {
|
|
17928
|
+
"type": "string",
|
|
17929
|
+
"format": "uri"
|
|
17930
|
+
},
|
|
17931
|
+
"kind": {
|
|
17932
|
+
"type": "string",
|
|
17933
|
+
"enum": [
|
|
17934
|
+
"image",
|
|
17935
|
+
"video",
|
|
17936
|
+
"audio",
|
|
17937
|
+
"3d"
|
|
17938
|
+
]
|
|
17939
|
+
},
|
|
17940
|
+
"content_type": {
|
|
17941
|
+
"type": "string"
|
|
17942
|
+
},
|
|
17943
|
+
"status": {
|
|
17944
|
+
"type": "string",
|
|
17945
|
+
"enum": [
|
|
17946
|
+
"saving",
|
|
17947
|
+
"saved",
|
|
17948
|
+
"failed",
|
|
17949
|
+
"expired"
|
|
17950
|
+
]
|
|
17951
|
+
},
|
|
17952
|
+
"expires_at": {
|
|
17953
|
+
"type": "string",
|
|
17954
|
+
"format": "date-time"
|
|
17955
|
+
}
|
|
17956
|
+
},
|
|
17957
|
+
"additionalProperties": false
|
|
17958
|
+
}
|
|
17959
|
+
}
|
|
17960
|
+
},
|
|
17961
|
+
"additionalProperties": false
|
|
17962
|
+
},
|
|
17963
|
+
"ScalarPricing": {
|
|
17964
|
+
"type": "object",
|
|
17965
|
+
"description": "One scalar price layer in USD. Token prices are per 1M tokens.",
|
|
17966
|
+
"properties": {
|
|
17967
|
+
"input_per_1m": {
|
|
17968
|
+
"type": [
|
|
17969
|
+
"string",
|
|
17970
|
+
"null"
|
|
17971
|
+
],
|
|
17972
|
+
"description": "Price per 1M input tokens. Null for per-request pricing."
|
|
17973
|
+
},
|
|
17974
|
+
"output_per_1m": {
|
|
17975
|
+
"type": [
|
|
17976
|
+
"string",
|
|
17977
|
+
"null"
|
|
17978
|
+
],
|
|
17979
|
+
"description": "Price per 1M output tokens. Null for per-request pricing."
|
|
17980
|
+
},
|
|
17981
|
+
"per_request": {
|
|
17982
|
+
"type": [
|
|
17983
|
+
"string",
|
|
17984
|
+
"null"
|
|
17985
|
+
],
|
|
17986
|
+
"description": "Price per request. Null for per-token pricing."
|
|
17987
|
+
},
|
|
17988
|
+
"is_lock_price": {
|
|
17989
|
+
"type": "boolean",
|
|
17990
|
+
"description": "Whether the model is priced per request."
|
|
17991
|
+
},
|
|
17992
|
+
"currency": {
|
|
17993
|
+
"type": "string",
|
|
17994
|
+
"enum": [
|
|
17995
|
+
"USD"
|
|
17996
|
+
]
|
|
17997
|
+
}
|
|
17998
|
+
},
|
|
17999
|
+
"required": [
|
|
18000
|
+
"input_per_1m",
|
|
18001
|
+
"output_per_1m",
|
|
18002
|
+
"per_request",
|
|
18003
|
+
"is_lock_price",
|
|
18004
|
+
"currency"
|
|
18005
|
+
],
|
|
18006
|
+
"additionalProperties": true
|
|
17554
18007
|
}
|
|
17555
18008
|
},
|
|
17556
18009
|
"responses": {
|
|
@@ -17561,18 +18014,77 @@
|
|
|
17561
18014
|
"schema": {
|
|
17562
18015
|
"$ref": "#/components/schemas/ValidationError"
|
|
17563
18016
|
},
|
|
17564
|
-
"
|
|
17565
|
-
"
|
|
17566
|
-
"
|
|
17567
|
-
"
|
|
17568
|
-
|
|
18017
|
+
"examples": {
|
|
18018
|
+
"validation": {
|
|
18019
|
+
"summary": "Invalid field",
|
|
18020
|
+
"value": {
|
|
18021
|
+
"error": {
|
|
18022
|
+
"message": "model: Model is required",
|
|
18023
|
+
"type": "invalid_request_error",
|
|
18024
|
+
"param": "model"
|
|
18025
|
+
},
|
|
18026
|
+
"validation_errors": [
|
|
18027
|
+
{
|
|
18028
|
+
"field": "model",
|
|
18029
|
+
"message": "Model is required"
|
|
18030
|
+
}
|
|
18031
|
+
]
|
|
18032
|
+
}
|
|
17569
18033
|
},
|
|
17570
|
-
"
|
|
17571
|
-
|
|
17572
|
-
|
|
17573
|
-
"
|
|
18034
|
+
"missingRequiredParameter": {
|
|
18035
|
+
"summary": "Required field is missing",
|
|
18036
|
+
"value": {
|
|
18037
|
+
"error": {
|
|
18038
|
+
"message": "model is required",
|
|
18039
|
+
"type": "invalid_request_error",
|
|
18040
|
+
"code": "missing_required_parameter",
|
|
18041
|
+
"param": "model"
|
|
18042
|
+
}
|
|
17574
18043
|
}
|
|
17575
|
-
|
|
18044
|
+
},
|
|
18045
|
+
"invalidValue": {
|
|
18046
|
+
"summary": "Value the model does not accept",
|
|
18047
|
+
"value": {
|
|
18048
|
+
"error": {
|
|
18049
|
+
"message": "reasoning_effort \"max\" is not supported for this model. Supported values: low, medium, high.",
|
|
18050
|
+
"type": "invalid_request_error",
|
|
18051
|
+
"code": "invalid_value",
|
|
18052
|
+
"param": "reasoning_effort"
|
|
18053
|
+
}
|
|
18054
|
+
}
|
|
18055
|
+
},
|
|
18056
|
+
"invalidImageUrl": {
|
|
18057
|
+
"summary": "Image URL cannot be used",
|
|
18058
|
+
"value": {
|
|
18059
|
+
"error": {
|
|
18060
|
+
"message": "image_url could not be downloaded from the image URL: the connection to the image host timed out. The URL must be publicly reachable from the internet (hosts that serve only mainland China networks can be unreachable). Use a different image URL or send the image as a base64 data URL.",
|
|
18061
|
+
"type": "invalid_request_error",
|
|
18062
|
+
"code": "invalid_image_url",
|
|
18063
|
+
"param": "image_url"
|
|
18064
|
+
}
|
|
18065
|
+
}
|
|
18066
|
+
},
|
|
18067
|
+
"unsupportedModelCapability": {
|
|
18068
|
+
"summary": "No route of the Delivery tier supports a parameter",
|
|
18069
|
+
"value": {
|
|
18070
|
+
"error": {
|
|
18071
|
+
"message": "Model gpt-4.1-mini cannot serve this request for operation 'chat' on the routes this request can use: web_search_options is not supported. Change these parameters, or choose another model or Delivery tier.",
|
|
18072
|
+
"type": "invalid_request_error",
|
|
18073
|
+
"code": "unsupported_model_capability"
|
|
18074
|
+
}
|
|
18075
|
+
}
|
|
18076
|
+
},
|
|
18077
|
+
"unpriceableSelection": {
|
|
18078
|
+
"summary": "Video request cannot be priced",
|
|
18079
|
+
"value": {
|
|
18080
|
+
"error": {
|
|
18081
|
+
"message": "This image-to-video request cannot be priced without resolution. Set resolution explicitly if the operation accepts it.",
|
|
18082
|
+
"type": "invalid_request_error",
|
|
18083
|
+
"code": "unpriceable_selection",
|
|
18084
|
+
"param": "resolution"
|
|
18085
|
+
}
|
|
18086
|
+
}
|
|
18087
|
+
}
|
|
17576
18088
|
}
|
|
17577
18089
|
}
|
|
17578
18090
|
}
|
|
@@ -17772,6 +18284,18 @@
|
|
|
17772
18284
|
"request_id": "req_01JEXAMPLE"
|
|
17773
18285
|
}
|
|
17774
18286
|
}
|
|
18287
|
+
},
|
|
18288
|
+
"pricingUnavailable": {
|
|
18289
|
+
"summary": "TokenLab cannot price this request",
|
|
18290
|
+
"value": {
|
|
18291
|
+
"error": {
|
|
18292
|
+
"message": "TokenLab cannot serve model gpt-image-2 with operation 'image-edit' right now because it cannot price this request on the routes this request can use. The request was not charged.",
|
|
18293
|
+
"type": "all_channels_failed",
|
|
18294
|
+
"code": "model_pricing_unavailable",
|
|
18295
|
+
"retryable": false,
|
|
18296
|
+
"request_id": "req_01JEXAMPLE"
|
|
18297
|
+
}
|
|
18298
|
+
}
|
|
17775
18299
|
}
|
|
17776
18300
|
}
|
|
17777
18301
|
}
|