
# Hyperbolic

The [Hyperbolic](https://hyperbolic.ai/) provider for the [AI SDK](https://ai-sdk.dev) gives access to any model found at [https://app.hyperbolic.ai/models](https://app.hyperbolic.ai/models).

## Setup

```bash
# 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`:

```ts
import { createHyperbolic } from '@hyperbolic/ai-sdk-provider';
```

## Example

```ts
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.ai
});

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](https://openrouter.ai/models?fmt=cards&providers=Hyperbolic).

## Using Models

### Language Models

```ts
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

```ts
import { experimental_generateImage as generateImage } from 'ai';
import { HyperbolicImageProviderOptions } from '@hyperbolic/ai-sdk-provider';

// 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,
  },
});
```


## Navigation

- [Writing a Custom Provider](/v4/providers/community-providers/custom-providers)
- [Qwen](/v4/providers/community-providers/qwen)
- [Ollama](/v4/providers/community-providers/ollama)
- [Chrome AI](/v4/providers/community-providers/chrome-ai)
- [FriendliAI](/v4/providers/community-providers/friendliai)
- [Portkey](/v4/providers/community-providers/portkey)
- [Cloudflare Workers AI](/v4/providers/community-providers/cloudflare-workers-ai)
- [Cloudflare AI Gateway](/v4/providers/community-providers/cloudflare-ai-gateway)
- [OpenRouter](/v4/providers/community-providers/openrouter)
- [Azure AI](/v4/providers/community-providers/azure-ai)
- [Crosshatch](/v4/providers/community-providers/crosshatch)
- [Requesty](/v4/providers/community-providers/requesty)
- [Mixedbread](/v4/providers/community-providers/mixedbread)
- [Voyage AI](/v4/providers/community-providers/voyage-ai)
- [Hyperbolic](/v4/providers/community-providers/hyperbolic)
- [Mem0](/v4/providers/community-providers/mem0)
- [Letta](/v4/providers/community-providers/letta)
- [LLamaCpp](/v4/providers/community-providers/llama-cpp)
- [Anthropic Vertex](/v4/providers/community-providers/anthropic-vertex-ai)
- [Spark](/v4/providers/community-providers/spark)
- [Inflection AI](/v4/providers/community-providers/inflection-ai)
- [LangDB](/v4/providers/community-providers/langdb)
- [Zhipu AI](/v4/providers/community-providers/zhipu)
- [SambaNova](/v4/providers/community-providers/sambanova)
- [Dify](/v4/providers/community-providers/dify)
- [Sarvam](/v4/providers/community-providers/sarvam)


[Full Sitemap](/sitemap.md)
