Skip to main content

Inference Quick Start

Get up and running with Hyperbolic’s Serverless Inference API in minutes. This guide walks you through making your first API calls for text, image, and audio generation.

Prerequisites

Hyperbolic Account

Sign up for a free account

API Key

Generate your API key

Python or cURL

Python 3.7+ or cURL installed

Get Your API Key

1

Log into the Dashboard

Go to app.hyperbolic.ai and sign in to your account.
2

Navigate to API Keys

Click on Settings in the sidebar, then select API Keys.
3

Create a New Key

Click Create API Key and copy the generated key.
Keep your API key secure. Never expose it in client-side code or public repositories.

Text Generation

Generate text using large language models with the chat completions endpoint.
The chat completions endpoint is OpenAI-compatible. You can use the OpenAI Python SDK by setting the base URL to https://api.hyperbolic.xyz/v1.

Image Generation

Generate images from text prompts using state-of-the-art diffusion models.
Sunset Notice: FLUX.1-dev and all other image generation models are being discontinued. Please plan your migration accordingly.
The response contains a base64-encoded image in the images array. Decode it to save or display the generated image.

Audio Generation

Convert text to natural-sounding speech using the audio generation endpoint.
The speed parameter controls playback speed (1.0 is normal). The response contains base64-encoded audio data.

Next Steps

Text APIs

Explore chat completions and more

Image APIs

Learn about image generation

Audio APIs

Dive into text-to-speech