AI Completions

AI Completions

Generating AI Completions

post

Generates a completion based on chat history. Currently, the supported AI engine for the text generation is 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 the 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 Emporix Support Team to negotiate the model and usage.

Required scopes
This endpoint requires the following scopes:
  • : Needed to execute actions related to the AI completions.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired

Your Emporix tenant name.

Note: The tenant name should always be provided in lowercase.

Body
idstringOptional

Identifier of the request. The value is not mandatory - if provided, then the ID is returned in the text generation response.

Responses
200Success
application/json
post
/ai-service/{tenant}/completions

Last updated

Was this helpful?