Text Generation V4
WorqHat AiCon V4 API allows you to generate text using only text input.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The message or question you want to pass to the model.
ID of the model to use. See the model endpoint compatibility table for details on which models work and are currently supported.
What model prediction randomness to use, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
If set, partial message deltas will be sent as data-only server-sent events, with the stream terminated by a data [DONE] message.
You can pass any sort of training data or system messages that you want the model to follow when answering your questions.
Specifies the format that the model must output.
Used as per requirement.
Set to true to maintain conversation history.
Response
The response output of the processing.
The amount of time in miliseconds it took to complete the request.
A unique identifier for the server process. This helps us track support requests and complaints.
Usage statistics for the request. This is what is used for the billing.
A unique identifier for the Message. You can use this conversation id later when building multiturn chat applications. This conversation id is what keeps a track of your past conversation. You can use this to keep continuing your requests one after the other without the hassle of maintaining the conversation history on your own.
The model used for the process.