---
title: "Stream object"
method: POST
path: "/api/v1/stream/object"
---

# Stream object

`POST /api/v1/stream/object`

Stream object generation for a specific workflow (we strongly recommend using the SDK for this)

## Request body

- AiStructuredCompletionRequest
  - `input` string, required — The input text to generate a response for
  - `workflowSlug` string, required — The slug of the Workflow to use for generation (can be found in the Itzam dashboard)
  - `groupId` string — Optional identifier for grouping related runs (e.g. user ID, session ID, etc.)
  - `schema` object — The schema of the response, JSON Schema

## Response `200`

Successfully streaming content

## Other responses

- `400` — Bad request - invalid input
- `401` — Unauthorized - invalid API key
- `403` — Forbidden - organization does not have an active subscription
- `404` — Not found - workflow not found
- `500` — Server error during generation

---

[API](https://skmtc.dev/itzam-ai/apis/itzam-api.md) · [All operations](https://skmtc.dev/itzam-ai/apis/itzam-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/itzam-ai/itzam-api/revisions/cc21b9e9916a/schema)
