Python
import requests url = "https://api.opper.ai/v3/compat/v1beta/interactions" payload = { "contents": "<unknown>", "input": "<unknown>" } headers = { "Authorization": "Bearer <token>", "Content-Type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
{ "id": "<string>", "outputs": [ { "type": "<string>", "args": {}, "data": "<string>", "id": "<string>", "mime_type": "<string>", "name": "<string>", "summary": "<string>", "text": "<string>", "thought": "<string>" } ], "status": "<string>", "agent": "<string>", "error": { "code": "<string>", "message": "<string>" }, "input": "<unknown>", "model": "<string>", "previous_interaction_id": "<string>", "usage": { "total_tokens": 123 } }
Google Interactions API compatible endpoint. Supports streaming via the stream parameter.
API key authentication. Pass your API key as a Bearer token.
Any value
Show child attributes
Successful response