Documentation

Interactions

Updated: Nov 11, 2026

Method and Path

POST
/v1beta/interactions

Native Gemini Interactions format. Supports Gemini models only. Background execution (background: true) is not supported.

Authorization

See API Guide - Authentication.

Header Parameters

See API Guide - Common Request Headers.

Request Body

application/json
  1. body
model?string

Model ID, e.g. gemini-3.5-flash. Specify either model or agent.

agent?string

Agent name. Specify either model or agent.

input*||array<>

Input, either a string, a single message, or an array of messages.

system_instruction?string

System instruction.

generation_config?

Generation parameters, such as temperature and max_output_tokens.

tools?array<>

Tool definitions.

stream?boolean

Whether to stream the response.

previous_interaction_id?string

ID of the previous interaction, used to continue a multi-turn conversation.

background?boolean

Whether to run in the background. Only false is supported.

Defaultfalse

Response Body

Successful response

application/json
  1. response
id?string

Interaction ID.

model?string

ID of the model actually used.

status?string

Interaction status, such as completed.

outputs?array<>

List of outputs.

usage?

Token usage statistics.

Example Request
curl -X POST 'https://api.cysuo.com/v1beta/interactions' \  -H 'Content-Type: application/json' \  -d '{  "model": "gemini-3.5-flash",  "input": "Hello, please introduce yourself."}'
Example Response200
{  "id": "string",  "model": "string",  "status": "string",  "outputs": [    {      "type": "string",      "text": "string"    }  ],  "usage": {    "total_input_tokens": 0,    "total_output_tokens": 0,    "total_thought_tokens": 0,    "total_cached_tokens": 0,    "total_tokens": 0  }}