---
title: "LLM"
method: POST
path: "/llm"
tags: ["generate"]
---

# LLM

`POST /llm`

Generate text using a language model.

## Response `200`

Successful Response

- LLMResponse
  - `response` string, required
  - `tokens_used` integer, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `422` — Validation Error
- `500` — Internal Server Error

## Changes

- **2024-09-30** `9829d9dc98e9` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/livepeer/apis/livepeer-ai-runner/changes/llm/post.md)

---

[API](https://skmtc.dev/livepeer/apis/livepeer-ai-runner.md) · [All operations](https://skmtc.dev/livepeer/apis/livepeer-ai-runner/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/livepeer/livepeer-ai-runner/revisions/9dff8ecd03c0/schema)
