Text Generation
Required scopes
This endpoint requires the following scopes:
- : Needed to execute actions related to the text generation.
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
tenantstringRequired
Your Emporix tenant name.
Note: The tenant name should always be provided in lowercase.
Body
Represents a request body for a text generation operation.
idstringOptional
Identifier of the request. The value is not mandatory - if provided, the ID is returned in the text generation response.
promptstringRequired
A prompt to AI engine. A desired text content is generated based on the prompt.
maxTokensintegerOptional
Maximum number of tokens that should be used during text generation. If not provided, then 4097 is used.
Responses
200Success
application/json
400
The request was syntactically incorrect.
application/json
401
The authorization token is invalid or has expired.
application/json
403
Authorization scopes of the access token are not sufficient and do not match the scopes required by the endpoint.
application/json
500
A server-side error occurred.
application/json
post
/ai-service/{tenant}/textsLast updated
Was this helpful?

