Sends an AI request to supported Large Language Models (LLMs) and returns generated text based on the provided prompt.
The access token received from the authorization server in the OAuth 2.0 flow.
AI text gen request object.
The prompt provided by the client to be answered by the LLM. The prompt's length is limited to 10000 characters.
"Write an email to a client about the importance of public APIs."
The items to be processed by the LLM, often files. The array can include exactly one element.
Note: Box AI handles documents with text representations up to 1MB in size. If the file size exceeds 1MB, the first 1MB of text representation will be processed.
1 elementThe history of prompts and answers previously passed to the LLM. This parameter provides the additional context to the LLM when generating the response.
The AI agent to be used for generating text.
A successful response including the answer from the LLM.
AI response.
The answer provided by the LLM.
"Public APIs are important because of key and important reasons."
The ISO date formatted timestamp of when the answer to the prompt was created.
"2012-12-12T10:53:43-08:00"
The reason the response finishes.
"done"
The information on the models and processors used in the request.