generate

LLM

Generate text using a language model.

post/llm

Request body

modelstring
temperaturenumber
max_tokensinteger
top_pnumber
top_kinteger
streamboolean

Response

Successful Response

idstring required
modelstring required
createdinteger required

Changes

Changed in 9 of the 50 revisions of this API.5059

  • 0dfb43d02786512See the full diff
    • the choices/items/delta response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the choices/items/message response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 500

      response-property-type-changed

    • removed APIError from the detail response property allOf list for the response status 400

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 401

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 500

      response-property-all-of-removed

    • removed LLMMessage from the choices/items/delta response property allOf list for the response status 200

      response-property-all-of-removed

    • removed LLMMessage from the choices/items/message response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property choices/items/delta/content to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/delta/role to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/message/content to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/message/role to the response with the 200 status

      response-required-property-added

    • added the required property detail/msg to the response with the 400 status

      response-required-property-added

    • added the required property detail/msg to the response with the 401 status

      response-required-property-added

    • added the required property detail/msg to the response with the 500 status

      response-required-property-added

  • 0e0e976fd9e0125See the full diff
    • the choices/items/delta response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the choices/items/message response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 400

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 401

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 500

      response-property-type-changed

    • removed the required property choices/items/delta/content from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/delta/role from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/message/content from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/message/role from the response with the 200 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 400 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 401 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 500 status

      response-required-property-removed

    • added APIError to the detail response property allOf list for the response status 400

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 401

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 500

      response-property-all-of-added

    • added LLMMessage to the choices/items/delta response property allOf list for the response status 200

      response-property-all-of-added

    • added LLMMessage to the choices/items/message response property allOf list for the response status 200

      response-property-all-of-added

  • 0dfb43d02786512See the full diff
    • the choices/items/delta response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the choices/items/message response's property type/format changed from / to object/ for status 200

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 500

      response-property-type-changed

    • removed APIError from the detail response property allOf list for the response status 400

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 401

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 500

      response-property-all-of-removed

    • removed LLMMessage from the choices/items/delta response property allOf list for the response status 200

      response-property-all-of-removed

    • removed LLMMessage from the choices/items/message response property allOf list for the response status 200

      response-property-all-of-removed

    • added the required property choices/items/delta/content to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/delta/role to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/message/content to the response with the 200 status

      response-required-property-added

    • added the required property choices/items/message/role to the response with the 200 status

      response-required-property-added

    • added the required property detail/msg to the response with the 400 status

      response-required-property-added

    • added the required property detail/msg to the response with the 401 status

      response-required-property-added

    • added the required property detail/msg to the response with the 500 status

      response-required-property-added

  • 16e66550341d11See the full diff
    • removed the required property tokens_used from the response with the 200 status

      response-required-property-removed

    • added the required property usage to the response with the 200 status

      response-required-property-added

  • 0579502149da125See the full diff
    • the choices/items/delta response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the choices/items/message response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 400

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 401

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 500

      response-property-type-changed

    • removed the required property choices/items/delta/content from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/delta/role from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/message/content from the response with the 200 status

      response-required-property-removed

    • removed the required property choices/items/message/role from the response with the 200 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 400 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 401 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 500 status

      response-required-property-removed

    • added APIError to the detail response property allOf list for the response status 400

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 401

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 500

      response-property-all-of-added

    • added LLMMessage to the choices/items/delta response property allOf list for the response status 200

      response-property-all-of-added

    • added LLMMessage to the choices/items/message response property allOf list for the response status 200

      response-property-all-of-added

  • e0203b5e3aff510See the full diff
    • the detail response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 500

      response-property-type-changed

    • the tokens_used response's property type/format changed from integer/ to object/ for status 200

      response-property-type-changed

    • removed the required property response from the response with the 200 status

      response-required-property-removed

    • removed APIError from the detail response property allOf list for the response status 400

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 401

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 500

      response-property-all-of-removed

    • added the required property choices to the response with the 200 status

      response-required-property-added

    • added the required property detail/msg to the response with the 400 status

      response-required-property-added

    • added the required property detail/msg to the response with the 401 status

      response-required-property-added

    • added the required property detail/msg to the response with the 500 status

      response-required-property-added

    • added the required property tokens_used/completion_tokens to the response with the 200 status

      response-required-property-added

    • added the required property tokens_used/prompt_tokens to the response with the 200 status

      response-required-property-added

    • added the required property tokens_used/total_tokens to the response with the 200 status

      response-required-property-added

  • 494e040533b463See the full diff
    • the detail response's property type/format changed from object/ to / for status 400

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 401

      response-property-type-changed

    • the detail response's property type/format changed from object/ to / for status 500

      response-property-type-changed

    • removed the required property detail/msg from the response with the 400 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 401 status

      response-required-property-removed

    • removed the required property detail/msg from the response with the 500 status

      response-required-property-removed

    • added APIError to the detail response property allOf list for the response status 400

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 401

      response-property-all-of-added

    • added APIError to the detail response property allOf list for the response status 500

      response-property-all-of-added

  • 0d725f574173410See the full diff
    • removed the media type application/x-www-form-urlencoded from the request body

      request-body-media-type-removed

    • the detail response's property type/format changed from / to object/ for status 400

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 401

      response-property-type-changed

    • the detail response's property type/format changed from / to object/ for status 500

      response-property-type-changed

    • added the media type application/json to the request body

      request-body-media-type-added

    • removed APIError from the detail response property allOf list for the response status 400

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 401

      response-property-all-of-removed

    • removed APIError from the detail response property allOf list for the response status 500

      response-property-all-of-removed

    • added the required property created to the response with the 200 status

      response-required-property-added

    • added the required property detail/msg to the response with the 400 status

      response-required-property-added

    • added the required property detail/msg to the response with the 401 status

      response-required-property-added

    • added the required property detail/msg to the response with the 500 status

      response-required-property-added

    • added the required property id to the response with the 200 status

      response-required-property-added

    • added the required property model to the response with the 200 status

      response-required-property-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added