Skip to main content

Methods Reference

The daydream.streams namespace provides methods for creating, reading, updating, and deleting streams.

Methods Overview

streams.create()

Creates a new video processing stream.

Parameters

Available Models

Returns


streams.getAll()

Retrieves all streams for the authenticated user.

Returns

Array of stream objects (same structure as create() response).

streams.getById()

Retrieves a specific stream by ID.

Parameters

Returns

Stream object (same structure as create() response).

streams.update()

Updates parameters for an existing stream.

Parameters

You only need to include the parameters you want to change. Other parameters remain unchanged.

Hot-Swappable Parameters

These parameters update instantly without pipeline reload:
  • prompt, negativePrompt
  • guidanceScale, delta
  • numInferenceSteps, tIndexList
  • seed
  • controlnets[].conditioningScale
  • ipAdapter settings
  • ipAdapterStyleImageUrl
All other parameters trigger a ~30s pipeline reload.

streams.delete()

Deletes a stream.

Parameters


Error Handling

The SDK throws typed errors for different failure scenarios:

Error Types


Retry Configuration

Configure automatic retries for transient failures:
Or per-request:

TypeScript Types

The SDK is fully typed. Import types for use in your application:

Next Steps