> ## Documentation Index
> Fetch the complete documentation index at: https://docs.livepeer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# AI API

> Complete API reference for Livepeer AI Worker endpoints

# AI Worker API Reference

Complete API reference for all Livepeer AI Worker endpoints.

<Info>
  This API can be consumed through either **Livepeer Studio** (managed) or a
  **self-hosted go-livepeer / AI worker Gateway**. Endpoint paths match, while
  auth and operations differ by deployment model.
</Info>

## Base URLs

| Environment             | URL                                         |
| ----------------------- | ------------------------------------------- |
| Cloud SPE Gateway       | `https://tools.livepeer.cloud`              |
| Livepeer Studio Gateway | `https://livepeer.studio/api/beta/generate` |

As of 02-March-2026, Livepeer Studio AI requests use `https://livepeer.studio/api/beta/generate` with `Authorization: Bearer <LIVEPEER_STUDIO_API_KEY>`. For Cloud SPE-managed access, check `https://tools.livepeer.cloud` for the current direct API endpoint and auth requirements.

***

## Generate Endpoints

### POST /text-to-image

<OpenAPI path="/text-to-image" method="POST" />

***

### POST /image-to-image

<OpenAPI path="/image-to-image" method="POST" />

***

### POST /image-to-video

<OpenAPI path="/image-to-video" method="POST" />

***

### POST /upscale

<OpenAPI path="/upscale" method="POST" />

***

### POST /audio-to-text

<OpenAPI path="/audio-to-text" method="POST" />

***

### POST /segment-anything-2

<OpenAPI path="/segment-anything-2" method="POST" />

***

### POST /llm

<OpenAPI path="/llm" method="POST" />

***

### POST /image-to-text

<OpenAPI path="/image-to-text" method="POST" />

***

### POST /live-video-to-video

<OpenAPI path="/live-video-to-video" method="POST" />

***

### POST /text-to-speech

<OpenAPI path="/text-to-speech" method="POST" />

***

## System Endpoints

### GET /health

<OpenAPI path="/health" method="GET" />

***

### GET /hardware/info

<OpenAPI path="/hardware/info" method="GET" />

***

### GET /hardware/stats

<OpenAPI path="/hardware/stats" method="GET" />
