Skip to main content
Official website

Supported Features

The Aihubmix provider supports the following AI features, so your product is no longer limited to being LLM-driven:
  • Text Generation: Generate text content using various models
  • Streaming Text: Real-time text streaming
  • Image Generation: Create images from text prompts
  • Vector Embeddings: Single and batch text embeddings
  • Object Generation: Structured data generation
  • Streaming Objects: Real-time structured data streaming
  • Speech Synthesis: Text-to-speech
  • Transcription: Speech-to-text
  • Tools: Web search and other tools

Installation

Aihubmix is available in the @aihubmix/ai-sdk-provider module. Install it via @aihubmix/ai-sdk-provider:

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 for secure access:
Or pass it directly to the provider:

Usage

Import the necessary functions:
Examples of various types of AI generation calls:

Last updated: 2026-06-01