Amazon Bedrock · Amazon Nova Micro, Nova Lite, Nova Pro & Nova Canvas · 2026-11-26 · Amazon Nova Models arc

Amazon Nova Models for MCP Servers: Fourteen Production Gotchas Across Micro, Lite, Pro, and Canvas

Four Amazon Nova model pages synthesised into a complete production playbook for MCP server developers — covering Nova Micro (text-only 128k context, the routing and classification layer: 5120-token output ceiling, topK raises ValidationException, text-only constraint silently fails multimodal requests, and structured output via forced ConverseToolConfig rather than a native JSON mode), Nova Lite (multimodal 300k context: video requires S3 URI not base64, single video per request, image MIME type must match declared format, and 300k tokens consumed rapidly by media), Nova Pro (highest Nova capability for agentic tool use: 5120 ceiling truncates long tool payloads, toolUseId must reference a valid prior block, multiple tools per turn must all be executed before the next user message, and no explicit thinking parameter unlike Claude 3.7 Sonnet), and Nova Canvas (image generation via InvokeModelCommand not Converse: cross-region IDs are not valid, cfgScale starts at 1.1 not 0, request body must be Uint8Array not a string, and dimensions must exactly match a supported size). The fourteen production gotchas consolidated below each fail silently or with a confusing error name rather than a clear diagnostic message.

Why Amazon Nova for MCP servers

Amazon's Nova model family — Micro, Lite, Pro, and Canvas — was introduced as Amazon's own foundation model line available through Bedrock, covering the full spectrum from cheap text processing to multimodal analysis to image generation. For MCP server developers, the Nova family is attractive for three reasons.

First, Nova models have independent throughput quotas from Claude. If your MCP server is already saturating its Claude Sonnet on-demand quota at peak hours, switching parts of the workload to Nova Micro or Nova Pro gives you a fresh quota without waiting for a Service Quotas increase. The models are on separate throttling paths.

Second, cost structure. Nova Micro is the cheapest model in the Bedrock catalog for text-only workloads, and Nova Lite is competitive with Claude Haiku for image-heavy tasks. For classification pipelines, routing layers, and batch document processing that run hundreds of times per minute, the per-token savings are meaningful at scale.

Third, the same API surface. Nova Micro, Lite, and Pro all use the Bedrock Converse API — the same ConverseCommand, ConverseStreamCommand, and ConverseToolConfig structure that Claude uses. The model abstraction is intentional: switching from Claude to Nova Pro in an existing MCP server is a single constant change. The issue is that the abstraction is not perfect — the Nova models have specific constraints that Claude tolerates silently, and those differences appear only when requests hit the edge cases.

Nova Canvas is the exception. It uses InvokeModelCommand, not Converse, and its API is completely different from the text models. We cover it last.

The Nova family at a glance

Model Use case Context Max output Modalities API
Nova Micro Routing, classification, cheap text 128k tokens 5,120 tokens Text only Converse
Nova Lite Multimodal analysis, screenshots, documents 300k tokens 5,120 tokens Text, image, video, document Converse
Nova Pro Agentic tool use, complex reasoning 300k tokens 5,120 tokens Text, image, video, document Converse
Nova Canvas Image generation and editing N/A N/A (images) Image generation InvokeModel

All three Converse-based models share the same InferenceConfiguration constraints: maxTokens 1–5120, temperature 0.0–1.0, topP 0.0–1.0, and no topK support. This is the first place Claude migrations break — Claude accepts topK silently; Nova raises a hard error.

Cross-region inference profile IDs

Nova Micro, Lite, and Pro all support cross-region inference profile IDs with geographic prefixes. Use these in production for higher throughput:

// Nova Micro
"us.amazon.nova-micro-v1:0"   // US: us-east-1, us-west-2, us-east-2
"eu.amazon.nova-micro-v1:0"   // EU regions
"ap.amazon.nova-micro-v1:0"   // AP regions

// Nova Lite
"us.amazon.nova-lite-v1:0"

// Nova Pro
"us.amazon.nova-pro-v1:0"

