Create

Generate new Lilt Create content

Changed on

Generate new Lilt Create content with the given parameters.

Example CURL:

curl -X POST 'https://api.lilt.com/v2/create?key=API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
  "language":"en-US",
  "template":"blog-post",
  "templateParams":{
    "contentLength":"100",
    "language":"en-US",
    "sections":[],
    "summary":"a blog post about hiking"
    },
  "preferences":{"tone":"formal","styleguide":""}
}'
post/v2/create

Request

  • Base URL
    https://api.lilt.com
  • URL
    https://api.lilt.com/v2/create
  • Auth
    HTTP basic

Request body

namestring

A name for the request content.

languagestring required

The language of the content.

templatestring required

The template of the content.

Response

An event stream produced by Server Side Events. The following events are supported.

  • message: an object with the newly generated text (e.g. {"text": "hello"})
  • message: upon completion of events the string "[DONE]" will be emitted
  • fullcontent: an object containing the full response

Changes

    • breaking

      added required request body

    • info

      api operation id generateLiltCreateContent was added

    • info

      added the non-success response with the status

    • info

      added the success response with the status