Hive’s Text Generation API produces text in response to a given text prompt. The response to each prompt can be up to 512 tokens (around 1024 characters). The model produces writing across many genres and formats for a wide variety of use cases, including answering questions, writing stories, participating in conversations, and programming in multiple programming languages.
A sample JSON response is shown below:
{
"status": [
{
"status": {
"code": "0",
"message": "SUCCESS"
},
"_version": 2,
"response": {
"input": "How can I improve the performance of my React component that keeps making API calls to the backend??",
"response": "One way to improve performance of a React component is to use caching. Caching can help prevent redundant API calls..."
}
}
]
}