IGenerativeModelGenerateContentAsync Method

Overload List

GenerateContentAsync(GenerateContentRequest, CancellationToken) Generates content asynchronously based on the given input parameters.
GenerateContentAsync(IEnumerablePart, CancellationToken) Generate content based on a sequence of Part objects.
GenerateContentAsync(String, CancellationToken) Generates content asynchronously based on the specified text input prompt.
GenerateContentAsync(String, String, String, CancellationToken) Generates content asynchronously based on the provided text prompt and an inline file path.
GenerateContentAsyncT(GenerateContentRequest, CancellationToken) Generates content asynchronously using JSON mode based on the given input parameters and converts the resulting JSON into a C# object of type T.

See Also