Update a stream
curl --request PATCH \
--url https://api.daydream.live/v1/streams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": true,
"normalize_seed_weights": true,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [
0
],
"use_safety_checker": true,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": true,
"lcm_lora_id": "<string>",
"use_denoising_batch": true,
"do_add_noise": true,
"seed": 0,
"enable_similar_image_filter": true,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": true,
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": true,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
}
}
'import requests
url = "https://api.daydream.live/v1/streams/{id}"
payload = {
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": True,
"normalize_seed_weights": True,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [0],
"use_safety_checker": True,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": True,
"lcm_lora_id": "<string>",
"use_denoising_batch": True,
"do_add_noise": True,
"seed": 0,
"enable_similar_image_filter": True,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": True,
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": True,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pipeline: 'streamdiffusion',
params: {
model_id: 'stabilityai/sd-turbo',
prompt: '<string>',
normalize_prompt_weights: true,
normalize_seed_weights: true,
negative_prompt: '<string>',
guidance_scale: 123,
delta: 123,
num_inference_steps: 50,
t_index_list: [0],
use_safety_checker: true,
width: 704,
height: 704,
lora_dict: {},
use_lcm_lora: true,
lcm_lora_id: '<string>',
use_denoising_batch: true,
do_add_noise: true,
seed: 0,
enable_similar_image_filter: true,
similar_image_filter_threshold: 0.5,
similar_image_filter_max_skip_frame: 4503599627370495,
skip_diffusion: true,
controlnets: [
{
conditioning_scale: 0.5,
enabled: true,
preprocessor_params: {},
control_guidance_start: 0.5,
control_guidance_end: 0.5
}
]
}
})
};
fetch('https://api.daydream.live/v1/streams/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daydream.live/v1/streams/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'pipeline' => 'streamdiffusion',
'params' => [
'model_id' => 'stabilityai/sd-turbo',
'prompt' => '<string>',
'normalize_prompt_weights' => true,
'normalize_seed_weights' => true,
'negative_prompt' => '<string>',
'guidance_scale' => 123,
'delta' => 123,
'num_inference_steps' => 50,
't_index_list' => [
0
],
'use_safety_checker' => true,
'width' => 704,
'height' => 704,
'lora_dict' => [
],
'use_lcm_lora' => true,
'lcm_lora_id' => '<string>',
'use_denoising_batch' => true,
'do_add_noise' => true,
'seed' => 0,
'enable_similar_image_filter' => true,
'similar_image_filter_threshold' => 0.5,
'similar_image_filter_max_skip_frame' => 4503599627370495,
'skip_diffusion' => true,
'controlnets' => [
[
'conditioning_scale' => 0.5,
'enabled' => true,
'preprocessor_params' => [
],
'control_guidance_start' => 0.5,
'control_guidance_end' => 0.5
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daydream.live/v1/streams/{id}"
payload := strings.NewReader("{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.daydream.live/v1/streams/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daydream.live/v1/streams/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": true,
"normalize_seed_weights": true,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [
0
],
"use_safety_checker": true,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": true,
"lcm_lora_id": "<string>",
"use_denoising_batch": true,
"do_add_noise": true,
"seed": 0,
"enable_similar_image_filter": true,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": true,
"image_preprocessing": {
"processors": [
{
"enabled": true,
"params": {}
}
],
"enabled": true
},
"image_postprocessing": {
"processors": [
{
"enabled": true,
"params": {}
}
],
"enabled": true
},
"latent_preprocessing": {
"processors": [
{
"type": "latent_feedback",
"enabled": true,
"params": {}
}
],
"enabled": true
},
"latent_postprocessing": {
"processors": [
{
"type": "latent_feedback",
"enabled": true,
"params": {}
}
],
"enabled": true
},
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": true,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
},
"id": "<string>",
"stream_key": "<string>",
"created_at": "<string>",
"output_playback_id": "<string>",
"name": "<string>",
"author": "<string>",
"from_playground": true,
"gateway_host": "<string>",
"is_smoke_test": true,
"whip_url": "<string>",
"output_stream_url": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}API Reference
Update a Stream
Updates pipeline parameters for an existing video processing stream
PATCH
/
v1
/
streams
/
{id}
Update a stream
curl --request PATCH \
--url https://api.daydream.live/v1/streams/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": true,
"normalize_seed_weights": true,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [
0
],
"use_safety_checker": true,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": true,
"lcm_lora_id": "<string>",
"use_denoising_batch": true,
"do_add_noise": true,
"seed": 0,
"enable_similar_image_filter": true,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": true,
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": true,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
}
}
'import requests
url = "https://api.daydream.live/v1/streams/{id}"
payload = {
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": True,
"normalize_seed_weights": True,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [0],
"use_safety_checker": True,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": True,
"lcm_lora_id": "<string>",
"use_denoising_batch": True,
"do_add_noise": True,
"seed": 0,
"enable_similar_image_filter": True,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": True,
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": True,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
pipeline: 'streamdiffusion',
params: {
model_id: 'stabilityai/sd-turbo',
prompt: '<string>',
normalize_prompt_weights: true,
normalize_seed_weights: true,
negative_prompt: '<string>',
guidance_scale: 123,
delta: 123,
num_inference_steps: 50,
t_index_list: [0],
use_safety_checker: true,
width: 704,
height: 704,
lora_dict: {},
use_lcm_lora: true,
lcm_lora_id: '<string>',
use_denoising_batch: true,
do_add_noise: true,
seed: 0,
enable_similar_image_filter: true,
similar_image_filter_threshold: 0.5,
similar_image_filter_max_skip_frame: 4503599627370495,
skip_diffusion: true,
controlnets: [
{
conditioning_scale: 0.5,
enabled: true,
preprocessor_params: {},
control_guidance_start: 0.5,
control_guidance_end: 0.5
}
]
}
})
};
fetch('https://api.daydream.live/v1/streams/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.daydream.live/v1/streams/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'pipeline' => 'streamdiffusion',
'params' => [
'model_id' => 'stabilityai/sd-turbo',
'prompt' => '<string>',
'normalize_prompt_weights' => true,
'normalize_seed_weights' => true,
'negative_prompt' => '<string>',
'guidance_scale' => 123,
'delta' => 123,
'num_inference_steps' => 50,
't_index_list' => [
0
],
'use_safety_checker' => true,
'width' => 704,
'height' => 704,
'lora_dict' => [
],
'use_lcm_lora' => true,
'lcm_lora_id' => '<string>',
'use_denoising_batch' => true,
'do_add_noise' => true,
'seed' => 0,
'enable_similar_image_filter' => true,
'similar_image_filter_threshold' => 0.5,
'similar_image_filter_max_skip_frame' => 4503599627370495,
'skip_diffusion' => true,
'controlnets' => [
[
'conditioning_scale' => 0.5,
'enabled' => true,
'preprocessor_params' => [
],
'control_guidance_start' => 0.5,
'control_guidance_end' => 0.5
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.daydream.live/v1/streams/{id}"
payload := strings.NewReader("{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.daydream.live/v1/streams/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.daydream.live/v1/streams/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"pipeline\": \"streamdiffusion\",\n \"params\": {\n \"model_id\": \"stabilityai/sd-turbo\",\n \"prompt\": \"<string>\",\n \"normalize_prompt_weights\": true,\n \"normalize_seed_weights\": true,\n \"negative_prompt\": \"<string>\",\n \"guidance_scale\": 123,\n \"delta\": 123,\n \"num_inference_steps\": 50,\n \"t_index_list\": [\n 0\n ],\n \"use_safety_checker\": true,\n \"width\": 704,\n \"height\": 704,\n \"lora_dict\": {},\n \"use_lcm_lora\": true,\n \"lcm_lora_id\": \"<string>\",\n \"use_denoising_batch\": true,\n \"do_add_noise\": true,\n \"seed\": 0,\n \"enable_similar_image_filter\": true,\n \"similar_image_filter_threshold\": 0.5,\n \"similar_image_filter_max_skip_frame\": 4503599627370495,\n \"skip_diffusion\": true,\n \"controlnets\": [\n {\n \"conditioning_scale\": 0.5,\n \"enabled\": true,\n \"preprocessor_params\": {},\n \"control_guidance_start\": 0.5,\n \"control_guidance_end\": 0.5\n }\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"pipeline": "streamdiffusion",
"params": {
"model_id": "stabilityai/sd-turbo",
"prompt": "<string>",
"normalize_prompt_weights": true,
"normalize_seed_weights": true,
"negative_prompt": "<string>",
"guidance_scale": 123,
"delta": 123,
"num_inference_steps": 50,
"t_index_list": [
0
],
"use_safety_checker": true,
"width": 704,
"height": 704,
"lora_dict": {},
"use_lcm_lora": true,
"lcm_lora_id": "<string>",
"use_denoising_batch": true,
"do_add_noise": true,
"seed": 0,
"enable_similar_image_filter": true,
"similar_image_filter_threshold": 0.5,
"similar_image_filter_max_skip_frame": 4503599627370495,
"skip_diffusion": true,
"image_preprocessing": {
"processors": [
{
"enabled": true,
"params": {}
}
],
"enabled": true
},
"image_postprocessing": {
"processors": [
{
"enabled": true,
"params": {}
}
],
"enabled": true
},
"latent_preprocessing": {
"processors": [
{
"type": "latent_feedback",
"enabled": true,
"params": {}
}
],
"enabled": true
},
"latent_postprocessing": {
"processors": [
{
"type": "latent_feedback",
"enabled": true,
"params": {}
}
],
"enabled": true
},
"controlnets": [
{
"conditioning_scale": 0.5,
"enabled": true,
"preprocessor_params": {},
"control_guidance_start": 0.5,
"control_guidance_end": 0.5
}
]
},
"id": "<string>",
"stream_key": "<string>",
"created_at": "<string>",
"output_playback_id": "<string>",
"name": "<string>",
"author": "<string>",
"from_playground": true,
"gateway_host": "<string>",
"is_smoke_test": true,
"whip_url": "<string>",
"output_stream_url": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}{
"success": false,
"error": "<string>",
"code": "<string>",
"status": 123,
"details": "<unknown>",
"requestId": "<string>",
"traceId": "<string>"
}Rate limit: 300 requests per minute.
Request Body Structure
{
"pipeline": "streamdiffusion",
"params": {
"model_id": "Lykon/dreamshaper-8",
"prompt": "new prompt",
// ... only include parameters you want to change
}
}
The
pipeline field defaults to "streamdiffusion" if omitted, so you can just send params for most updates.Hot-Swap vs Reload Parameters
The following parameters can be updated dynamically (no reload required):
prompt,negative_promptguidance_scale,deltanum_inference_steps,t_index_listseedcontrolnets.conditioning_scaleip_adaptersettingsip_adapter_style_image_url
Example: Update Prompt
curl -X PATCH \
"https://api.daydream.live/v1/streams/${STREAM_ID}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DAYDREAM_API_KEY}" \
-d '{
"params": {
"model_id": "Lykon/dreamshaper-8",
"prompt": "cyberpunk cityscape, neon lights"
}
}'
Example: Adjust ControlNet Strength
curl -X PATCH \
"https://api.daydream.live/v1/streams/${STREAM_ID}" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer ${DAYDREAM_API_KEY}" \
-d '{
"params": {
"model_id": "Lykon/dreamshaper-8",
"controlnets": [
{
"model_id": "lllyasviel/control_v11f1p_sd15_depth",
"preprocessor": "depth_tensorrt",
"conditioning_scale": 0.7,
"enabled": true
}
]
}
}'
For full parameter documentation, see the Parameters section.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of the stream to update
Minimum string length:
1Body
application/json
Response
Default Response
- StreamDiffusion
- Scope
Available options:
streamdiffusion - SDTurbo
- SDXL
- SD1.5
Show child attributes
Show child attributes
Unique identifier for the stream
Unique key used for streaming to this endpoint
ISO timestamp when the stream was created
Playback ID for accessing the stream output
Human-readable name of the stream
ID of the user who created this stream
Whether this stream was created from the playground interface
Gateway server hostname handling this stream
Whether this is a smoke test stream
WebRTC WHIP URL for stream ingestion
URL where the processed stream output can be accessed
⌘I