Skip to main content
POST
Execute Agent Completion

Headers

x-api-key
string
required

Body

application/json
agent_config
AgentSpec · object
required

The configuration of the agent to be completed.

task
string | null

The task to be completed by the agent.

history
History · object

The history of the agent's previous tasks and responses. Can be either a dictionary or a list of message objects.

img
string | null

A base64 encoded image for the agent to process. Encode your image file to base64 and pass it here.

imgs
string[] | null

A list of base64 encoded images for the agent to process. Encode your image files to base64 and pass them here.

tools_enabled
string[] | null

A list of tools that the agent should use to complete its task.

Response

Successful Response

job_id
string | null

The unique identifier for the agent completion.

success
boolean | null
default:true

Indicates whether the agent completion was successful.

name
string | null

The name of the agent.

description
string | null

A description of the agent or completion.

temperature
number | null

The temperature setting used for the agent's response generation.

outputs
any | null

The outputs generated by the agent.

usage
Usage · object | null

Usage statistics or metadata for the agent completion.

timestamp
string | null

The timestamp when the agent completion was created.