[{"data":1,"prerenderedAt":805},["ShallowReactive",2],{"docs-page-meta":3,"docs-page-\u002Fall-endpoints\u002Fcreate-flow":32},{"pageMeta":4,"generatedAt":31},{"\u002Fall-endpoints\u002Fcreate-flow":5,"\u002Fall-endpoints\u002Fdelete-flow":7,"\u002Fall-endpoints\u002Fget-flow-input":8,"\u002Fall-endpoints\u002Fget-flow-output":9,"\u002Fall-endpoints\u002Fget-flow":10,"\u002Fall-endpoints\u002Fget-template":11,"\u002Fall-endpoints\u002Flist-flow-inputs":12,"\u002Fall-endpoints\u002Flist-flow-outputs":13,"\u002Fall-endpoints\u002Flist-flows":14,"\u002Fall-endpoints\u002Flist-templates":15,"\u002Fall-endpoints\u002Fstart-abort-flow":16,"\u002Fall-endpoints\u002Fupload-flow-input":17,"\u002Fgetting-started\u002Fauthentication":18,"\u002Fgetting-started\u002Fflow-lifecycle":19,"\u002Fgetting-started\u002Fflow":21,"\u002Fgetting-started\u002Fopenapi":22,"\u002Fgetting-started\u002Fplans-and-policies":23,"\u002Fgetting-started\u002Fquickstart":24,"\u002Fgetting-started\u002Ftemplate-helpers":25,"\u002Fgetting-started\u002Ftemplate-image-to-3d":26,"\u002Fgetting-started\u002Ftemplate-optimize-model":27,"\u002Fgetting-started\u002Ftemplate-text-to-3d":28,"\u002Fgetting-started\u002Ftemplates":29,"\u002Fgetting-started\u002Ftroubleshooting":30},{"lastUpdated":6},"2026-08-14T13:36:05.144Z",{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":6},{"lastUpdated":20},"2026-08-14T13:36:05.145Z",{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},{"lastUpdated":20},"2026-08-14T13:38:49.206Z",{"id":33,"title":34,"body":35,"description":798,"extension":799,"meta":800,"navigation":408,"path":801,"seo":802,"stem":803,"__hash__":804},"docs\u002Fall-endpoints\u002Fcreate-flow.md","Create a Flow",{"type":36,"value":37,"toc":787},"minimark",[38,42,46,52,81,86,94,100,105,233,239,244,252,256,261,283,287,291,294,298,301,305,312,783],[39,40,34],"h1",{"id":41},"create-a-flow",[43,44,45],"p",{},"Create a new flow instance from a template. Flows can be created in two modes: with or without initial inputs.",[43,47,48],{},[49,50,51],"strong",{},"Request Parameters:",[53,54,55,63,69,75],"ul",{},[56,57,58,62],"li",{},[59,60,61],"code",{},"template",": Template ID or name (retrieve available templates via GET \u002Ftemplates)",[56,64,65,68],{},[59,66,67],{},"parameters",": Template-specific configuration options (see template documentation)",[56,70,71,74],{},[59,72,73],{},"additional",": Optional custom metadata for user-specific information",[56,76,77,80],{},[59,78,79],{},"inputs",": Optional array of input files (images, prompts, etc.)",[43,82,83],{},[49,84,85],{},"Behavior:",[53,87,88,91],{},[56,89,90],{},"Without inputs: Flow is created in 'created' state, awaiting inputs via POST \u002Fflows\u002F{'{'}flow_id{'}'}\u002Finputs",[56,92,93],{},"With inputs: Flow automatically transitions to 'starting' state and begins execution",[43,95,96,99],{},[49,97,98],{},"Input Format:","\nInput files must be provided as data URIs with MIME type and base64-encoded content (e.g., 'data:image\u002Fpng;base64,abc...') or as plain text prompts. Accepted MIME types depend on the template configuration.",[43,101,102],{},[49,103,104],{},"Example Request:",[106,107,112],"pre",{"className":108,"code":109,"language":110,"meta":111,"style":111},"language-json shiki shiki-themes github-light github-light github-dark","{\n  \"template\": \"model_generate_fromprompt\",\n  \"parameters\": {\n    \"quality\": \"high\"\n  },\n  \"inputs\": [\n    {\n      \"data\": \"A modern office chair\",\n      \"additional\": null\n    }\n  ],\n  \"additional\": null\n}\n","json","",[59,113,114,123,140,149,160,166,175,181,194,205,211,217,227],{"__ignoreMap":111},[115,116,119],"span",{"class":117,"line":118},"line",1,[115,120,122],{"class":121},"sVPnS","{\n",[115,124,126,130,133,137],{"class":117,"line":125},2,[115,127,129],{"class":128},"sUNQB","  \"template\"",[115,131,132],{"class":121},": ",[115,134,136],{"class":135},"s-HEn","\"model_generate_fromprompt\"",[115,138,139],{"class":121},",\n",[115,141,143,146],{"class":117,"line":142},3,[115,144,145],{"class":128},"  \"parameters\"",[115,147,148],{"class":121},": {\n",[115,150,152,155,157],{"class":117,"line":151},4,[115,153,154],{"class":128},"    \"quality\"",[115,156,132],{"class":121},[115,158,159],{"class":135},"\"high\"\n",[115,161,163],{"class":117,"line":162},5,[115,164,165],{"class":121},"  },\n",[115,167,169,172],{"class":117,"line":168},6,[115,170,171],{"class":128},"  \"inputs\"",[115,173,174],{"class":121},": [\n",[115,176,178],{"class":117,"line":177},7,[115,179,180],{"class":121},"    {\n",[115,182,184,187,189,192],{"class":117,"line":183},8,[115,185,186],{"class":128},"      \"data\"",[115,188,132],{"class":121},[115,190,191],{"class":135},"\"A modern office chair\"",[115,193,139],{"class":121},[115,195,197,200,202],{"class":117,"line":196},9,[115,198,199],{"class":128},"      \"additional\"",[115,201,132],{"class":121},[115,203,204],{"class":128},"null\n",[115,206,208],{"class":117,"line":207},10,[115,209,210],{"class":121},"    }\n",[115,212,214],{"class":117,"line":213},11,[115,215,216],{"class":121},"  ],\n",[115,218,220,223,225],{"class":117,"line":219},12,[115,221,222],{"class":128},"  \"additional\"",[115,224,132],{"class":121},[115,226,204],{"class":128},[115,228,230],{"class":117,"line":229},13,[115,231,232],{"class":121},"}\n",[234,235,236],"docs-info",{},[43,237,238],{},"This endpoint allows you to create a new flow.",[240,241,243],"h2",{"id":242},"endpoint","Endpoint",[106,245,250],{"className":246,"code":248,"language":249},[247],"language-text","POST https:\u002F\u002Fflows.generio.ai\u002Fflows\n","text",[59,251,248],{"__ignoreMap":111},[240,253,255],{"id":254},"request-body","Request Body",[257,258,260],"h3",{"id":259},"properties","Properties",[53,262,263,268,273,278],{},[56,264,265,267],{},[49,266,61],{}," (string)",[56,269,270,272],{},[49,271,67],{}," (any)",[56,274,275,277],{},[49,276,73],{}," (any): Optional additional user data that is stored with flow.",[56,279,280,282],{},[49,281,79],{}," (any): Input assets, including data and optional additional information.",[240,284,286],{"id":285},"responses","Responses",[257,288,290],{"id":289},"_200","200",[43,292,293],{},"Successful Response",[257,295,297],{"id":296},"_422","422",[43,299,300],{},"Validation Error",[240,302,304],{"id":303},"code-examples","Code Examples",[43,306,307,308,311],{},"Copy and run these examples in your terminal or code editor. Make sure to replace ",[59,309,310],{},"YOUR_TOKEN"," with your actual authentication token.",[313,314,315,358,387,488,636],"docs-code-group",{},[106,316,321],{"className":317,"code":318,"filename":319,"language":320,"meta":111,"style":111},"language-bash shiki shiki-themes github-light github-light github-dark","curl -X POST \"https:\u002F\u002Fflows.generio.ai\u002Fflows\" \\\n  -H \"Authorization: Bearer YOUR_TOKEN\" \\\n  -H \"Content-Type: application\u002Fjson\"\n","cURL","bash",[59,322,323,341,351],{"__ignoreMap":111},[115,324,325,329,332,335,338],{"class":117,"line":118},[115,326,328],{"class":327},"sgQzM","curl",[115,330,331],{"class":128}," -X",[115,333,334],{"class":135}," POST",[115,336,337],{"class":135}," \"https:\u002F\u002Fflows.generio.ai\u002Fflows\"",[115,339,340],{"class":128}," \\\n",[115,342,343,346,349],{"class":117,"line":125},[115,344,345],{"class":128},"  -H",[115,347,348],{"class":135}," \"Authorization: Bearer YOUR_TOKEN\"",[115,350,340],{"class":128},[115,352,353,355],{"class":117,"line":142},[115,354,345],{"class":128},[115,356,357],{"class":135}," \"Content-Type: application\u002Fjson\"\n",[106,359,362],{"className":317,"code":360,"filename":361,"language":320,"meta":111,"style":111},"wget --header=\"Authorization: Bearer YOUR_TOKEN\" \\\n  \"https:\u002F\u002Fflows.generio.ai\u002Fflows\" -O -\n","wget",[59,363,364,376],{"__ignoreMap":111},[115,365,366,368,371,374],{"class":117,"line":118},[115,367,361],{"class":327},[115,369,370],{"class":128}," --header=",[115,372,373],{"class":135},"\"Authorization: Bearer YOUR_TOKEN\"",[115,375,340],{"class":128},[115,377,378,381,384],{"class":117,"line":125},[115,379,380],{"class":135},"  \"https:\u002F\u002Fflows.generio.ai\u002Fflows\"",[115,382,383],{"class":128}," -O",[115,385,386],{"class":135}," -\n",[106,388,393],{"className":389,"code":390,"filename":391,"language":392,"meta":111,"style":111},"language-python shiki shiki-themes github-light github-light github-dark","import requests\n\nurl = \"https:\u002F\u002Fflows.generio.ai\u002Fflows\"\nheaders = {\n    \"Authorization\": \"Bearer YOUR_TOKEN\",\n    \"Content-Type\": \"application\u002Fjson\"\n}\n\nresponse = requests.post(url, headers=headers)\nprint(response.json())\n","Python","python",[59,394,395,404,410,421,431,443,453,457,461,480],{"__ignoreMap":111},[115,396,397,401],{"class":117,"line":118},[115,398,400],{"class":399},"sDD9d","import",[115,402,403],{"class":121}," requests\n",[115,405,406],{"class":117,"line":125},[115,407,409],{"emptyLinePlaceholder":408},true,"\n",[115,411,412,415,418],{"class":117,"line":142},[115,413,414],{"class":121},"url ",[115,416,417],{"class":399},"=",[115,419,420],{"class":135}," \"https:\u002F\u002Fflows.generio.ai\u002Fflows\"\n",[115,422,423,426,428],{"class":117,"line":151},[115,424,425],{"class":121},"headers ",[115,427,417],{"class":399},[115,429,430],{"class":121}," {\n",[115,432,433,436,438,441],{"class":117,"line":162},[115,434,435],{"class":135},"    \"Authorization\"",[115,437,132],{"class":121},[115,439,440],{"class":135},"\"Bearer YOUR_TOKEN\"",[115,442,139],{"class":121},[115,444,445,448,450],{"class":117,"line":168},[115,446,447],{"class":135},"    \"Content-Type\"",[115,449,132],{"class":121},[115,451,452],{"class":135},"\"application\u002Fjson\"\n",[115,454,455],{"class":117,"line":177},[115,456,232],{"class":121},[115,458,459],{"class":117,"line":183},[115,460,409],{"emptyLinePlaceholder":408},[115,462,463,466,468,471,475,477],{"class":117,"line":196},[115,464,465],{"class":121},"response ",[115,467,417],{"class":399},[115,469,470],{"class":121}," requests.post(url, ",[115,472,474],{"class":473},"sde8i","headers",[115,476,417],{"class":399},[115,478,479],{"class":121},"headers)\n",[115,481,482,485],{"class":117,"line":207},[115,483,484],{"class":128},"print",[115,486,487],{"class":121},"(response.json())\n",[106,489,494],{"className":490,"code":491,"filename":492,"language":493,"meta":111,"style":111},"language-javascript shiki shiki-themes github-light github-light github-dark","const url = \"https:\u002F\u002Fflows.generio.ai\u002Fflows\";\nfetch(url, {\n  method: \"POST\",\n  headers: {\n    \"Authorization\": \"Bearer YOUR_TOKEN\",\n    \"Content-Type\": \"application\u002Fjson\"\n  }\n})\n  .then(response => response.json())\n  .then(data => console.log(data))\n  .catch(error => console.error(\"Error:\", error));\n","JavaScript","javascript",[59,495,496,512,520,530,535,545,553,558,563,588,610],{"__ignoreMap":111},[115,497,498,501,504,507,509],{"class":117,"line":118},[115,499,500],{"class":399},"const",[115,502,503],{"class":128}," url",[115,505,506],{"class":399}," =",[115,508,337],{"class":135},[115,510,511],{"class":121},";\n",[115,513,514,517],{"class":117,"line":125},[115,515,516],{"class":327},"fetch",[115,518,519],{"class":121},"(url, {\n",[115,521,522,525,528],{"class":117,"line":142},[115,523,524],{"class":121},"  method: ",[115,526,527],{"class":135},"\"POST\"",[115,529,139],{"class":121},[115,531,532],{"class":117,"line":151},[115,533,534],{"class":121},"  headers: {\n",[115,536,537,539,541,543],{"class":117,"line":162},[115,538,435],{"class":135},[115,540,132],{"class":121},[115,542,440],{"class":135},[115,544,139],{"class":121},[115,546,547,549,551],{"class":117,"line":168},[115,548,447],{"class":135},[115,550,132],{"class":121},[115,552,452],{"class":135},[115,554,555],{"class":117,"line":177},[115,556,557],{"class":121},"  }\n",[115,559,560],{"class":117,"line":183},[115,561,562],{"class":121},"})\n",[115,564,565,568,571,574,577,580,583,585],{"class":117,"line":196},[115,566,567],{"class":121},"  .",[115,569,570],{"class":327},"then",[115,572,573],{"class":121},"(",[115,575,576],{"class":473},"response",[115,578,579],{"class":399}," =>",[115,581,582],{"class":121}," response.",[115,584,110],{"class":327},[115,586,587],{"class":121},"())\n",[115,589,590,592,594,596,599,601,604,607],{"class":117,"line":207},[115,591,567],{"class":121},[115,593,570],{"class":327},[115,595,573],{"class":121},[115,597,598],{"class":473},"data",[115,600,579],{"class":399},[115,602,603],{"class":121}," console.",[115,605,606],{"class":327},"log",[115,608,609],{"class":121},"(data))\n",[115,611,612,614,617,619,622,624,626,628,630,633],{"class":117,"line":213},[115,613,567],{"class":121},[115,615,616],{"class":327},"catch",[115,618,573],{"class":121},[115,620,621],{"class":473},"error",[115,623,579],{"class":399},[115,625,603],{"class":121},[115,627,621],{"class":327},[115,629,573],{"class":121},[115,631,632],{"class":135},"\"Error:\"",[115,634,635],{"class":121},", error));\n",[106,637,642],{"className":638,"code":639,"filename":640,"language":641,"meta":111,"style":111},"language-php shiki shiki-themes github-light github-light github-dark","\u003C?php\n$url = \"https:\u002F\u002Fflows.generio.ai\u002Fflows\";\n$ch = curl_init($url);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"POST\");\ncurl_setopt($ch, CURLOPT_HTTPHEADER, [\n    \"Authorization: Bearer YOUR_TOKEN\",\n    \"Content-Type: application\u002Fjson\"\n]);\n\n$response = curl_exec($ch);\ncurl_close($ch);\n\necho $response;\n?>\n","PHP","php",[59,643,644,652,663,676,696,711,723,730,735,740,744,757,764,768,777],{"__ignoreMap":111},[115,645,646,649],{"class":117,"line":118},[115,647,648],{"class":399},"\u003C?",[115,650,651],{"class":128},"php\n",[115,653,654,657,659,661],{"class":117,"line":125},[115,655,656],{"class":121},"$url ",[115,658,417],{"class":399},[115,660,337],{"class":135},[115,662,511],{"class":121},[115,664,665,668,670,673],{"class":117,"line":142},[115,666,667],{"class":121},"$ch ",[115,669,417],{"class":399},[115,671,672],{"class":128}," curl_init",[115,674,675],{"class":121},"($url);\n",[115,677,678,681,684,687,690,693],{"class":117,"line":151},[115,679,680],{"class":128},"curl_setopt",[115,682,683],{"class":121},"($ch, ",[115,685,686],{"class":128},"CURLOPT_RETURNTRANSFER",[115,688,689],{"class":121},", ",[115,691,692],{"class":128},"true",[115,694,695],{"class":121},");\n",[115,697,698,700,702,705,707,709],{"class":117,"line":162},[115,699,680],{"class":128},[115,701,683],{"class":121},[115,703,704],{"class":128},"CURLOPT_CUSTOMREQUEST",[115,706,689],{"class":121},[115,708,527],{"class":135},[115,710,695],{"class":121},[115,712,713,715,717,720],{"class":117,"line":168},[115,714,680],{"class":128},[115,716,683],{"class":121},[115,718,719],{"class":128},"CURLOPT_HTTPHEADER",[115,721,722],{"class":121},", [\n",[115,724,725,728],{"class":117,"line":177},[115,726,727],{"class":135},"    \"Authorization: Bearer YOUR_TOKEN\"",[115,729,139],{"class":121},[115,731,732],{"class":117,"line":183},[115,733,734],{"class":135},"    \"Content-Type: application\u002Fjson\"\n",[115,736,737],{"class":117,"line":196},[115,738,739],{"class":121},"]);\n",[115,741,742],{"class":117,"line":207},[115,743,409],{"emptyLinePlaceholder":408},[115,745,746,749,751,754],{"class":117,"line":213},[115,747,748],{"class":121},"$response ",[115,750,417],{"class":399},[115,752,753],{"class":128}," curl_exec",[115,755,756],{"class":121},"($ch);\n",[115,758,759,762],{"class":117,"line":219},[115,760,761],{"class":128},"curl_close",[115,763,756],{"class":121},[115,765,766],{"class":117,"line":229},[115,767,409],{"emptyLinePlaceholder":408},[115,769,771,774],{"class":117,"line":770},14,[115,772,773],{"class":128},"echo",[115,775,776],{"class":121}," $response;\n",[115,778,780],{"class":117,"line":779},15,[115,781,782],{"class":399},"?>\n",[784,785,786],"style",{},"html pre.shiki code .sVPnS, html code.shiki .sVPnS{--shiki-default:#24292E;--shiki-light:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sUNQB, html code.shiki .sUNQB{--shiki-default:#005CC5;--shiki-light:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .s-HEn, html code.shiki .s-HEn{--shiki-default:#032F62;--shiki-light:#032F62;--shiki-dark:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sgQzM, html code.shiki .sgQzM{--shiki-default:#6F42C1;--shiki-light:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sDD9d, html code.shiki .sDD9d{--shiki-default:#D73A49;--shiki-light:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sde8i, html code.shiki .sde8i{--shiki-default:#E36209;--shiki-light:#E36209;--shiki-dark:#FFAB70}",{"title":111,"searchDepth":125,"depth":125,"links":788},[789,790,793,797],{"id":242,"depth":125,"text":243},{"id":254,"depth":125,"text":255,"children":791},[792],{"id":259,"depth":142,"text":260},{"id":285,"depth":125,"text":286,"children":794},[795,796],{"id":289,"depth":142,"text":290},{"id":296,"depth":142,"text":297},{"id":303,"depth":125,"text":304},null,"md",{},"\u002Fall-endpoints\u002Fcreate-flow",{"title":34},"all-endpoints\u002Fcreate-flow","Y1pySgukyW0FKczv-O2Lm7anrlYzi6xJNDiZsyodSZM",1786714761588]