Text Generation
Google
gemini-2.5-pro
Generate model response based on conversation content.
POST
Text Generation
Query Parameters
API Key
Body
application/json
Array of conversation contents with user and model messages.
Example:
[
{
"role": "user",
"parts": [
{ "text": "Hello, tell me about yourself." }
]
}
]System instruction
Example:
{
"parts": [{ "text": "You are a helpful assistant." }]
}