Text Generation
Was this helpful?
Was this helpful?
Generates a text based on a prompt. Currently supported AI engines for text generation:
https://platform.openai.com/
Prerequisite: Using the AI service requires an API token, you have to either configure your own OpenAI account, or use the Emporix one. To configure your own OpenAI token, use the configuration service by storing the token under openAiApiToken
key.
If you don't provide your own OpenAI token, the Emporix one is used with the following limits: 3 mln input tokens and 1 mln output tokens. When you reach the limit, the next requests are rejected and you have to provide your own OpenAI token. Emporix uses the gpt-4o-mini model by default. If you want to use your own OpenAI account with a different AI model please contact our to negotiate the model and usage.
###Required scopes###
ai.text_manage
Your Emporix tenant's name.
Note: The tenant name should always be provided in lowercase.
Represents a request body for a text generation operation.
Identifier of the request. The value is not mandatory - if provided then the id is returned in the text generation response.
A prompt to AI engine. A desired text content is generated based on the prompt.
Maximum number of tokens that should be used during text generation. If not provided then 4097 is used.