AiCon V2 Large (Beta)
AI Content based on training data and contents
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
The Text or Command to be processed.
The ID of the Dataset that you want to use for the Question Answering.
Whether to preserve the conversation history of the user. If set to true, the conversation history will be preserved and the conversation history will be accepted as conversation_history
in the request body.
The conversation history of the user as an array of objects. Each object should have a question
and answer
property as the key and value respectively.
The randomness factor to be used while generating the content. The higher the randomness, the more creative the content will be. The value should be between 0 and 1. 0
means it will be absolutely to the point and stops hallucinations. 1
means it will be completely creative and creates a content surrounding your questions a lot.
The instructions to be used while generating the content. This can be used to pass in smaller content based on how you want the model to behave, and specific behavioural or restrictive traits you want to add. This is optional.
Whether to stream the data as it is being generated. If set to true, the response will be streamed as the data is being generated. This is useful when you want to generate a lot of content and want to save the data as it is being generated. You need to handle Server Sent Events for this use case.
Response
Status indicating the success of the text moderation.
The text content generated.
The time taken to process the request, in milliseconds.
A universally unique identifier for the request. This can be used to track the request in the logs.
The number of times the request has been processed. This is what is considered in the Billing Process. This is either the number of times the image is processed or the number of words that the server processes.
Was this page helpful?