POST
/
api
/
v1
/
stream
/
text
curl --request POST \
  --url https://itz.am/api/v1/stream/text \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "input": "Tell me about renewable energy",
  "attachments": [
    {
      "file": "file_data",
      "mimeType": "application/pdf"
    },
    {
      "file": "image_data",
      "mimeType": "image/png"
    },
    {
      "file": "https://example.com/image.jpg"
    }
  ],
  "workflowSlug": "my_great_workflow",
  "threadId": "thread_1234567890"
}'
{
  "type": "<string>",
  "object": {
    "output": "<string>"
  }
}

Authorizations

Api-Key
string
header
required

The API key to use for authentication

Body

application/json

Response

200
text/event-stream

Successfully streaming content

The response is of type object.