Skip to main content
POST
/
runs
/
stream
Create and stream a run
curl --request POST \
  --url https://api.subconscious.dev/v1/runs/stream \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "engine": "tim-edge",
  "input": {
    "instructions": "<string>",
    "tools": [
      {
        "type": "platform",
        "id": "<string>",
        "options": {}
      }
    ],
    "answerFormat": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ],
      "title": "<string>",
      "additionalProperties": false,
      "$defs": {}
    },
    "reasoningFormat": {
      "type": "object",
      "properties": {},
      "required": [
        "<string>"
      ],
      "title": "<string>",
      "additionalProperties": false,
      "$defs": {}
    }
  },
  "output": {
    "callbackUrl": "<string>"
  },
  "options": {
    "timeout": 1800
  }
}
'
"<string>"

Authorizations

Authorization
string
header
required

Bearer token authentication using your API key generated on the Subconscious platform

Body

application/json

Run creation request

engine
enum<string>
required

The engine to use for this run

Available options:
tim-edge,
tim-gpt,
tim-gpt-heavy
input
object
required
output
object
options
object

Response

Stream of run events

Server-Sent Events stream