A method and
system for generating content by using a model, and a cluster are provided and may be applied to the field of
cloud computing technologies. The method includes: A
client receives a
content generation instruction sent by a user, where the
content generation instruction instructs a model to generate target content based on an intention of the user. The
client inputs the
content generation instruction into a first module, to enable the first module to output an intermediate result of generating the target content by the model. A serving end receives the intermediate result sent by the
client, and inputs the intermediate result into a second module, to enable the second module to output the target content. The serving end sends the target content to the client. The method can prevent a cloud from obtaining sensitive information of the user in the content generation instruction, and protecting
information security of the user.