Create a node generation
curl --request POST \
--url https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"input_media": [
{
"asset_id": "<string>",
"url": "<string>"
}
],
"aspect_ratio": "<string>",
"resolution": "<string>",
"duration_seconds": 123
}
'import requests
url = "https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes"
payload = {
"prompt": "<string>",
"input_media": [
{
"asset_id": "<string>",
"url": "<string>"
}
],
"aspect_ratio": "<string>",
"resolution": "<string>",
"duration_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
input_media: [{asset_id: '<string>', url: '<string>'}],
aspect_ratio: '<string>',
resolution: '<string>',
duration_seconds: 123
})
};
fetch('https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes', 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://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'input_media' => [
[
'asset_id' => '<string>',
'url' => '<string>'
]
],
'aspect_ratio' => '<string>',
'resolution' => '<string>',
'duration_seconds' => 123
]),
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://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}")
req, _ := http.NewRequest("POST", 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.post("https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"projectId": "<string>",
"nodeId": "<string>",
"type": "<string>",
"status": "<string>"
}
}Projects & nodes
Create a node generation
Start a generation as a node on a real project’s canvas.
POST
/
v1
/
projects
/
{projectId}
/
nodes
Create a node generation
curl --request POST \
--url https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"input_media": [
{
"asset_id": "<string>",
"url": "<string>"
}
],
"aspect_ratio": "<string>",
"resolution": "<string>",
"duration_seconds": 123
}
'import requests
url = "https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes"
payload = {
"prompt": "<string>",
"input_media": [
{
"asset_id": "<string>",
"url": "<string>"
}
],
"aspect_ratio": "<string>",
"resolution": "<string>",
"duration_seconds": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
prompt: '<string>',
input_media: [{asset_id: '<string>', url: '<string>'}],
aspect_ratio: '<string>',
resolution: '<string>',
duration_seconds: 123
})
};
fetch('https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes', 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://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'input_media' => [
[
'asset_id' => '<string>',
'url' => '<string>'
]
],
'aspect_ratio' => '<string>',
'resolution' => '<string>',
'duration_seconds' => 123
]),
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://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}")
req, _ := http.NewRequest("POST", 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.post("https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apis.tryflowy.ai/genstudio-svc-v2/api/v1/projects/{projectId}/nodes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"input_media\": [\n {\n \"asset_id\": \"<string>\",\n \"url\": \"<string>\"\n }\n ],\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"duration_seconds\": 123\n}"
response = http.request(request)
puts response.read_body{
"data": {
"projectId": "<string>",
"nodeId": "<string>",
"type": "<string>",
"status": "<string>"
}
}The node id is minted server-side and the generation appears on the project’s canvas in real time; the output is also recorded in the workspace asset library. Canvas node state lives in the realtime collab layer, so reads go through List assets.
Authorizations
A workspace API key. Secret keys (flowy_…) are server-side — keep them private. Publishable keys (flowy_pk_…) are browser-safe but only work from their allowlisted domains.
Path Parameters
Body
application/json
Response
202 - application/json
Node generation started
Show child attributes
Show child attributes
Was this page helpful?
⌘I

