vercel/ai · error · UnsupportedFunctionalityError
Anthropic Message Batches do not support speed (request "${r
Error message
Anthropic Message Batches do not support speed (request "${requestId}"). What it means
Error "Anthropic Message Batches do not support speed (request "${requestId}")." thrown in vercel/ai.
Source
Thrown at packages/anthropic/src/anthropic-messages-batch.ts:456
throw new InvalidArgumentError({
argument: 'requests',
message: `Anthropic batch request IDs must be unique; duplicate ID "${request.id}".`,
});
}
ids.add(request.id);
}
}
function validateAnthropicBatchBody({
body,
requestId,
}: {
body: Record<string, unknown>;
requestId: string;
}) {
if (body.speed != null) {
throw new UnsupportedFunctionalityError({
functionality: 'providerOptions.anthropic.speed',
message:
`Anthropic Message Batches do not support speed ` +
`(request "${requestId}").`,
});
}
if (
Array.isArray(body.fallbacks) &&
body.fallbacks.some(
fallback =>
fallback != null &&
typeof fallback === 'object' &&
'speed' in fallback &&
fallback.speed != null,
)
) {
throw new UnsupportedFunctionalityError({View on GitHub (pinned to 69428b1f8b)
When it happens
Trigger: Thrown at packages/anthropic/src/anthropic-messages-batch.ts:456 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of vercel/ai@69428b1f8b (2026-08-30).
Data as JSON: /api/errors/15fb03773d215b5c.
Report an issue: GitHub.