Stream text generation for a specific workflow (we strongly recommend using the SDK for this)
cURL
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" } ], "contextSlugs": [ "special-docs", "admin-files" ], "workflowSlug": "my_great_workflow", "threadId": "thread_1234567890" }'
{ "type": "<string>", "object": { "output": "<string>" } }
The API key to use for authentication
Successfully streaming content
The response is of type object.
object