Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

import { FusionPlugin } from "@openrouter/sdk/models";

let value: FusionPlugin = {
  id: "fusion",
};

Fields

FieldTypeRequiredDescriptionExample
analysisModelsstring[]:heavy_minus_sign:Slugs of models to run in parallel as the “expert panel” the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest).[
“~anthropic/claude-opus-latest”,
“~openai/gpt-latest”,
“~google/gemini-pro-latest”
]
enabledboolean:heavy_minus_sign:Set to false to disable the fusion plugin for this request. Defaults to true.
id”fusion”:heavy_check_mark:N/A
maxToolCallsnumber:heavy_minus_sign:Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16.12
modelstring:heavy_minus_sign:Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset.~anthropic/claude-opus-latest