Generate Content
POST
/v1beta/models/{model}:{GenerateContentType}Generate content using the Google Gemini-compatible request format.
Path Parameters
model:requiredstringModel identifier used for this request.
Example
gemini-3.5-flashGenerateContentType:requiredstringGemini-compatible generation action.
Allowed
generateContentstreamGenerateContentExample
generateContentQuery Parameters
key:optionalstringOptional request parameter.
Example
{{key}}Request Body
application/jsoncontents:requiredobjectGemini-compatible content payload.
Example
[{"parts":[{"text":"Write a story about a magic backpack."}]}]Response
200A successful request returns a JSON response. The complete example is shown in the code panel.
Compatibility References
Use these external references to review additional parameters supported by compatible provider formats.