// Nova Canvas — cross-region IDs do NOT exist (see Gotcha #12)
"amazon.nova-canvas-v1:0"     // bare model ID only

Cross-region IDs route requests across a regional capacity pool, giving higher aggregate throughput than single-region IDs for the same on-demand pricing. The SDK client still connects to your home region's Bedrock endpoint — no VPC changes required.

Nova Micro: text-only routing and classification

Nova Micro is the optimal model for the classification and routing layers that sit above your primary MCP tools — intent detection, entity extraction, ticket triage, model selection based on input type. It completes a typical 64-token routing decision in under 200ms. The constraints that break Claude migrations are precise and binary: either your code path never triggers them, or it fails hard.

Gotcha #1 — 5120-token output ceiling, not 8192 like Claude Sonnet

Claude Sonnet and Haiku support up to 8192 output tokens. Every Nova model — Micro, Lite, and Pro — caps at 5120. This is the most dangerous silent migration issue because it only appears with large outputs. A tool handler that works correctly with Claude will truncate at 5120 tokens with Nova if it generates long documents, large JSON payloads, or verbose prose responses.

The failure mode is not a hard error — Bedrock returns stopReason: "max_tokens" in the response, but most code that wasn't written with this in mind discards stopReason and passes the truncated text as a valid result. If the output is JSON, the truncated result is syntactically broken. If it is prose, it ends mid-sentence.

import type { ConverseResponse } from "@aws-sdk/client-bedrock-runtime";

function extractTextSafe(response: ConverseResponse): string {
  if (response.stopReason === "max_tokens") {
    throw new Error(
      `Nova truncated output at maxTokens limit. ` +
      `Increase maxTokens (max 5120) or reduce prompt length.`
    );
  }
  const content = response.output?.message?.content ?? [];
  const textBlock = content.find((b) => b.text !== undefined);
  return textBlock?.text ?? "";
}

Before switching a Claude-based MCP tool to any Nova model, test it with your largest realistic prompt and expected output. If the output routinely approaches 4000+ tokens, the 5120 ceiling is active risk. Claude Sonnet remains the right choice for tools that generate long-form responses — the model abstraction does not abstract away this constraint.

Gotcha #2 — topK raises ValidationException, not a silent ignore

Claude on the Converse API silently ignores the topK parameter in InferenceConfiguration. Nova models return a hard ValidationException: "1 validation error detected: Value ... at 'inferenceConfig.topK' failed to satisfy constraint."

This surfaces in codebases that share model configuration objects or factory functions across multiple model backends. If you have a Bedrock client wrapper that sets topK: 50 for Llama models and passes the same config to Nova, every Nova call will fail immediately.

// Safe InferenceConfiguration for all Nova models
const novaInferenceConfig = {
  maxTokens: 512,
  temperature: 0,
  topP: 1,
  // topK: 50,   // NEVER include for Nova — ValidationException
};

// If sharing config across model families, guard explicitly:
function buildInferenceConfig(modelId: string, maxTokens: number) {
  const base = { maxTokens, temperature: 0, topP: 1 };
  const isNova = modelId.includes("nova");
  // topK omitted for Nova; add it only for models that support it
  return isNova ? base : { ...base, topK: 50 };
}

Gotcha #3 — Text-only: image, document, and video blocks raise ValidationException immediately

Nova Micro does not process any non-text ContentBlock types. Passing an image, document, or video block returns ValidationException: Input modality not supported by this model before any inference occurs. Claude Sonnet handles all three; Claude Haiku handles image and document; Nova Micro handles none.

This fails silently in routing-based MCP servers that check content type after model selection rather than before. The correct pattern is to route based on content type first:

type ContentBlock =
  | { text: string }
  | { image: unknown }
  | { document: unknown }
  | { video: unknown };

function requiresMultimodal(blocks: ContentBlock[]): boolean {
  return blocks.some((b) => "image" in b || "document" in b || "video" in b);
}

