Skip to main content
POST
Create an agent response
Send a text input. To continue, send the next input with the earlier response’s id as previous_response_id. With stream: true, read text deltas until the response.completed event. A new non-streaming call returns the completed response with its id, output, output_text, and usage. Try a first request.

Authorizations

Authorization
string
header
required

The owning account's Studio API key in the Authorization header.

Headers

X-Eigi-Session-Id
string

Stable conversation ID. X-Eigi-Session-Key is accepted as an alias.

Body

application/json
model
string
Example:

"eigi-agent"

input
instructions
string
previous_response_id
string
stream
boolean
default:false

Response

Successful request

id
string
object
string
model
string
status
string
output
object[]
output_text
string
usage
object