OpenAPI 3.1.02026-08-226994571.1 MB

1e929292ddd5

google genai endpoints
interactions

Create Interaction

Create a new interaction using Google's Interactions API.

Per OpenAPI spec: POST /{api_version}/interactions

Supports both model interactions and agent interactions:

  • Model: Provide model parameter (e.g., "gemini-2.5-flash")
  • Agent: Provide agent parameter (e.g., "deep-research-pro-preview-12-2025")

Example:

curl -X POST "http://localhost:4000/v1beta/interactions"         -H "Authorization: Bearer sk-1234"         -H "Content-Type: application/json"         -d '{
        "model": "gemini/gemini-2.5-flash",
        "input": "Hello, how are you?"
    }'
post/v1beta/interactions

Response

Successful Response

{"stackTrail":"paths:/v1beta/interactions:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}