Socket
Book a DemoInstallSign in
Socket

@hyperbolic/ai-sdk-provider

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hyperbolic/ai-sdk-provider

The [Hyperbolic](https://hyperbolic.xyz/) provider for the [Vercel AI SDK](https://sdk.vercel.ai/docs) gives access to any model found at <https://app.hyperbolic.xyz/models>.

latest
Source
npmnpm
Version
0.1.3
Version published
Maintainers
1
Created
Source

Hyperbolic Provider for Vercel AI SDK

The Hyperbolic provider for the Vercel AI SDK gives access to any model found at https://app.hyperbolic.xyz/models.

This is based on the OpenRouter provider for the Vercel AI SDK, with a number of changes to support the Hyperbolic API and add image generation support.

Setup

# For pnpm
pnpm add @hyperbolic/ai-sdk-provider

# For npm
npm install @hyperbolic/ai-sdk-provider

# For yarn
yarn add @hyperbolic/ai-sdk-provider

Provider Instance

You can create a provider instance with createHyperbolic from @hyperbolic/ai-sdk-provider:

import { createHyperbolic } from "@hyperbolic/ai-sdk-provider";

Example

import { generateText } from "ai";

import { createHyperbolic } from "@hyperbolic/ai-sdk-provider";

const hyperbolic = createHyperbolic({
  apiKey: process.env.HYPERBOLIC_API_KEY, // Found in settings after logging in at https://app.hyperbolic.xyz
});

const { text } = await generateText({
  model: hyperbolic.chat("deepseek-ai/DeepSeek-R1"),
  prompt: "Write a vegetarian lasagna recipe for 4 people.",
});

Supported models

This list is not a definitive list of models supported by Hyperbolic, as it constantly changes as we add new models (and deprecate old ones) to our system.
You can find the latest list of models supported by Hyperbolic here.

Using Models

Language Models

const { text } = await generateText({
  model: hyperbolic.chat("deepseek-ai/DeepSeek-R1"),
  prompt: "Write a vegetarian lasagna recipe for 4 people.",
});

const { text } = await generateText({
  model: hyperbolic.completion("deepseek-ai/DeepSeek-R1"),
  prompt: "The capital of France is",
});

Image Generation Models

import { experimental_generateImage as generateImage } from "ai";

// Text to Image
const { images } = await generateImage({
  model: hyperbolic.image("SDXL1.0-base"),
  prompt: "A beautiful sunset over a calm ocean",
  size: "1024x1024",
  providerOptions: {
    hyperbolic: {
      cfgScale: 5,
      steps: 30,
      negativePrompt: "low quality, blurry, distorted",
      enableRefiner: false,
    } satisfies HyperbolicImageProviderOptions,
  },
});

FAQs

Package last updated on 04 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts