Skip to main content

Conversations

Conversation threads and message history for AI Studio chat sessions. These endpoints let you send messages (with optional image attachments), list conversations, retrieve message history, and rename or delete conversation threads.

Endpoints


POST

Send message

Sends a message to a conversation and returns the model's reply. Include an image attachment for image-to-text models.

GET

List conversations

Returns your conversation threads, with pagination and optional title search.

GET

List conversation messages

Returns the full message history for a conversation, in chronological order.

PATCH

Rename conversation

Updates the title of a conversation you own.

DEL

Delete conversation

Permanently deletes a conversation and all of its messages.

GET

Request an image upload URL

Returns a presigned URL for uploading an image attachment before sending it in a message.

On this page