async function invokeNovaRouted(
  messages: Array<{ role: "user" | "assistant"; content: ContentBlock[] }>,
) {
  const hasMedia = messages.some((m) => requiresMultimodal(m.content));
  const modelId = hasMedia
    ? "us.amazon.nova-lite-v1:0"    // multimodal
    : "us.amazon.nova-micro-v1:0";  // text-only, faster + cheaper
  return client.send(new ConverseCommand({
    modelId,
    messages,
    inferenceConfig: { maxTokens: 1024 },
  }));
}

Gotcha #4 — No native JSON mode: structured output requires ConverseToolConfig

Nova Micro has no JSON mode. Claude Sonnet has no JSON mode either on the Converse API, so this is not a regression — but developers who know other LLM APIs that offer native JSON output may expect one here. The reliable approach for structured output is to define a tool with a JSON Schema and force the model to call it:

interface TicketClassification {
  category: "BILLING" | "TECHNICAL" | "GENERAL" | "SECURITY";
  priority: "LOW" | "MEDIUM" | "HIGH" | "CRITICAL";
  summary: string;
}

async function classifyTicket(ticketText: string): Promise {
  const response = await client.send(new ConverseCommand({
    modelId: "us.amazon.nova-micro-v1:0",
    messages: [{
      role: "user",
      content: [{ text: `Classify this support ticket:\n\n${ticketText}` }],
    }],
    inferenceConfig: { maxTokens: 256, temperature: 0 },
    toolConfig: {
      tools: [{
        toolSpec: {
          name: "classify_ticket",
          description: "Classify a support ticket by category and priority.",
          inputSchema: {
            json: {
              type: "object",
              properties: {
                category: { type: "string", enum: ["BILLING", "TECHNICAL", "GENERAL", "SECURITY"] },
                priority: { type: "string", enum: ["LOW", "MEDIUM", "HIGH", "CRITICAL"] },
                summary: { type: "string", maxLength: 120 },
              },
              required: ["category", "priority", "summary"],
            },
          },
        },
      }],
      toolChoice: { tool: { name: "classify_ticket" } },
    },
  }));

  if (response.stopReason !== "tool_use") {
    throw new Error(`Unexpected stopReason: ${response.stopReason}`);
  }

  const toolUse = response.output?.message?.content
    ?.find((b) => b.toolUse !== undefined)?.toolUse;
  if (!toolUse?.input) throw new Error("No tool input in response");
  return toolUse.input as TicketClassification;
}

The toolChoice: { tool: { name: "classify_ticket" } } forces Nova Micro to always emit the tool call rather than sometimes answering in prose. This is the same pattern as Claude on the Converse API. At temperature: 0, the classification output is highly consistent — Nova Micro is well-suited for this role.

Nova Lite: low-cost multimodal analysis

Nova Lite is the entry point for multimodal MCP tools — screenshot analysis, document extraction, product image comparison, short screen recording review. Its 300k token context window is the largest in the Nova family, but that number is deceptive once you account for how rapidly media inputs consume token budget.

Gotcha #5 — Video requires an S3 URI source, not base64

Nova Lite accepts images as either base64 bytes or S3 URIs. It accepts video only as an S3 URI. Passing video bytes inline raises ValidationException: Video source type 'bytes' is not supported for this model. This is different from every other ContentBlock type and surprises developers who extend an image-handling code path to video.

// WRONG — raises ValidationException for video
const badRequest = {
  role: "user",
  content: [{
    video: {
      format: "mp4",
      source: { bytes: videoBuffer },  // Not accepted for video
    },
  }],
};

// CORRECT — video requires S3 source
const goodRequest = {
  role: "user",
  content: [{
    video: {
      format: "mp4",
      source: {
        s3Location: {
          uri: `s3://${bucket}/${key}`,
          bucketOwner: process.env.AWS_ACCOUNT_ID,  // recommended
        },
      },
    },
  }],
};

For MCP tools that receive video uploads from users, implement a pre-processing step that uploads to S3 before invoking Nova Lite. The IAM role used by the MCP server needs s3:PutObject on the upload bucket and s3:GetObject for Bedrock to retrieve it. The bucketOwner field is optional but recommended in production — it prevents cross-account confused deputy attacks by asserting your account owns the bucket.

