Skip to content
PluginStats

merge-gateway-ai-sdk-provider weekly downloads statistics

By merge-api · npm · AI SDKs

Merge Gateway provider for the Vercel AI SDK

View on npm Fresh · Oct 17, 2026

merge-gateway-ai-sdk-provider has 926 recorded weekly downloads on npm, a decrease of 72.8% over the past 30 days.

It ranks #1403 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +2403%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
926
Official API · Oct 17, 2026
7-day growth
-65.2%
-1.7K weekly downloads
30-day growth
-72.8%
-2.5K weekly downloads
90-day growth
+2403%
+889 weekly downloads
Rank
#1403
Among tracked npm listings

About merge-gateway-ai-sdk-provider

merge-gateway-ai-sdk-provider

Merge Gateway provider for the Vercel AI SDK. Route requests to OpenAI, Anthropic, Google, and more through a single provider with built-in failover, intelligent routing, and cost optimization.

Installation

Quick start

Two ways to integrate

Native provider (recommended)

Install merge-gateway-ai-sdk-provider for typed Gateway features:

URL shim (zero install)

If you already have @ai-sdk/openai, point it at the Gateway:

Both approaches hit the same endpoints. The native provider adds typed providerOptions for Gateway features.

Text generation

Streaming

Embeddings

Gateway features

The native provider exposes Gateway-specific features via providerOptions.mergeGateway:

Tags

Categorize requests for filtering, cost tracking, and routing policy overrides:

Vendor routing

Control which execution host handles the request:

Project association

Track cost and usage per project:

Extended thinking

Enable reasoning/thinking for supported models:

Routing metadata

Get details about routing decisions, cost, and latency:

Attachments

File parts are forwarded to the model. Images become OpenAI image_url blocks, audio becomes input_audio, and everything else (PDF, Office documents, video) becomes the gateway's unified file block, which it translates into each vendor's own document format.

data may be bytes, a base64 string, a data: URI, or a URL, and the AI SDK v6 tagged forms ({ type: "data" | "url" | "text" }) are read as well. Provider file references ({ type: "reference" }) cannot be resolved by the gateway.

Whether the model can *read* a given media type still depends on the route: the gateway forwards the attachment, and a vendor that does not accept it returns an error. Anything this provider cannot forward is reported in warnings on the result rather than dropped silently:

Prompt caching

Cache markers ride on providerOptions, either on a content part or on the message as a whole, and are translated into the gateway's cache_control:

The anthropic, openrouter, and mergeGateway namespaces are all read, in either the cacheControl or cache_control spelling. Caching applies on explicit routes; the response reports cache activity in its usage.

Tool calling

Tools work the same as with any AI SDK provider:

Structured output

generateObject / streamObject map to the gateway's native json_schema structured output. Schemas pass through untouched — nested objects, $defs, anyOf, and optional fields all reach the provider as you wrote them.

Controlling strict

The strict flag defaults to true. Schemas with optional fields, unions (anyOf), or open objects are rejected by OpenAI-style strict mode — turn it off per call (or per model via gateway(modelId, { strictJsonSchema: false })):

If a routed model can't honor the schema, the gateway fails loudly with a 400 unsupported_params (surfaced as an APICallError) — never a silent fallback to best-effort JSON.

AI SDK v5

AI SDK v5 (ai@5) uses provider spec v2 and cannot load the default entry point. Import from merge-gateway-ai-sdk-provider/v5 instead — same implementation and options, wrapped in a v2 adapter:

| AI SDK major | Import |

| ai@6 | merge-gateway-ai-sdk-provider | | ai@5 | merge-gateway-ai-sdk-provider/v5 | | ai@4 | not supported — use the URL shim |

API reference

createMergeGateway(options?)

Creates a Merge Gateway provider instance.

| Option | Type | Default | Description |

| apiKey | string | MERGE_GATEWAY_API_KEY env | Merge Gateway API key | | baseURL | string | https://api-gateway.merge.dev/v1/ai-sdk | Base URL for AI SDK endpoints | | headers | Record | — | Custom headers for every request | | fetch | typeof fetch | — | Custom fetch implementation |

Provider methods

| Method | Returns | Description |

| gateway(modelId) | MergeGatewayChatLanguageModel | Create a chat model | | gateway.chat(modelId) | MergeGatewayChatLanguageModel | Create a chat model (explicit) | | gateway.textEmbeddingModel(modelId) | MergeGatewayEmbeddingModel | Create an embedding model |

MergeGatewayProviderOptions

Passed via providerOptions.mergeGateway:

| Option | Type | Description |

| tags | Array | Request categorization tags | | projectId | string | Project ID for cost tracking | | vendor | string | Single vendor preference | | vendors | string[] | Ordered vendor preference list | | includeRoutingMetadata | boolean | Include routing metadata in response | | thinking | { type: "enabled" \| "disabled"; budgetTokens: number } | Extended thinking config | | strictJsonSchema | boolean | strict flag for json_schema structured output (default true; set false for schemas with optional fields/unions) |

License

MIT

Description from the npm listing.

  • merge
  • gateway
  • ai
  • ai-sdk
  • vercel
  • llm
  • openai
  • anthropic
  • provider

Where merge-gateway-ai-sdk-provider sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 71, #4 (overall #1404)
All npm: every listing in weekly downloads order
PNG SVG
AI SDKs249 listings · 13 pages · page 7, #11 (overall #131)
AI SDKs: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

merge-gateway-ai-sdk-provider weekly downloads on npm, last 90 days: 926 weekly downloads as of Oct 17, 2026, +2403% over 90 days.merge-gateway-ai-sdk-providerWeekly downloads on npm · Last 90 days926downloads / week+2403% over 90 days01K2K3K4KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
merge-gateway-ai-sdk-provider weekly downloads on npm, last 90 days: 926 weekly downloads as of Oct 17, 2026, +2403% over 90 days.
PNG SVG

7/30/90-day growth

merge-gateway-ai-sdk-provider weekly downloads growth on npm: -65.2% over 7 days, -72.8% over 30 days, +2403% over 90 days.merge-gateway-ai-sdk-providerWeekly downloads growth on npm926downloads / week now7-day growth-1,735 weekly downloads-65.2%30-day growth-2,477 weekly downloads-72.8%90-day growth+889 weekly downloads+2403%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
merge-gateway-ai-sdk-provider weekly downloads growth on npm: -65.2% over 7 days, -72.8% over 30 days, +2403% over 90 days.
PNG SVG

Ranking history

merge-gateway-ai-sdk-provider npm ranking history: currently #1403 (by weekly downloads).merge-gateway-ai-sdk-providernpm ranking · by weekly downloads · Last 90 days#1403current rank#1401#1402#1403#1404#1405Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
merge-gateway-ai-sdk-provider npm ranking history: currently #1403 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for merge-gateway-ai-sdk-provider
Date (UTC)Weekly downloadsChange vs. previous
926-386
1,312-167
1,479-470
1,949-1K
2,9630
2,963+220
2,743+82
2,661-4
2,665+228
2,437+123
2,314+526
1,788-372
2,160-72
2,232—

Similar npm AI SDKs plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/merge-gateway-ai-sdk-provider. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.