@aihubmix/ai-sdk-provider has 17,385 recorded weekly downloads on npm, a decrease of 26.7% over the past 30 days.
It ranks #785 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +34.2%.
PluginStats has 543 daily observations since Apr 23, 2025; the latest is from Oct 17, 2026.
About @aihubmix/ai-sdk-provider
AI SDK - Aihubmix Provider
🇺🇸 English | 🇨🇳 中文 | 🇯🇵 日本語
🎉 10% discount! Built-in app-code; using this method to request all models offers a 10% discount.
Aihubmix Official Website | Model Square
The Aihubmix provider for the AI SDK One Gateway, Infinite Models;one-stop request: OpenAI, Claude, Gemini, DeepSeek, Qwen, and over 500 AI models.
Setup for AI SDK v6
(LEGACY) Setup for AI SDK v5
Supported Features
The Aihubmix provider supports the following AI features:
• Text Generation: Chat completion with various models • Streaming Text: Real-time text streaming • Image Generation: Create images from text prompts • Embeddings: Single and batch text embeddings • Object Generation: Structured data generation with schemas • Streaming Objects: Real-time structured data streaming • Speech Synthesis: Text-to-speech conversion • Transcription: Speech-to-text conversion • Tools: Web search and other tools
Provider Instance
You can import the default provider instance aihubmix from @aihubmix/ai-sdk-provider:
Configuration
Set your Aihubmix API key as an environment variable:
Or pass it directly to the provider:
appCode (optional)
Every request carries an APP-Code header. By default it uses the value built into this package, so you do not need to set it. If you have your own app code, pass appCode to override the default:
baseURL (optional)
By default all requests go to https://aihubmix.com. To route through your own gateway or proxy, pass baseURL (a trailing slash is allowed and stripped). Paths such as /v1 and /gemini/v1beta are appended automatically:
Custom fetch
You may pass a custom fetch implementation (for proxies, logging, or testing). It is forwarded to every model — OpenAI-compatible, Claude, Gemini, Responses, transcription, and speech:
Usage
First, import the necessary functions:
Note: Some APIs like generateImage, generateSpeech, and transcribe are still experimental in AI SDK v6.
Generate Text
Claude Model
Gemini Model
Image Generation
Embeddings
Transcription
Stream Text
Generate Object
Stream Object
Embed Many
Speech Synthesis
Tools
The Aihubmix provider supports various tools including web search:
Additional Resources
• Aihubmix Provider Repository • Aihubmix Documentation • Aihubmix Dashboard • Aihubmix Cooperation
Description from the npm listing.
- ai
- aihubmix
- ai-sdk-provider
- ai-sdk
Where @aihubmix/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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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 (543)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/@aihubmix/ai-sdk-provider. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.