Create
Generate new Lilt Create content
Changed onGenerate 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 URLhttps://api.lilt.com
- URLhttps://api.lilt.com/v2/create
- AuthHTTP basic
Request body
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
generateLiltCreateContentwas added - info
added the non-success response with the status
- info
added the success response with the status
- breaking