---
title: "Changes to LLM"
method: POST
path: "/api/generate/llm"
---

# Changes to LLM

`POST /api/generate/llm`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 5 of 9 revisions.

- **2025-10-30** `dfc937fc0d2c`: 12 breaking, 5 info
- **2025-10-30** `f5d01b71ba9a`: 5 breaking, 12 info
- **2025-10-28** `dfc937fc0d2c`: 3 breaking, 6 info
- **2024-10-07** `d5fb95912501`: 2 info
- **2024-10-03** `cbf999b9a7cf`: 1 info

## Changes

- **2025-10-30** `dfc937fc0d2c`: 12 breaking, 5 info
  - the `choices/items/delta` response's property type changed from `object` to no type for status `200`
  - the `choices/items/message` response's property type changed from `object` to no type for status `200`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from `object` to no type for status `400`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from `object` to no type for status `401`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from `object` to no type for status `500`
  - removed the required property `choices/items/delta/content` from the response with the `200` status
  - removed the required property `choices/items/delta/role` from the response with the `200` status
  - removed the required property `choices/items/message/content` from the response with the `200` status
  - removed the required property `choices/items/message/role` from the response with the `200` status
  - removed the required property `oneOf[subschema #1: HTTPError]/detail/msg` from the response with the `400` status
  - removed the required property `oneOf[subschema #1: HTTPError]/detail/msg` from the response with the `401` status
  - removed the required property `oneOf[subschema #1: HTTPError]/detail/msg` from the response with the `500` status
  - added `#/components/schemas/APIError` to the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `400`
  - added `#/components/schemas/APIError` to the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `401`
  - added `#/components/schemas/APIError` to the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `500`
  - added `#/components/schemas/LLMMessage` to the `choices/items/delta` response property `allOf` list for the response status `200`
  - added `#/components/schemas/LLMMessage` to the `choices/items/message` response property `allOf` list for the response status `200`
- **2025-10-30** `f5d01b71ba9a`: 5 breaking, 12 info
  - the `choices/items/delta` response's property type changed from no type to `object` for status `200`
  - the `choices/items/message` response's property type changed from no type to `object` for status `200`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from no type to `object` for status `400`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from no type to `object` for status `401`
  - the `oneOf[subschema #1: HTTPError]/detail` response's property type changed from no type to `object` for status `500`
  - removed `#/components/schemas/APIError` from the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `400`
  - removed `#/components/schemas/APIError` from the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `401`
  - removed `#/components/schemas/APIError` from the `oneOf[subschema #1: HTTPError]/detail` response property `allOf` list for the response status `500`
  - removed `#/components/schemas/LLMMessage` from the `choices/items/delta` response property `allOf` list for the response status `200`
  - removed `#/components/schemas/LLMMessage` from the `choices/items/message` response property `allOf` list for the response status `200`
  - added the required property `choices/items/delta/content` to the response with the `200` status
  - added the required property `choices/items/delta/role` to the response with the `200` status
  - added the required property `choices/items/message/content` to the response with the `200` status
  - added the required property `choices/items/message/role` to the response with the `200` status
  - added the required property `oneOf[subschema #1: HTTPError]/detail/msg` to the response with the `400` status
  - added the required property `oneOf[subschema #1: HTTPError]/detail/msg` to the response with the `401` status
  - added the required property `oneOf[subschema #1: HTTPError]/detail/msg` to the response with the `500` status
- **2025-10-28** `dfc937fc0d2c`: 3 breaking, 6 info
  - removed the media type `application/x-www-form-urlencoded` from the request body
  - removed the required property `response` from the response with the `200` status
  - removed the required property `tokens_used` from the response with the `200` status
  - added the media type `application/json` to the request body
  - added the required property `choices` to the response with the `200` status
  - added the required property `created` to the response with the `200` status
  - added the required property `id` to the response with the `200` status
  - added the required property `model` to the response with the `200` status
  - added the required property `usage` to the response with the `200` status
- **2024-10-07** `d5fb95912501`: 2 info
  - the request property `model_id` became optional
  - the `model_id` request property default value changed from `` to `meta-llama/Meta-Llama-3.1-8B-Instruct`
- **2024-10-03** `cbf999b9a7cf`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/livepeer/apis/livepeer-ai-api/docs/api/generate/llm/post.md) - [API](https://skmtc.dev/livepeer/apis/livepeer-ai-api.md) - [Page](https://skmtc.dev/livepeer/apis/livepeer-ai-api/changes/api/generate/llm/post)