Gotcha #6 — Only one video content block per request

Requests with more than one video content block return ValidationException: Too many video content blocks (max: 1). If your tool needs to compare two video clips, you must run two separate API calls and synthesize the results yourself. There is no way to include both videos in a single request, regardless of how much context window remains.

function validateVideoConstraints(videoCount: number, durationSeconds: number): void {
  if (videoCount > 1) {
    throw new Error(
      "Nova Lite accepts only one video per request. " +
      "Split multi-video analysis into separate requests."
    );
  }
  if (durationSeconds > 1800) {
    throw new Error(
      `Video duration ${durationSeconds}s exceeds Nova Lite maximum of 1800s.`
    );
  }
}

Video duration is capped at 30 minutes (1,800 seconds at 1 frame per second). Nova Lite processes video at 1fps — a 10-minute video yields 600 frames. Each frame consumes context tokens. A 10-minute video may consume 100,000+ tokens before any text question is included.

Gotcha #7 — Image MIME type must match the declared format field

The format field in an image ContentBlock ("jpeg", "png", "gif", "webp") must accurately describe the actual image bytes. Declaring "png" while passing JPEG bytes may produce a ValidationException or garbled image analysis output. Always derive the format from the actual file bytes or extension rather than accepting it unchecked from user input:

import * as fs from "fs";

function getImageFormat(imagePath: string): "jpeg" | "png" | "gif" | "webp" {
  const ext = imagePath.split(".").pop()?.toLowerCase() ?? "";
  const extMap: Record = {
    jpg: "jpeg", jpeg: "jpeg",
    png: "png",
    gif: "gif",
    webp: "webp",
  };
  const format = extMap[ext];
  if (!format) throw new Error(`Unsupported image extension: .${ext}`);
  return format;
}

async function analyzeImage(imagePath: string, question: string): Promise {
  const imageBytes = fs.readFileSync(imagePath);
  const format = getImageFormat(imagePath);  // derived, not trusted from caller

  const response = await client.send(new ConverseCommand({
    modelId: "us.amazon.nova-lite-v1:0",
    messages: [{
      role: "user",
      content: [
        { image: { format, source: { bytes: imageBytes } } },
        { text: question },
      ],
    }],
    inferenceConfig: { maxTokens: 1024, temperature: 0.3 },
  }));

  if (response.stopReason === "max_tokens") throw new Error("Response truncated");
  return response.output?.message?.content?.find((b) => b.text)?.text ?? "";
}

Gotcha #8 — 300k context is consumed rapidly by media tokens

Nova Lite's 300k token context window sounds large. In practice, multimodal inputs shrink the effective space quickly. A 1024×768 image uses approximately 1,500–3,000 tokens. Twenty images can consume 60,000 tokens before any text is processed. A 10-minute video at 1fps (600 frames) may consume 100,000+ tokens. With a system prompt, a question, and conversation history, the useful text budget can be a small fraction of the nominal 300k.

Always monitor response.usage.inputTokens in production and add guards in your MCP tool that estimate token consumption before invoking the model:

server.tool(
  "analyze_images",
  {
    imageBase64List: z.array(z.string()).max(20),
    question: z.string(),
  },
  async ({ imageBase64List, question }) => {
    // Rough token budget check: each image ~2000 tokens avg
    const estimatedMediaTokens = imageBase64List.length * 2000;
    if (estimatedMediaTokens > 250_000) {
      return {
        content: [{ type: "text", text: "Too many images — reduce to 20 or fewer high-resolution images." }],
        isError: true,
      };
    }

    const content = [
      ...imageBase64List.map((b64) => ({
        image: { format: "jpeg" as const, source: { bytes: Buffer.from(b64, "base64") } },
      })),
      { text: question },
    ];

    const response = await client.send(new ConverseCommand({
      modelId: "us.amazon.nova-lite-v1:0",
      messages: [{ role: "user", content }],
      inferenceConfig: { maxTokens: 2048, temperature: 0.3 },
    }));

    const text = response.output?.message?.content?.find((b) => b.text)?.text ?? "";
    return { content: [{ type: "text", text }] };
  }
);

