File tree Expand file tree Collapse file tree
api-resources/beta/messages Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11configured_endpoints : 34
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-267f913f89364cb8df3a758335a974b43eb98019a8ceef0a9b0a94ef34c2a3b5 .yml
3- openapi_spec_hash : aa708f3d3bc54992526cbf5894427446
4- config_hash : d56fbaeeb3934b1a3b374590c9837ddd
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-fee5dc365a4948e68639582c5301d4d0666c7d85a11628d7917e1477f76d3da1 .yml
3+ openapi_spec_hash : d5543958074cd2bd74096cd69f3bb4f9
4+ config_hash : c4802b6c7f8ffae62f7d73b2ac61e635
Original file line number Diff line number Diff line change @@ -245,7 +245,8 @@ export type AnthropicBeta =
245245 | 'context-1m-2025-08-07'
246246 | 'context-management-2025-06-27'
247247 | 'model-context-window-exceeded-2025-08-26'
248- | 'skills-2025-10-02' ;
248+ | 'skills-2025-10-02'
249+ | 'fast-mode-2026-02-01' ;
249250
250251export interface BetaAPIError {
251252 message : string ;
Original file line number Diff line number Diff line change @@ -592,6 +592,12 @@ export namespace BatchCreateParams {
592592 */
593593 service_tier ?: 'auto' | 'standard_only' ;
594594
595+ /**
596+ * The inference speed mode for this request. `"fast"` enables high
597+ * output-tokens-per-second inference.
598+ */
599+ speed ?: 'standard' | 'fast' | null ;
600+
595601 /**
596602 * Custom text sequences that will cause the model to stop generating.
597603 *
Original file line number Diff line number Diff line change @@ -2907,6 +2907,11 @@ export interface BetaUsage {
29072907 * If the request used the priority, standard, or batch tier.
29082908 */
29092909 service_tier : 'standard' | 'priority' | 'batch' | null ;
2910+
2911+ /**
2912+ * The inference speed mode used for this request.
2913+ */
2914+ speed : 'standard' | 'fast' | null ;
29102915}
29112916
29122917export interface BetaWebFetchBlock {
@@ -3345,6 +3350,12 @@ export interface MessageCreateParamsBase {
33453350 */
33463351 service_tier ?: 'auto' | 'standard_only' ;
33473352
3353+ /**
3354+ * Body param: The inference speed mode for this request. `"fast"` enables high
3355+ * output-tokens-per-second inference.
3356+ */
3357+ speed ?: 'standard' | 'fast' | null ;
3358+
33483359 /**
33493360 * Body param: Custom text sequences that will cause the model to stop generating.
33503361 *
@@ -3645,6 +3656,12 @@ export interface MessageCountTokensParams {
36453656 */
36463657 output_format ?: BetaJSONOutputFormat | null ;
36473658
3659+ /**
3660+ * Body param: The inference speed mode for this request. `"fast"` enables high
3661+ * output-tokens-per-second inference.
3662+ */
3663+ speed ?: 'standard' | 'fast' | null ;
3664+
36483665 /**
36493666 * Body param: System prompt.
36503667 *
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ describe('resource batches', () => {
8686 type : 'json_schema' ,
8787 } ,
8888 service_tier : 'auto' ,
89+ speed : 'standard' ,
8990 stop_sequences : [ 'string' ] ,
9091 stream : false ,
9192 system : [
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ describe('resource messages', () => {
7575 type : 'json_schema' ,
7676 } ,
7777 service_tier : 'auto' ,
78+ speed : 'standard' ,
7879 stop_sequences : [ 'string' ] ,
7980 stream : false ,
8081 system : [
@@ -173,6 +174,7 @@ describe('resource messages', () => {
173174 schema : { foo : 'bar' } ,
174175 type : 'json_schema' ,
175176 } ,
177+ speed : 'standard' ,
176178 system : [
177179 {
178180 text : "Today's date is 2024-06-01." ,
Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ describe('Beta Parser', () => {
8787 service_tier : null ,
8888 inference_geo : null ,
8989 iterations : null ,
90+ speed : null ,
9091 } ,
9192 container : null ,
9293 } ;
@@ -263,6 +264,7 @@ describe('Beta Parser', () => {
263264 service_tier : null ,
264265 inference_geo : null ,
265266 iterations : null ,
267+ speed : null ,
266268 } ,
267269 container : null ,
268270 } ;
Original file line number Diff line number Diff line change @@ -112,6 +112,7 @@ function betaMessageToStreamEvents(message: BetaMessage): BetaRawMessageStreamEv
112112 service_tier : null ,
113113 inference_geo : null ,
114114 iterations : null ,
115+ speed : null ,
115116 } ,
116117 } ,
117118 } ) ;
@@ -240,6 +241,7 @@ function setupTest(params: Partial<ToolRunnerParams> = {}): SetupTestResult<bool
240241 service_tier : null ,
241242 inference_geo : null ,
242243 iterations : null ,
244+ speed : null ,
243245 } ,
244246 } ;
245247 handleRequest ( async ( ) => {
@@ -275,6 +277,7 @@ function setupTest(params: Partial<ToolRunnerParams> = {}): SetupTestResult<bool
275277 service_tier : null ,
276278 inference_geo : null ,
277279 iterations : null ,
280+ speed : null ,
278281 } ,
279282 } ;
280283
You can’t perform that action at this time.
0 commit comments