Generate Text in Generative AI
Host a text generation large language generation model in OCI Generative AI on a dedicated AI cluster to generate text or extract information from text. We recommend that you use the chat models instead.
Important
All OCI Generative AI foundational pretrained models supported for the on-demand serving mode that use the text generation and summarization APIs (including the playground) are now retired. If you host a summarization or a generation model such as
All OCI Generative AI foundational pretrained models supported for the on-demand serving mode that use the text generation and summarization APIs (including the playground) are now retired. If you host a summarization or a generation model such as
cohere.command
on a dedicated AI cluster, (dedicated serving mode), you can continue to use that model until it's retired. See Retiring the Models for retirement dates and definitions. We recommend that you use the chat models instead.To generate text, use the generate-text-result operation.
Enter the following command for a list of options to generate text.
oci generative-ai-inference generate-text-result -h
For a complete list of parameters and values for the OCIGenerative AI CLI commands, see Generative AI Inference CLI and Generative AI Management CLI.
Run the GenerateText operation to generate text.
For information about using the API and signing requests, see REST API documentation and Security Credentials. For information about SDKs, see SDKs and the CLI.