Text to Text
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
contents | array | ✅ Yes | - | An array of content objects representing the conversation history. The role of the message sender. Typically "user" or "model". Optional for single-turn requests. |
parts | array | ✅ Yes | - | An array of parts that make up the message content. Text content of the message or prompt. |
inlineData | object | ❌ No | - | Inline media data. The MIME type of the media. |
functionCall | object | ❌ No | - | A function call generated by the model. The name of the function to call. |
candidates | array | ❌ No | - | An array of generated content candidates from the model. The content of the generated response. |