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
- Not Available on-demand: 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. We recommend that you use the chat models instead.
- Can be hosted on clusters: 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. These models, when hosted on a dedicated AI cluster are only available in US Midwest (Chicago). See Retiring the Models for retirement dates and definitions.
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.