Nova Pro: agentic tool use and multi-step reasoning

Nova Pro is the highest-capability model in the Nova text family, designed for the same multi-turn agentic tool use patterns as Claude Sonnet. The ConverseToolConfig, ToolUseBlock, and ToolResultBlock structures are identical to Claude's — an existing agentic loop that runs against Claude Sonnet will compile and run against Nova Pro with only a model ID change. The runtime differences are what matter.

Gotcha #9 — 5120 token ceiling truncates long tool payloads

The 5120-token output ceiling (see Gotcha #1) has sharper consequences for agentic workflows than for simple generation. When Nova Pro is mid-loop deciding which tool to call next, its response describing the tool call is itself subject to the ceiling. If previous tool results pushed the message history to the edge of the context window and the model's reasoning about the next tool call grows verbose, truncation at 5120 tokens will produce a malformed tool use block — not a clean error, but a partial JSON response that the SDK cannot deserialize.

Always test Nova Pro with your largest realistic tool result payloads before switching from Claude Sonnet in production. If a tool returns JSON responses that routinely exceed 3,000 tokens, design a summary layer that compresses tool results before adding them to message history:

function compressToolResult(result: unknown, maxChars = 4000): string {
  const serialized = JSON.stringify(result);
  if (serialized.length <= maxChars) return serialized;
  // Truncate and add a note — better than silent truncation by the model
  return serialized.slice(0, maxChars) + `\n\n[Truncated — ${serialized.length - maxChars} chars omitted]`;
}

const toolResultContent: ContentBlock[] = toolResults.map(({ id, result }) => ({
  toolResult: {
    toolUseId: id,
    content: [{ text: compressToolResult(result) }],
    status: "success",
  } as ToolResultBlock,
}));

Gotcha #10 — toolUseId must reference a valid toolUseId from the previous turn

Every toolResult block in a user message must reference a toolUseId that the model included in the immediately preceding assistant message. Missing, misspelled, or regenerated IDs return ValidationException: Tool result references non-existent tool use ID. When iterating over tool use blocks from the assistant response, preserve the exact toolUseId values without normalization, truncation, or UUID regeneration:

// Extract all tool use blocks from the assistant's last turn
const toolUseBlocks = (assistantMessage?.content ?? [])
  .filter((b) => b.toolUse !== undefined)
  .map((b) => ({
    id: b.toolUse!.toolUseId!,   // preserve exact string — do not regenerate
    name: b.toolUse!.name!,
    input: b.toolUse!.input ?? {},
  }));

// Execute all tools, then build result blocks using the original IDs
const toolResults = await executeTools(toolUseBlocks);

const toolResultContent: ContentBlock[] = toolResults.map(({ id, result }) => ({
  toolResult: {
    toolUseId: id,          // must match id from above — exact string
    content: [{ json: result }],
    status: "success",
  } as ToolResultBlock,
}));

The content[].json form accepts structured data directly without JSON serialization — Nova Pro reads it as a native object. This is preferable to content[].text with a JSON string because it avoids double-encoding and lets the model work with the data structure directly.

Gotcha #11 — Nova Pro may call multiple tools in a single turn; all must be executed

Nova Pro, like Claude on the Converse API, can emit multiple toolUse content blocks in a single assistant turn when it determines that parallel tool calls are more efficient. Submitting only one tool result when two or more tool calls were made returns a validation error — the model expects a toolResult block for every toolUse block it emitted. The filter pattern in the agentic loop must collect all tool use blocks before dispatching:

const MAX_TOOL_ITERATIONS = 10;

async function runAgentLoop(
  userQuery: string,
  systemPrompt?: string
): Promise {
  const messages: Message[] = [
    { role: "user", content: [{ text: userQuery }] },
  ];

  for (let iteration = 0; iteration < MAX_TOOL_ITERATIONS; iteration++) {
    const response = await client.send(new ConverseCommand({
      modelId: "us.amazon.nova-pro-v1:0",
      messages,
      system: systemPrompt ? [{ text: systemPrompt }] : undefined,
      inferenceConfig: { maxTokens: 2048, temperature: 0.3 },
      toolConfig: { tools, toolChoice: { auto: {} } },
    }));

    const assistantMessage = response.output?.message;
    if (assistantMessage) messages.push(assistantMessage);

    if (response.stopReason === "end_turn") {
      return assistantMessage?.content?.find((b) => b.text)?.text ?? "";
    }

    if (response.stopReason !== "tool_use") {
      throw new Error(`Unexpected stopReason: ${response.stopReason}`);
    }

    // Collect ALL tool use blocks — not just the first
    const toolUseBlocks = (assistantMessage?.content ?? [])
      .filter((b) => b.toolUse !== undefined)
      .map((b) => ({
        id: b.toolUse!.toolUseId!,
        name: b.toolUse!.name!,
        input: b.toolUse!.input ?? {},
      }));

    // Execute all in parallel — do not submit partial results
    const toolResults = await executeTools(toolUseBlocks);

    const toolResultContent: ContentBlock[] = toolResults.map(({ id, result }) => ({
      toolResult: {
        toolUseId: id,
        content: [{ json: result }],
        status: "success",
      } as ToolResultBlock,
    }));

    messages.push({ role: "user", content: toolResultContent });
  }

  throw new Error(`Agent loop exceeded ${MAX_TOOL_ITERATIONS} iterations`);
}

When to choose Nova Pro versus Claude Sonnet

The Converse API's model abstraction makes it easy to benchmark both models against your actual workload. The practical decision factors:

DimensionNova ProClaude Sonnet 3.5+
Max output tokens5,1208,192
Extended thinkingNot availableAvailable (Claude 3.7+)
Throughput quotaIndependent from ClaudeIndependent from Nova
Community toolingSmaller ecosystemLarger ecosystem
Input token costTypically lowerVaries by model version

For MCP server teams already on Claude who want cost reduction without code changes, Nova Pro is a strong candidate for tools that do not require long outputs or extended thinking. For new workloads with long JSON tool responses or multi-step reasoning where the internal reasoning trace matters, Claude Sonnet retains an advantage.

Nova Canvas: image generation and editing

Nova Canvas is an image generation and editing model — the first time the Converse API abstraction breaks completely. Canvas uses InvokeModelCommand, not ConverseCommand, and its request and response structures are entirely specific to Canvas. It supports six task types: TEXT_IMAGE, IMAGE_VARIATION, INPAINTING, OUTPAINTING, BACKGROUND_REMOVAL, and COLOR_GUIDED_GENERATION. The gotchas here are all about the API conventions rather than model capability limits.

Gotcha #12 — Cross-region inference profile IDs are not valid for Nova Canvas

Unlike Nova Micro, Lite, and Pro, Nova Canvas does not support cross-region inference profile IDs. The model ID us.amazon.nova-canvas-v1:0 does not exist. Passing it to InvokeModelCommand returns ResourceNotFoundException: Could not resolve model identifier. The only valid model ID for Nova Canvas is amazon.nova-canvas-v1:0 — the bare single-region form.

import {
  BedrockRuntimeClient,
  InvokeModelCommand,
} from "@aws-sdk/client-bedrock-runtime";

const client = new BedrockRuntimeClient({ region: "us-east-1" });

// CORRECT
const MODEL_ID = "amazon.nova-canvas-v1:0";

// WRONG — ResourceNotFoundException
// const MODEL_ID = "us.amazon.nova-canvas-v1:0";

Nova Canvas has its own per-region throughput quotas. If throttling becomes a problem, check Bedrock service quotas for the Canvas model specifically in your region. There is no cross-region routing option to fall back on.

Gotcha #13 — cfgScale starts at 1.1, not 0

Nova Canvas's cfgScale parameter controls how closely the generated image adheres to the prompt versus how much creative freedom the model takes. The range is 1.1–10.0. This catches developers who copy cfgScale values from other diffusion model APIs — Stability AI and many open-source models use a 0–1 or 1–20 range. Passing a value below 1.1 returns ValidationException: cfgScale must be between 1.1 and 10.0.

interface ImageGenerationConfig {
  width: number;
  height: number;
  cfgScale: number;   // 1.1–10.0 (not 0–1; not 1–20)
  seed?: number;      // 0–858993459, omit for random
  numberOfImages?: number;  // 1–5
  quality?: "standard" | "premium";
}

function validateCfgScale(cfgScale: number): void {
  if (cfgScale < 1.1 || cfgScale > 10.0) {
    throw new Error(`cfgScale ${cfgScale} out of range — Nova Canvas requires 1.1–10.0`);
  }
}

Practical guidance: for product photography with specific prompt requirements, 7.0–8.5 gives tight prompt adherence. For stylized or creative generation, 4.0–6.0 produces more artistic interpretation. The minimum of 1.1 is intentional — Canvas does not support a pure random-walk generation mode.

Gotcha #14 — Request body must be Uint8Array, not a string

The body parameter of InvokeModelCommand is typed as Uint8Array | Blob | ReadableStream. Passing a JSON string directly raises a TypeScript compile error. The correct encoding is new TextEncoder().encode(JSON.stringify(requestBody)). The response body must similarly be decoded before parsing: new TextDecoder().decode(response.body).

async function invokeCanvas(requestBody: object): Promise {
  const response = await client.send(new InvokeModelCommand({
    modelId: "amazon.nova-canvas-v1:0",
    contentType: "application/json",
    accept: "application/json",
    // TextEncoder — required; plain string is a type error
    body: new TextEncoder().encode(JSON.stringify(requestBody)),
  }));

  // TextDecoder — required before JSON.parse
  const responseJson = JSON.parse(new TextDecoder().decode(response.body));

  if (responseJson.error) {
    throw new Error(`Nova Canvas error: ${responseJson.error}`);
  }

  // Response contains images[] — each element is a base64-encoded PNG string
  return responseJson.images as string[];
}

// Convenience: save base64 PNG to disk
import * as fs from "fs";
function saveBase64Image(base64: string, outputPath: string): void {
  fs.writeFileSync(outputPath, Buffer.from(base64, "base64"));
}

Image dimensions must exactly match a supported size

Nova Canvas requires dimensions from a fixed list of supported sizes. Requesting an arbitrary width and height — for example, 800×600 or 1200×628 — returns ValidationException: Unsupported image dimensions. The closest standard sizes to common use cases:

Use caseSupported sizeAspect ratio
Square / social1024×10241:1
HD landscape / YouTube1280×72016:9
Mobile portrait / story768×13449:16
Banner / hero1024×5122:1
Widescreen1536×64012:5

Build a dimension selector that maps user-specified aspect ratios or pixel counts to the nearest supported size rather than accepting freeform dimensions from tool input.

Nova Canvas task types: a quick reference

taskType Params block Source image? Mask?
TEXT_IMAGEtextToImageParamsNoNo
IMAGE_VARIATIONimageVariationParamsYes (1–5)No
INPAINTINGinPaintingParamsYesmaskPrompt or maskImage
OUTPAINTINGoutPaintingParamsYesOptional maskImage
BACKGROUND_REMOVALbackgroundRemovalParamsYesNo
COLOR_GUIDED_GENERATIONcolorGuidedGenerationParamsOptional refNo

BACKGROUND_REMOVAL does not use an imageGenerationConfig block — no width, height, or cfgScale is needed. The output dimensions match the input, and the output format is always PNG (for the alpha channel).

For INPAINTING, you can specify either a maskPrompt (a text description of the region to replace, which Canvas interprets via AI segmentation) or a maskImage (a binary image where white pixels indicate the area to replace). The mask image must match the source image's exact dimensions. Use maskPrompt for quick prototyping; use maskImage for pixel-accurate control in production workflows.

All fourteen gotchas consolidated

# Model Gotcha Error
1Micro / Lite / Pro5120 output ceiling — not 8192 like Claude SonnetstopReason: "max_tokens" (silent truncation)
2Micro / Lite / ProtopK raises error — Claude ignores silentlyValidationException
3MicroText-only — image/document/video blocks rejectedValidationException
4MicroNo JSON mode — structured output via ConverseToolConfigProse response instead of JSON
5LiteVideo requires S3 source — base64 video rejectedValidationException
6LiteOnly one video content block per requestValidationException
7LiteImage format field must match actual bytesValidationException or garbled output
8Lite300k context consumed rapidly by media tokensValidationException (context limit)
9Pro5120 ceiling breaks long tool result payloadsstopReason: "max_tokens" mid-loop
10ProtoolUseId must reference valid prior blockValidationException
11ProMultiple tools per turn — all must be executedValidationException
12CanvasCross-region IDs not valid — use bare model IDResourceNotFoundException
13CanvascfgScale starts at 1.1, not 0ValidationException
14CanvasRequest body must be Uint8Array, not stringTypeScript compile error

Gotcha #1 (5120-token ceiling) affects all Converse-based Nova models. Gotcha #2 (topK rejection) is the most common silent migration issue — Claude-to-Nova switches fail here if the caller shares inference configuration objects across model families. Gotcha #5 (video S3 source) is the starkest API surface difference from other multimodal models. Gotcha #12 (Canvas cross-region) is the easiest to verify upfront but impossible to discover without reading the documentation — there is no warning, only a runtime error.

Building a unified Nova client for MCP servers

When a single MCP server needs to use multiple Nova models for different tool types, encapsulate model selection and the cross-cutting concerns (stopReason checks, topK exclusion) in a single wrapper module:

import {
  BedrockRuntimeClient,
  ConverseCommand,
  InvokeModelCommand,
  type Message,
  type ConverseResponse,
} from "@aws-sdk/client-bedrock-runtime";

const client = new BedrockRuntimeClient({ region: "us-east-1" });

export const NOVA_MODELS = {
  MICRO: "us.amazon.nova-micro-v1:0",
  LITE:  "us.amazon.nova-lite-v1:0",
  PRO:   "us.amazon.nova-pro-v1:0",
  CANVAS: "amazon.nova-canvas-v1:0",  // No cross-region prefix
} as const;

export async function invokeNovaConverse(
  modelId: (typeof NOVA_MODELS)[keyof Omit],
  messages: Message[],
  options: { maxTokens?: number; temperature?: number } = {}
): Promise {
  const { maxTokens = 1024, temperature = 0.3 } = options;

  // topK omitted — ValidationException on all Nova Converse models
  const response = await client.send(new ConverseCommand({
    modelId,
    messages,
    inferenceConfig: { maxTokens: Math.min(maxTokens, 5120), temperature },
  }));

  if (response.stopReason === "max_tokens") {
    console.warn(`[nova] Output truncated at ${maxTokens} tokens for model ${modelId}`);
  }

  return response;
}

export async function invokeNovaCanvas(requestBody: object): Promise {
  const response = await client.send(new InvokeModelCommand({
    modelId: NOVA_MODELS.CANVAS,
    contentType: "application/json",
    accept: "application/json",
    body: new TextEncoder().encode(JSON.stringify(requestBody)),
  }));

  const json = JSON.parse(new TextDecoder().decode(response.body));
  if (json.error) throw new Error(`Nova Canvas: ${json.error}`);
  return json.images as string[];
}

The wrapper enforces the two universal Nova constraints — 5120-token maximum and no topK — while keeping the calling code clean. Each tool handler calls invokeNovaConverse or invokeNovaCanvas without worrying about the model-specific API differences.

Monitor your Amazon Nova MCP tools with AliveMCP

AliveMCP monitors MCP server endpoints for uptime, latency, and error rates across all Nova model integrations. When a Nova Micro routing tool starts returning errors, a Nova Lite vision tool slows down, a Nova Pro agentic loop starts timing out, or a Nova Canvas generation endpoint starts throttling, AliveMCP alerts you before the issue reaches your users. The free public tier covers every registered MCP endpoint — no instrumentation code required.

Start free monitoring