Width of the streamed video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.
The camera the session starts with, on top of the avatar's own framing. Trinity-2 only. Leave it out to keep the avatar's framing. A streaming session can move it afterwards with CAM_ messages.
One of your uploaded backgrounds, by the id POST /assets/backgrounds returned, to show behind the avatar, cropped to fill the canvas. Trinity-2 only. Leave it out for the avatar's own. An id that is not one of your account's is dropped with a warning, and the session uses the avatar's own. An image is not accepted: upload it first. A streaming session can change it afterwards with BG_ messages.
One of your uploaded foregrounds, by the id POST /assets/foregrounds returned, laid over the avatar through its transparency and cropped to fill the canvas. Trinity-2 only; otherwise as background_id. A streaming session can change it afterwards with FG_ messages.
Starting camera fields outside their supported range, region overrides, and background_id / foreground_id dropped as not your account's (the avatar's own is used). The token is minted regardless.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Simli","colors":{"primary":"#000000","light":"#FFFFFF","dark":"#000000"},"logo":{"light":"https://mintcdn.com/simli/e7vpJ8reuLmgco-7/logo/light.svg?fit=max\u0026auto=format\u0026n=e7vpJ8reuLmgco-7\u0026q=85\u0026s=ab224d08b203f5621799e376209ad32c","dark":"https://mintcdn.com/simli/e7vpJ8reuLmgco-7/logo/dark.svg?fit=max\u0026auto=format\u0026n=e7vpJ8reuLmgco-7\u0026q=85\u0026s=97b2a0b728cb8c7ad4d3f4a7cb41f746"},"favicon":"https://mintcdn.com/simli/e7vpJ8reuLmgco-7/favicon.svg?fit=max\u0026auto=format\u0026n=e7vpJ8reuLmgco-7\u0026q=85\u0026s=8496dd74f9a50da8131f9f4ddf4f77e9","appearance":{"default":"dark","strict":true},"navbar":{"links":[{"href":"https://discord.gg/yQx49zNF4d","label":"Need help, talk to us on Discord"}],"primary":{"type":"button","label":"Simli Dashboard","href":"https://app.simli.com/"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"simli","hasAudioNarration":false,"actualSubdomain":"simli","customDomains":["docs.simli.com"],"gitSource":{"type":"github","owner":"simliai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"edits":true},"entitlements":{},"buildId":"6ae0951583d301a35cf4a230","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"REST API","count":34},{"language":"default","tag":"Endpoints","count":29},{"language":"default","tag":"API Reference","count":29},{"language":"default","tag":"Documentation","count":26},{"language":"default","tag":"Get Started","count":7},{"language":"default","tag":"Simli SDKs","count":7},{"language":"default","tag":"Advanced: Custom Simli Client","count":5},{"language":"default","tag":"Trinity-2","count":4},{"language":"default","tag":"JavaScript SDK","count":3},{"language":"default","tag":"Integrations","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"body{background-color:black}#search-bar-entry{display:none}#search-bar-entry-mobile{display:none}"}],"page":{"pagePath":"api-reference/compose-session-token","slug":"/api-reference/compose-session-token","pageMetadata":{"title":"Compose Session Token","description":"Create a temporary Simli Compose Session Token","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /compose/token","href":"/api-reference/compose-session-token","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Create a temporary Simli Compose Session Token\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Compose Session Token","description":"Create a temporary Simli Compose Session Token","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /compose/token","href":"/api-reference/compose-session-token","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Compose Session Token","description":"Create a temporary Simli Compose Session Token","operationId":"start_audio_to_video_session_compose_token_post","requestBody":"20c23cb0-7f77-4475-be04-1e57a65dcf2a","responses":{"200":"fef15157-ae1d-4730-868b-eba192f20513","400":"335d046d-d03c-489c-9036-fb6d94141cb8","422":"542af1cd-cdd6-4f27-a5be-a81cc3d9d40e"},"method":"post","type":"path","servers":["38df8653-7ed8-42a0-ad08-1b943fe55847"],"security":["4cfa27bd-2bfb-4b79-bd3e-3de1ee578f30"],"path":"/compose/token","baseUrlOptions":["https://api.simli.ai/"],"title":"Compose Session Token","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"faceId":{"type":"string","title":"Faceid","isRequired":true,"uniqueKey":"faceId","typeLabel":"string"},"apiVersion":{"type":"string","title":"Apiversion","const":"v2","default":"v2","uniqueKey":"apiVersion","typeLabel":"string"},"sessionAggregator":{"oneOf":[{"type":"string","title":"Sessionaggregator","uniqueKey":"sessionAggregator.oneOf.0","typeLabel":"string"},{"type":"null","title":"Sessionaggregator","uniqueKey":"sessionAggregator.oneOf.1","typeLabel":"null"}],"uniqueKey":"sessionAggregator","typeLabel":"string | null"},"handleSilence":{"type":"boolean","title":"Handlesilence","default":true,"uniqueKey":"handleSilence","typeLabel":"boolean"},"maxSessionLength":{"type":"integer","title":"Maxsessionlength","default":3600,"uniqueKey":"maxSessionLength","typeLabel":"integer"},"maxIdleTime":{"type":"integer","title":"Maxidletime","default":300,"uniqueKey":"maxIdleTime","typeLabel":"integer"},"startFrame":{"type":"integer","title":"Startframe","default":0,"uniqueKey":"startFrame","typeLabel":"integer"},"audioInputFormat":{"type":"string","title":"Audioinputformat","default":"pcm16","uniqueKey":"audioInputFormat","typeLabel":"string"},"streaming_width":{"type":"integer","title":"Streaming Width","default":768,"minimum":512,"description":"Width of the streamed video in pixels, Trinity-2 faces only (the others keep their own frame size). At least 512, and with streaming_height one of 1:1, 16:9 or 9:16, otherwise a 422. A canvas larger than the avatar's frame is padded with its background; a smaller one crops a window out of it.","uniqueKey":"streaming_width","typeLabel":"integer"},"streaming_height":{"type":"integer","title":"Streaming Height","default":768,"minimum":512,"description":"Height of the streamed video in pixels. See streaming_width.","uniqueKey":"streaming_height","typeLabel":"integer"},"avatar_position_x":{"type":"number","title":"Avatar Position X","default":0.5,"minimum":0,"maximum":1,"description":"Where the avatar sits across the canvas, from 0 (left) to 1 (right). Trinity-2 only.","uniqueKey":"avatar_position_x","typeLabel":"number"},"avatar_position_y":{"type":"number","title":"Avatar Position Y","default":1,"minimum":0,"maximum":1,"description":"Where the avatar sits down the canvas, from 0 (top) to 1 (bottom). Trinity-2 only.","uniqueKey":"avatar_position_y","typeLabel":"number"},"camera":{"oneOf":[{"type":"object","title":"CameraSetting","description":"The camera the session starts with, on top of the avatar's own framing. Trinity-2 only. Leave it out to keep the avatar's framing. A streaming session can move it afterwards with CAM_ messages.","properties":{"pos_x_off":{"type":"number","default":0,"description":"Moves the avatar right, in half canvas widths. Supported range -10 to 10.","uniqueKey":"camera.oneOf.0.pos_x_off","typeLabel":"number"},"pos_y_off":{"type":"number","default":0,"description":"Moves the avatar down, in half canvas heights. Supported range -10 to 10.","uniqueKey":"camera.oneOf.0.pos_y_off","typeLabel":"number"},"pos_z_off":{"type":"number","default":0,"description":"Metres the camera backs away from the avatar (negative moves in). Supported range -5 to 5.","uniqueKey":"camera.oneOf.0.pos_z_off","typeLabel":"number"},"rot_x_off":{"type":"number","default":0,"description":"Degrees the camera tilts up (pitch). Supported range -180 to 180.","uniqueKey":"camera.oneOf.0.rot_x_off","typeLabel":"number"},"rot_y_off":{"type":"number","default":0,"description":"Degrees the camera pans right (yaw). Supported range -180 to 180.","uniqueKey":"camera.oneOf.0.rot_y_off","typeLabel":"number"},"rot_z_off":{"type":"number","default":0,"description":"Degrees the camera rolls clockwise. Supported range -180 to 180.","uniqueKey":"camera.oneOf.0.rot_z_off","typeLabel":"number"},"zoom":{"type":"number","default":1,"description":"Multiplies the avatar's zoom; 1 is no change. Supported range above 0, up to 4.","uniqueKey":"camera.oneOf.0.zoom","typeLabel":"number"},"orbit_x_off":{"type":"number","default":0,"description":"Degrees the camera orbits up over the avatar's head (elevation). Supported range -80 to 80.","uniqueKey":"camera.oneOf.0.orbit_x_off","typeLabel":"number"},"orbit_y_off":{"type":"number","default":0,"description":"Degrees the camera orbits round to its right (azimuth). Supported range -180 to 180.","uniqueKey":"camera.oneOf.0.orbit_y_off","typeLabel":"number"}},"uniqueKey":"camera.oneOf.0","typeLabel":"CameraSetting · object"},{"type":"null","description":"The camera the session starts with, on top of the avatar's own framing. Trinity-2 only. Leave it out to keep the avatar's framing. A streaming session can move it afterwards with CAM_ messages.","uniqueKey":"camera.oneOf.1","typeLabel":"null"}],"uniqueKey":"camera","typeLabel":"CameraSetting · object | null"},"background_id":{"oneOf":[{"type":"string","title":"Background Id","description":"One of your uploaded backgrounds, by the id POST /assets/backgrounds returned, to show behind the avatar, cropped to fill the canvas. Trinity-2 only. Leave it out for the avatar's own. An id that is not one of your account's is dropped with a warning, and the session uses the avatar's own. An image is not accepted: upload it first. A streaming session can change it afterwards with BG_ messages.","format":"uuid","uniqueKey":"background_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Background Id","description":"One of your uploaded backgrounds, by the id POST /assets/backgrounds returned, to show behind the avatar, cropped to fill the canvas. Trinity-2 only. Leave it out for the avatar's own. An id that is not one of your account's is dropped with a warning, and the session uses the avatar's own. An image is not accepted: upload it first. A streaming session can change it afterwards with BG_ messages.","uniqueKey":"background_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"background_id","typeLabel":"string\u003cuuid> | null"},"foreground_id":{"oneOf":[{"type":"string","title":"Foreground Id","description":"One of your uploaded foregrounds, by the id POST /assets/foregrounds returned, laid over the avatar through its transparency and cropped to fill the canvas. Trinity-2 only; otherwise as background_id. A streaming session can change it afterwards with FG_ messages.","format":"uuid","uniqueKey":"foreground_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","title":"Foreground Id","description":"One of your uploaded foregrounds, by the id POST /assets/foregrounds returned, laid over the avatar through its transparency and cropped to fill the canvas. Trinity-2 only; otherwise as background_id. A streaming session can change it afterwards with FG_ messages.","uniqueKey":"foreground_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"foreground_id","typeLabel":"string\u003cuuid> | null"}},"type":"object","required":["faceId"],"title":"StartStreamingSessionRequest","uniqueKey":"","typeLabel":"StartStreamingSessionRequest · object"},"examples":{"Example":{"title":"Example","value":{"faceId":"\u003cstring>","apiVersion":"v2","sessionAggregator":"\u003cstring>","handleSilence":true,"maxSessionLength":3600,"maxIdleTime":300,"startFrame":0,"audioInputFormat":"pcm16","streaming_width":768,"streaming_height":768,"avatar_position_x":0.5,"avatar_position_y":1,"camera":{"pos_x_off":0,"pos_y_off":0,"pos_z_off":0,"rot_x_off":0,"rot_y_off":0,"rot_z_off":0,"zoom":1,"orbit_x_off":0,"orbit_y_off":0},"background_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","foreground_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"fef15157-ae1d-4730-868b-eba192f20513":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","properties":{"session_token":{"type":"string","uniqueKey":"session_token","typeLabel":"string"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"description":"Starting camera fields outside their supported range, region overrides, and background_id / foreground_id dropped as not your account's (the avatar's own is used). The token is minted regardless.","uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"session_token":"\u003cstring>","warnings":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"335d046d-d03c-489c-9036-fb6d94141cb8":{"description":"Invalid Data","content":{"application/json":{"schema":{"type":"object","properties":{"session_token":{"type":"string","description":"FAIL TOKEN","uniqueKey":"session_token","typeLabel":"string"},"detail":{"type":"string","description":"Fail Reason","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"session_token":"\u003cstring>","detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"542af1cd-cdd6-4f27-a5be-a81cc3d9d40e":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"4cfa27bd-2bfb-4b79-bd3e-3de1ee578f30":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-simli-api-key","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"38df8653-7ed8-42a0-ad08-1b943fe55847":{"url":"https://api.simli.ai/","description":"API server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-simli-api-key","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"x-simli-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"x-simli-api-key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"https://api.simli.ai/openapi.yaml"},"subdomain":"simli","siteName":"Simli","title":"Compose Session Token - Simli","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-27T12:12:14.563Z","originalFileLocation":"api-reference/compose-session-token.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"dark\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a temporary Simli Compose Session Token\">\u003cmeta data-mint-head name=\"application-name\" content=\"Simli\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Compose Session Token - Simli\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a temporary Simli Compose Session Token\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Simli\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.simli.com/api-reference/compose-session-token\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://simli.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Compose+Session+Token\u0026amp;description=Create+a+temporary+Simli+Compose+Session+Token\u0026amp;theme=d3a85d409d088b282d8cc0e5\u0026amp;signature=8792466923a90b8b4526809dd54fa3a63225a4387e5c65a03d90183aef0f49cc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Compose Session Token - Simli\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a temporary Simli Compose Session Token\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://simli.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Compose+Session+Token\u0026amp;description=Create+a+temporary+Simli+Compose+Session+Token\u0026amp;theme=d3a85d409d088b282d8cc0e5\u0026amp;signature=8792466923a90b8b4526809dd54fa3a63225a4387e5c65a03d90183aef0f49cc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/simli/dR1kVm9XH5IBTesa/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Simli\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000000\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.simli.com/api-reference/compose-session-token\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/compose-session-token.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.simli.com/#organization\",\"name\":\"Simli\",\"url\":\"https://docs.simli.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/simli/e7vpJ8reuLmgco-7/logo/light.svg?fit=max\u0026auto=format\u0026n=e7vpJ8reuLmgco-7\u0026q=85\u0026s=ab224d08b203f5621799e376209ad32c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.simli.com#website\",\"name\":\"Simli\",\"url\":\"https://docs.simli.com\",\"publisher\":{\"@id\":\"https://docs.simli.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.simli.com/api-reference/compose-session-token#webpage\",\"url\":\"https://docs.simli.com/api-reference/compose-session-token\",\"name\":\"Compose Session Token\",\"description\":\"Create a temporary Simli Compose Session Token\",\"dateModified\":\"2026-10-27T12:12:14.563Z\",\"isPartOf\":{\"@id\":\"https://docs.simli.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.simli.com/api-reference/compose-session-token#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.simli.com/api-reference/compose-session-token#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.simli.com/api-reference/get-ice-servers\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API Reference\",\"item\":\"https://docs.simli.com/api-reference/get-ice-servers\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Compose Session Token\",\"item\":\"https://docs.simli.com/api-reference/compose-session-token\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.simli.com/api-reference/compose-session-token#apireference\",\"headline\":\"Compose Session Token\",\"name\":\"Compose Session Token\",\"description\":\"Create a temporary Simli Compose Session Token\",\"url\":\"https://docs.simli.com/api-reference/compose-session-token\",\"mainEntityOfPage\":{\"@id\":\"https://docs.simli.com/api-reference/compose-session-token#webpage\"},\"dateModified\":\"2026-10-27T12:12:14.563Z\",\"publisher\":{\"@id\":\"https://docs.simli.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.simli.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Simli\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Simli\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/compose-session-token.md","siteName":"Simli","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"REST API","groups":[{"group":"Endpoints","pages":[{"group":"API Reference","pages":[{"title":"Get Ice Servers","description":"Create a new set of temporary ICE Server Credentials for WebRTC P2P session","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /compose/ice","href":"/api-reference/get-ice-servers"},{"title":"Compose Session Token","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /compose/token","href":"/api-reference/compose-session-token"},{"title":"Generate Static Video","description":"Generate and stream a static video file from a given audio sample","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /static/audio","href":"/api-reference/generate-static-video"},{"title":"Get HLS Segment","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /static/hls/{destination}/{file}","href":"/api-reference/get-hls-segment"},{"title":"Get MP4 of Generated Video","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /static/mp4/{destination}/{file}","href":"/api-reference/get-mp4-of-generated-video"},{"title":"Generate Trinity Face","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /faces/trinity","href":"/api-reference/generate-trinity-face"},{"title":"Preprocess Trinity Face Image","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /faces/trinity/preprocess","href":"/api-reference/preprocess-trinity-face-image"},{"title":"Check Trinity Generation Status","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /faces/trinity/generation_status","href":"/api-reference/check-trinity-generation-status"},{"title":"Get all faces","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /faces","href":"/api-reference/get-all-faces"},{"title":"Delete a face","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml delete /faces/trinity/{id}","href":"/api-reference/delete-a-face"},{"title":"List Backgrounds or Foregrounds","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /assets/{kind}","href":"/api-reference/list-backgrounds-or-foregrounds"},{"title":"Upload Background or Foreground","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /assets/{kind}","href":"/api-reference/upload-background-or-foreground"},{"title":"Delete a Background or Foreground","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml delete /assets/{kind}/{id}","href":"/api-reference/delete-a-background-or-foreground"},{"title":"Start Livekit Agents Session","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /integrations/livekit/agents","href":"/api-reference/start-livekit-agents-session"},{"title":"Retrieve session history","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /history/sessions","href":"/api-reference/retrieve-session-history"},{"title":"Active Session Count","deprecated":null,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /ratelimiter/sessions","href":"/api-reference/active-session-count"},{"title":"Generate Legacy Face","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /faces/legacy","href":"/api-reference/generate-legacy-face"},{"title":"Delete a face","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml delete /faces/legacy/{id}","href":"/api-reference/delete-a-face-1"},{"title":"Get Legacy Face Generation Status","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /faces/legacy/generation_status","href":"/api-reference/get-legacy-face-generation-status"},{"title":"Create New Agent","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /auto/agent","href":"/api-reference/create-new-agent"},{"title":"Get All Agents","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /auto/agents","href":"/api-reference/get-all-agents"},{"title":"Get Agent","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /auto/agent/{id}","href":"/api-reference/get-agent"},{"title":"Update Agent","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml put /auto/agent/{id}","href":"/api-reference/update-agent"},{"title":"Delete Agent","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml delete /auto/agent/{id}","href":"/api-reference/delete-agent"},{"title":"Create Simli Auto Session Token","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /auto/token","href":"/api-reference/create-simli-auto-session-token"},{"title":"Start Auto Session","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml post /auto/start/configurable","href":"/api-reference/start-auto-session"},{"title":"Start Auto Session from config","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /auto/start/{agent_id}/{session_token}","href":"/api-reference/start-auto-session-from-config"},{"title":"Start Auto Session from config (token in header)","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /auto/start/{agent_id}","href":"/api-reference/start-auto-session-from-config-token-in-header"},{"title":"Get Simli Auto Transcript","deprecated":true,"version":null,"openapi":"https://api.simli.ai/openapi.yaml get /auto/transcript/{session_id}","href":"/api-reference/get-simli-auto-transcript"}]}]},{"group":"WebSockets","pages":[{"group":"Websockets","pages":[{"asyncapi":"api-reference/asyncapi.yaml peer_to_peer","href":"/api-reference/websockets/peer_to_peer","title":"Peer_to_peer","version":null},{"asyncapi":"api-reference/asyncapi.yaml livekit","href":"/api-reference/websockets/livekit","title":"Livekit","version":null}]}]},{"group":"OpenAPI Specs (Agent Friendly Format)","pages":[{"title":"Rest API Spec","url":"https://api.simli.ai/openapi.yaml","href":"/api-reference/openapi_doc"},{"title":"WebSockets Spec","url":"https://api.simli.ai/asyncapi.yaml","href":"/api-reference/asyncapi_doc"}]},{"group":"Simli Auto Guides (deprecated)","pages":[{"title":"Custom LLM guide","icon":"comments","href":"/api-reference/endpoint/simli-auto/customLLM"}]}]}]},"basePath":"","title":"Compose Session Token - Simli","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}