Skip to main content
POST
/
v3
/
functions
/
{name}
/
realtime
Create realtime function
import requests

url = "https://api.opper.ai/v3/functions/{name}/realtime"

payload = { "instructions": "<string>" }
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "cached": true,
  "name": "<string>",
  "script": "<string>",
  "reasoning": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication. Pass your API key as a Bearer token.

Path Parameters

name
string
required

Function name

Body

application/json
instructions
string
required
model
string
provider
string
tools
object[]
voice
string

Response

Successful response

cached
boolean
required
name
string
required
script
string
required
reasoning
string