{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
instances
Spawn a new container instance
Creates and runs a new execution instance with the specified configuration.
Requires a valid Authorization header.
Common request body rules:
The request body must contain at least command and image fields all other fields can be omitted.
If the command field is a shell expression, you must set shell field to true.
For specifying the shell binary, you can use env field to set SHELL variable.
When shell is true, environment variables defined in the image (via ENV directives) are
automatically inherited. When shell is false, image environment variables are not inherited
and must be passed explicitly via the env field.
POST
/
instances
Error
A valid request URL is required to generate request examples
{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
{
"error": "Some error occurred, this is an example of error message",
"status": 500,
"traceback": [
"<string>"
]
}
Authorizations
Authorization
string
header
required
IAM bearer token issued by the Nebius IAM service. Sent as
Authorization: Bearer <iam-token>. Must be combined with the
Project header (see IAMProjectHeader).
This is the recommended authentication scheme for new clients.
Project
string
header
required
Nebius project ID associated with the IAM token. Required together
with IAMBearerAuth. Identifies the project context the request is
scoped to.
Body
application/json
command
string
required
The command to execute. In case if shell is set to true, this MUST contain shell expression.
For example echo hello world or ls -l /app.
If shell is set to false, this must be a relative or absolute path to the executable inside the image rootfs.
For example: /bin/app or /usr/bin/find.
Do not forget pass necessary PATH variable to env field, by default PATH is set to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin.
Example:
"/bin/app"
image
string<uuid>string
required
An base image for run a new instance. May be either image UUID or image tag (prefixed with "tag:").
After creation of the instance, if tag is used, this value will be resolved to the image UUID,
and the UUID will be stored in the metadata.
Example:
"tag:busybox:latest"
disposable
boolean
default:false
Creates a disposable execution environment no any state will be saved.
hostname
string
default:linuxkit
Hostname to set when execution.
Example:
"container-name"
args
string[]
Arguments to pass to the command if shell is set to false.
Example:
["arg1", "arg2"]
shell
boolean
default:false
Whether to run the command through a shell. If true, the command must be a shell expression and all values from args will be ignored. If false, the command field must be a path to an executable and args will be used. When true, environment variables from the image are automatically inherited. When false, they are not - use the env field to pass them explicitly.
env
object | null
Environment variables to set in the container. These are merged with image-defined variables when shell is true. When shell is false, only variables specified here are available - image-defined variables are not inherited.
Show child attributes
Example:
{ "KEY1": "value1", "KEY2": "value2" }
preserve_env
boolean
default:false
Preserve environment variables in resulting image after execution. When true, the image's existing environment variables from metadata/env are merged with user-provided env values (user values take priority on conflicts), and the combined result is written back to metadata/env after command execution. Setting a variable to an empty string or null removes it from the preserved environment.
cwd
string
default:""
Path to the working directory, must be absolute or a special value the empty string. It means the default working directory of the image or server default will be used. If field is omitted it will be set to the empty string. The directory will be created automatically if it does not exist.
Pattern: ^((/[^/]*)+/?)?$
Example:
"/app"
uid
integer
default:0
User ID to run the process as.
Required range: x >= 0
Example:
0
gid
integer
default:0
Group ID to run the process as.
Required range: x >= 0
Example:
0
resources_limits
object
Show child attributes
networking
object
Show child attributes
stdin
object
Stdin payload. Delivery to the child is always complete —
stdin is never truncated on its way to the process. Only the
recordedstdin events in the subprocess event log are
capped by truncate_output_at, same as stdout/stderr. This
schema also carries a close flag controlling the pipe's EOF.
Show child attributes
timeout
integer
Maximum execution time in seconds
Example:
60
truncate_output_at
integer
default:1048576
Maximum number of bytes to keep per stream (stdout, stderr, and stdin) in the subprocess event log. Does not affect stdin delivery to the child, which always receives the complete stream regardless of this cap. Default is 1048576 (1 MiB). The maximum value is 10485760 (10 MiB).
Created - The instance has been successfully created and its execution has been queued. When operation created successfully, the response will contain Location header with URL to check the operation status. and the body will contain the parsed request body with additional uuid field.
uuid
string<uuid>
A UUID string
Example:
"12345678-9abc-baba-deda-0123456789ab"
command
string
image
string<uuid>
A UUID string
Example:
"12345678-9abc-baba-deda-0123456789ab"
hostname
string
args
string[]
shell
boolean
env
object | null
Show child attributes
preserve_env
boolean
cwd
string
uid
integer
gid
integer
resources_limits
object
Show child attributes
networking
object
Show child attributes
stdin
object
Stdin payload. Delivery to the child is always complete —
stdin is never truncated on its way to the process. Only the
recordedstdin events in the subprocess event log are
capped by truncate_output_at, same as stdout/stderr. This
schema also carries a close flag controlling the pipe's EOF.
Show child attributes
timeout
integer
truncate_output_at
integer
disposable
boolean
files
object
Show child attributes
result
object | null
Result of an instance execution
Show child attributes
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nebius Token Factory documentation","description":"Comprehensive Nebius Token Factory documentation: quickstart, API reference, model inference guides, fine-tuning, integrations \u0026 examples for seamless LLM deployment.","colors":{"primary":"#4C37DC","light":"#6057F7","dark":"#4C37DC"},"logo":{"light":"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Light.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=aaaf7203191be69af9622c9cb61e1b98","dark":"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Dark.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=96180f98bde0b68968fc43abb9112851"},"favicon":"https://mintcdn.com/nebius-723e8b65/o-_JxcbZvL-sB_4h/favicon.svg?fit=max\u0026auto=format\u0026n=o-_JxcbZvL-sB_4h\u0026q=85\u0026s=17d862a4d75224124e0b82336a568152","background":{"color":{"light":"#ffffff","dark":"#121215"}},"navbar":{"links":[{"href":"https://tokenfactory.nebius.com/?modals=contact-us","label":"Contact us"}],"primary":{"type":"button","label":"Nebius Token Factory","href":"https://tokenfactory.nebius.com/"}},"footer":{"socials":{"x":"https://x.com/nebiustf","github":"https://github.com/nebius/token-factory-cookbook","linkedin":"https://linkedin.com/company/nebius","discord":"https://discord.com/invite/WJ2DUQRz4m"}},"fonts":{"family":"Inter"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"LinkedIn","icon":"linkedin","href":"https://www.linkedin.com/company/nebius/"},{"anchor":"Discord Community","icon":"discord","href":"https://discord.com/invite/WJ2DUQRz4m"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/nebiustf"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nebius-723e8b65","hasAudioNarration":false,"actualSubdomain":"nebius-723e8b65","customDomains":["docs.tokenfactory.nebius.com"],"gitSource":{"type":"github","owner":"nebius","repo":"ai-studio-documentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b094caa8af4d14d05080d91","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Guides","count":197},{"language":"default","tag":"Sandboxes","count":170},{"language":"default","tag":"API Reference","count":83},{"language":"default","tag":"Inference and Training","count":46},{"language":"default","tag":"Contree MCP","count":44},{"language":"default","tag":"Contree CLI","count":33},{"language":"default","tag":"Contree SDK","count":32},{"language":"default","tag":"Command Reference","count":22},{"language":"default","tag":"datasets","count":20},{"language":"default","tag":"Inference","count":19}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"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":"site-roles","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":"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":"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":"turbopuffer-dual-write","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":"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},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/sandboxes/instances/spawn-a-new-container-instance","slug":"/api-reference/sandboxes/instances/spawn-a-new-container-instance","pageMetadata":{"title":"Spawn a new container instance","description":"Creates and runs a new execution instance with the specified configuration. \nRequires a valid `Authorization` header.\n\nCommon request body rules:\n\n * The request body must contain at least `command` and `image` fields all other fields can be omitted.\n * If the `command` field is a shell expression, you must set `shell` field to `true`.\n * For specifying the shell binary, you can use `env` field to set `SHELL` variable.\n * When `shell` is `true`, environment variables defined in the image (via `ENV` directives) are\n automatically inherited. When `shell` is `false`, image environment variables are not inherited\n and must be passed explicitly via the `env` field.\n","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /instances","href":"/api-reference/sandboxes/instances/spawn-a-new-container-instance","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Creates and runs a new execution instance with the specified configuration.\\nRequires a valid \", _jsx(_components.code, {\n children: \"Authorization\"\n }), \" header.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Common request body rules:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [\"The request body must contain at least \", _jsx(_components.code, {\n children: \"command\"\n }), \" and \", _jsx(_components.code, {\n children: \"image\"\n }), \" fields all other fields can be omitted.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"If the \", _jsx(_components.code, {\n children: \"command\"\n }), \" field is a shell expression, you must set \", _jsx(_components.code, {\n children: \"shell\"\n }), \" field to \", _jsx(_components.code, {\n children: \"true\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"For specifying the shell binary, you can use \", _jsx(_components.code, {\n children: \"env\"\n }), \" field to set \", _jsx(_components.code, {\n children: \"SHELL\"\n }), \" variable.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [\"When \", _jsx(_components.code, {\n children: \"shell\"\n }), \" is \", _jsx(_components.code, {\n children: \"true\"\n }), \", environment variables defined in the image (via \", _jsx(_components.code, {\n children: \"ENV\"\n }), \" directives) are\\nautomatically inherited. When \", _jsx(_components.code, {\n children: \"shell\"\n }), \" is \", _jsx(_components.code, {\n children: \"false\"\n }), \", image environment variables are not inherited\\nand must be passed explicitly via the \", _jsx(_components.code, {\n children: \"env\"\n }), \" field.\"]\n }), \"\\n\"]\n })]\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":"Spawn a new container instance","description":"Creates and runs a new execution instance with the specified configuration. \nRequires a valid `Authorization` header.\n\nCommon request body rules:\n\n * The request body must contain at least `command` and `image` fields all other fields can be omitted.\n * If the `command` field is a shell expression, you must set `shell` field to `true`.\n * For specifying the shell binary, you can use `env` field to set `SHELL` variable.\n * When `shell` is `true`, environment variables defined in the image (via `ENV` directives) are\n automatically inherited. When `shell` is `false`, image environment variables are not inherited\n and must be passed explicitly via the `env` field.\n","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /instances","href":"/api-reference/sandboxes/instances/spawn-a-new-container-instance","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nebius-723e8b65/6229d1e239953167/global.js"],"openApiReferenceData":{"operation":{"summary":"Spawn a new container instance","description":"Creates and runs a new execution instance with the specified configuration. \nRequires a valid `Authorization` header.\n\nCommon request body rules:\n\n * The request body must contain at least `command` and `image` fields all other fields can be omitted.\n * If the `command` field is a shell expression, you must set `shell` field to `true`.\n * For specifying the shell binary, you can use `env` field to set `SHELL` variable.\n * When `shell` is `true`, environment variables defined in the image (via `ENV` directives) are\n automatically inherited. When `shell` is `false`, image environment variables are not inherited\n and must be passed explicitly via the `env` field.\n","operationId":"spawnInstance","tags":["instances"],"requestBody":"972ecf4f-6c98-41f4-824f-a0e5cf8f35a5","responses":{"201":"7b60cb60-66c7-4d1d-b6d6-8dff9c904555","400":"cf06516a-83fd-4f33-b5a9-5420dcb15a84","401":"0e129d30-8b8f-4ab9-85fc-24bc2aac32b2","403":"7157cc81-5cad-456c-a2c5-7823557cd4ec"},"method":"post","type":"path","servers":["489ddb56-32e1-4f15-a8cc-29272f4fe9e8"],"security":["916d94ab-36f3-47b2-a32a-87ec0b36cbfb"],"path":"/instances","baseUrlOptions":["{baseUrl}/v1"],"title":"Spawn a new container instance","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["command","image"],"properties":{"command":{"type":"string","description":"The command to execute. In case if `shell` is set to `true`, this MUST contain shell expression. \nFor example `echo hello world` or `ls -l /app`. \nIf `shell` is set to `false`, this must be a relative or absolute path to the executable inside the image rootfs. \nFor example: `/bin/app` or `/usr/bin/find`.\nDo not forget pass necessary `PATH` variable to env field, by default `PATH` is set to `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin`.\n","example":"/bin/app","isRequired":true,"uniqueKey":"command","typeLabel":"string"},"image":{"oneOf":[{"type":"string","description":"An base image for run a new instance. May be either image UUID or image tag (prefixed with \"tag:\").\nAfter creation of the instance, if tag is used, this value will be resolved to the image UUID, \nand the UUID will be stored in the metadata.\n","format":"uuid","example":"tag:busybox:latest","isRequired":true,"uniqueKey":"image.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"string","description":"An base image for run a new instance. May be either image UUID or image tag (prefixed with \"tag:\").\nAfter creation of the instance, if tag is used, this value will be resolved to the image UUID, \nand the UUID will be stored in the metadata.\n","pattern":"^tag:[A-Za-z0-9][A-Za-z0-9_-]*(?:[:/.][A-Za-z0-9_-]+)*$","example":"tag:busybox:latest","isRequired":true,"uniqueKey":"image.oneOf.1","typeLabel":"string"}],"isRequired":true,"uniqueKey":"image","typeLabel":"string\u003cuuid> | string"},"disposable":{"type":"boolean","description":"Creates a disposable execution environment no any state will be saved.","default":false,"uniqueKey":"disposable","typeLabel":"boolean"},"hostname":{"type":"string","description":"Hostname to set when execution.","example":"container-name","default":"linuxkit","uniqueKey":"hostname","typeLabel":"string"},"args":{"type":"array","items":{"type":"string","uniqueKey":"args.items.[INDEX]","typeLabel":"string"},"description":"Arguments to pass to the command if shell is set to false.\n","example":["arg1","arg2"],"default":[],"uniqueKey":"args","typeLabel":"string[]"},"shell":{"type":"boolean","description":"Whether to run the command through a shell. If `true`, the command must be a shell expression and all values from args will be ignored. If `false`, the command field must be a path to an executable and args will be used. When `true`, environment variables from the image are automatically inherited. When `false`, they are not - use the `env` field to pass them explicitly.\n","default":false,"uniqueKey":"shell","typeLabel":"boolean"},"env":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"env.oneOf.0.additionalProperties","typeLabel":"string"},"description":"Environment variables to set in the container. These are merged with image-defined variables when `shell` is `true`. When `shell` is `false`, only variables specified here are available - image-defined variables are not inherited.\n","example":{"KEY1":"value1","KEY2":"value2"},"uniqueKey":"env.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"env.oneOf.1.additionalProperties","typeLabel":"string"},"description":"Environment variables to set in the container. These are merged with image-defined variables when `shell` is `true`. When `shell` is `false`, only variables specified here are available - image-defined variables are not inherited.\n","example":{"KEY1":"value1","KEY2":"value2"},"uniqueKey":"env.oneOf.1","typeLabel":"null"}],"uniqueKey":"env","typeLabel":"object | null"},"preserve_env":{"type":"boolean","description":"Preserve environment variables in resulting image after execution. When `true`, the image's existing environment variables from `metadata/env` are merged with user-provided `env` values (user values take priority on conflicts), and the combined result is written back to `metadata/env` after command execution. Setting a variable to an empty string or `null` removes it from the preserved environment.\n","default":false,"uniqueKey":"preserve_env","typeLabel":"boolean"},"cwd":{"type":"string","pattern":"^((/[^/]*)+/?)?$","description":"Path to the working directory, must be absolute or a special value the empty string. It means the default working directory of the image or server default will be used. If field is omitted it will be set to the empty string. The directory will be created automatically if it does not exist.\n","example":"/app","default":"","uniqueKey":"cwd","typeLabel":"string"},"uid":{"type":"integer","minimum":0,"description":"User ID to run the process as.","example":0,"default":0,"uniqueKey":"uid","typeLabel":"integer"},"gid":{"type":"integer","minimum":0,"description":"Group ID to run the process as.","example":0,"default":0,"uniqueKey":"gid","typeLabel":"integer"},"resources_limits":{"type":"object","properties":{"max_layer_bytes":{"type":"integer","minimum":1,"description":"Maximum writable layer size in bytes.","example":1073741824,"default":12884901888,"uniqueKey":"resources_limits.max_layer_bytes","typeLabel":"integer"}},"uniqueKey":"resources_limits","typeLabel":"object"},"networking":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable network access for the instance. When `false`, the VM starts without a guest network interface.\n","default":true,"uniqueKey":"networking.enabled","typeLabel":"boolean"}},"uniqueKey":"networking","typeLabel":"object"},"stdin":{"type":"object","description":"Stdin payload. Delivery to the child is always complete —\nstdin is never truncated on its way to the process. Only the\n*recorded* `stdin` events in the subprocess event log are\ncapped by `truncate_output_at`, same as stdout/stderr. This\nschema also carries a `close` flag controlling the pipe's EOF.\n","required":["value"],"properties":{"value":{"type":"string","description":"Content to write to stdin (may be empty for a close-only request)","example":"aGVsbG8K","isRequired":true,"uniqueKey":"stdin.value","typeLabel":"string"},"encoding":{"type":"string","enum":["ascii","base64"],"description":"Encoding of the content","default":"ascii","uniqueKey":"stdin.encoding","typeLabel":"enum\u003cstring>"},"close":{"type":"boolean","default":true,"description":"`true` (default) closes stdin (EOF) after writing `value` —\nthe pre-existing one-shot behavior. `false` keeps the pipe\nopen so more data can be sent later via\n`POST /operations/{operationId}/subprocesses/{spid}/stdin`.\n","uniqueKey":"stdin.close","typeLabel":"boolean"}},"uniqueKey":"stdin","typeLabel":"object"},"timeout":{"type":"integer","description":"Maximum execution time in seconds","example":60,"uniqueKey":"timeout","typeLabel":"integer"},"truncate_output_at":{"type":"integer","description":"Maximum number of bytes to keep per stream (stdout, stderr, and stdin) in the subprocess event log. Does not affect stdin delivery to the child, which always receives the complete stream regardless of this cap. Default is `1048576` (1 MiB). The maximum value is `10485760` (10 MiB).\n","example":65535,"default":1048576,"uniqueKey":"truncate_output_at","typeLabel":"integer"},"files":{"type":"object","description":"Map of absolute file paths to file metadata","additionalProperties":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","description":"A UUID string","example":"12345678-9abc-baba-deda-0123456789ab","uniqueKey":"files.additionalProperties.uuid","typeLabel":"string\u003cuuid>"},"uid":{"type":"integer","description":"User ID","example":0,"uniqueKey":"files.additionalProperties.uid","typeLabel":"integer"},"gid":{"type":"integer","description":"Group ID","example":0,"uniqueKey":"files.additionalProperties.gid","typeLabel":"integer"},"mode":{"type":"string","description":"File mode in octal format (e.g., \"0644\")","example":"0644","uniqueKey":"files.additionalProperties.mode","typeLabel":"string"}},"uniqueKey":"files.additionalProperties","typeLabel":"object"},"example":{"/root/hello.txt":{"uuid":"a9165a5d-5c86-4bd8-8ee4-ae46c19cf45d","uid":0,"gid":0,"mode":"0644"},"/tmp/log.txt":{"uuid":"065def2a-e977-4852-8b26-a0ec05e85a90","uid":1000,"gid":1000,"mode":"0600"}},"uniqueKey":"files","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"command":"/bin/app","image":"tag:busybox:latest","disposable":false,"hostname":"container-name","args":["arg1","arg2"],"shell":false,"env":{"KEY1":"value1","KEY2":"value2"},"preserve_env":false,"cwd":"/app","uid":0,"gid":0,"resources_limits":{"max_layer_bytes":1073741824},"networking":{"enabled":true},"timeout":60,"truncate_output_at":65535,"files":{"/root/hello.txt":{"uuid":"a9165a5d-5c86-4bd8-8ee4-ae46c19cf45d","uid":0,"gid":0,"mode":"0644"},"/tmp/log.txt":{"uuid":"065def2a-e977-4852-8b26-a0ec05e85a90","uid":1000,"gid":1000,"mode":"0600"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"7b60cb60-66c7-4d1d-b6d6-8dff9c904555":{"description":"Created - The instance has been successfully created and its execution has been queued. When operation created successfully, the response will contain `Location` header with URL to check the operation status. and the body will contain the parsed request body with additional `uuid` field.\n","headers":{"Location":{"schema":{"type":"string"},"description":"URL to check the operation status","example":"/v1/operations/12345678-9abc-baba-deda-0123456789ab"}},"content":{"application/json":{"schema":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","description":"A UUID string","example":"12345678-9abc-baba-deda-0123456789ab","uniqueKey":"uuid","typeLabel":"string\u003cuuid>"},"command":{"type":"string","uniqueKey":"command","typeLabel":"string"},"image":{"type":"string","format":"uuid","description":"A UUID string","example":"12345678-9abc-baba-deda-0123456789ab","uniqueKey":"image","typeLabel":"string\u003cuuid>"},"hostname":{"type":"string","uniqueKey":"hostname","typeLabel":"string"},"args":{"type":"array","items":{"type":"string","uniqueKey":"args.items.[INDEX]","typeLabel":"string"},"uniqueKey":"args","typeLabel":"string[]"},"shell":{"type":"boolean","uniqueKey":"shell","typeLabel":"boolean"},"env":{"oneOf":[{"type":"object","additionalProperties":{"type":"string","uniqueKey":"env.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"env.oneOf.0","typeLabel":"object"},{"type":"null","additionalProperties":{"type":"string","uniqueKey":"env.oneOf.1.additionalProperties","typeLabel":"string"},"uniqueKey":"env.oneOf.1","typeLabel":"null"}],"uniqueKey":"env","typeLabel":"object | null"},"preserve_env":{"type":"boolean","uniqueKey":"preserve_env","typeLabel":"boolean"},"cwd":{"type":"string","uniqueKey":"cwd","typeLabel":"string"},"uid":{"type":"integer","uniqueKey":"uid","typeLabel":"integer"},"gid":{"type":"integer","uniqueKey":"gid","typeLabel":"integer"},"resources_limits":{"type":"object","properties":{"max_layer_bytes":{"type":"integer","minimum":1,"description":"Maximum writable layer size in bytes.","example":1073741824,"default":12884901888,"uniqueKey":"resources_limits.max_layer_bytes","typeLabel":"integer"}},"uniqueKey":"resources_limits","typeLabel":"object"},"networking":{"type":"object","properties":{"enabled":{"type":"boolean","description":"Enable network access for the instance. When `false`, the VM starts without a guest network interface.\n","default":true,"uniqueKey":"networking.enabled","typeLabel":"boolean"}},"uniqueKey":"networking","typeLabel":"object"},"stdin":{"type":"object","description":"Stdin payload. Delivery to the child is always complete —\nstdin is never truncated on its way to the process. Only the\n*recorded* `stdin` events in the subprocess event log are\ncapped by `truncate_output_at`, same as stdout/stderr. This\nschema also carries a `close` flag controlling the pipe's EOF.\n","required":["value"],"properties":{"value":{"type":"string","description":"Content to write to stdin (may be empty for a close-only request)","example":"aGVsbG8K","isRequired":true,"uniqueKey":"stdin.value","typeLabel":"string"},"encoding":{"type":"string","enum":["ascii","base64"],"description":"Encoding of the content","default":"ascii","uniqueKey":"stdin.encoding","typeLabel":"enum\u003cstring>"},"close":{"type":"boolean","default":true,"description":"`true` (default) closes stdin (EOF) after writing `value` —\nthe pre-existing one-shot behavior. `false` keeps the pipe\nopen so more data can be sent later via\n`POST /operations/{operationId}/subprocesses/{spid}/stdin`.\n","uniqueKey":"stdin.close","typeLabel":"boolean"}},"uniqueKey":"stdin","typeLabel":"object"},"timeout":{"type":"integer","uniqueKey":"timeout","typeLabel":"integer"},"truncate_output_at":{"type":"integer","uniqueKey":"truncate_output_at","typeLabel":"integer"},"disposable":{"type":"boolean","uniqueKey":"disposable","typeLabel":"boolean"},"files":{"type":"object","additionalProperties":{"type":"object","properties":{"uuid":{"type":"string","format":"uuid","description":"A UUID string","example":"12345678-9abc-baba-deda-0123456789ab","uniqueKey":"files.additionalProperties.uuid","typeLabel":"string\u003cuuid>"},"uid":{"type":"integer","uniqueKey":"files.additionalProperties.uid","typeLabel":"integer"},"gid":{"type":"integer","uniqueKey":"files.additionalProperties.gid","typeLabel":"integer"},"mode":{"type":"string","uniqueKey":"files.additionalProperties.mode","typeLabel":"string"}},"uniqueKey":"files.additionalProperties","typeLabel":"object"},"uniqueKey":"files","typeLabel":"object"},"result":{"oneOf":[{"type":"object","description":"Result of an instance execution","properties":{"resources":{"type":"object","properties":{"block_input":{"type":"integer","description":"Block input operations","uniqueKey":"result.oneOf.0.resources.block_input","typeLabel":"integer"},"block_output":{"type":"integer","description":"Block output operations","uniqueKey":"result.oneOf.0.resources.block_output","typeLabel":"integer"},"cost":{"type":"number","format":"float","description":"Operation cost","uniqueKey":"result.oneOf.0.resources.cost","typeLabel":"number\u003cfloat>"},"elapsed_time":{"type":"number","description":"Elapsed wall time","uniqueKey":"result.oneOf.0.resources.elapsed_time","typeLabel":"number"},"involuntary_switches":{"type":"integer","description":"Number of involuntary context switches","uniqueKey":"result.oneOf.0.resources.involuntary_switches","typeLabel":"integer"},"max_rss":{"type":"integer","description":"Maximum resident set size in KB","uniqueKey":"result.oneOf.0.resources.max_rss","typeLabel":"integer"},"monotonic_time":{"type":"number","format":"float","description":"Monotonic time measurement","uniqueKey":"result.oneOf.0.resources.monotonic_time","typeLabel":"number\u003cfloat>"},"page_faults":{"type":"integer","description":"Number of page faults","uniqueKey":"result.oneOf.0.resources.page_faults","typeLabel":"integer"},"page_faults_io":{"type":"integer","description":"Number of page faults requiring I/O","uniqueKey":"result.oneOf.0.resources.page_faults_io","typeLabel":"integer"},"shared_memory":{"type":"integer","description":"Shared memory size","uniqueKey":"result.oneOf.0.resources.shared_memory","typeLabel":"integer"},"signals":{"type":"integer","description":"Number of signals received","uniqueKey":"result.oneOf.0.resources.signals","typeLabel":"integer"},"swaps":{"type":"integer","description":"Number of swaps","uniqueKey":"result.oneOf.0.resources.swaps","typeLabel":"integer"},"system_cpu_time":{"type":"number","format":"float","description":"System CPU time used","uniqueKey":"result.oneOf.0.resources.system_cpu_time","typeLabel":"number\u003cfloat>"},"unshared_memory":{"type":"integer","description":"Unshared memory size","uniqueKey":"result.oneOf.0.resources.unshared_memory","typeLabel":"integer"},"user_cpu_time":{"type":"number","format":"float","description":"User CPU time used","uniqueKey":"result.oneOf.0.resources.user_cpu_time","typeLabel":"number\u003cfloat>"},"voluntary_switches":{"type":"integer","description":"Number of voluntary context switches","uniqueKey":"result.oneOf.0.resources.voluntary_switches","typeLabel":"integer"}},"uniqueKey":"result.oneOf.0.resources","typeLabel":"object"},"state":{"type":"object","properties":{"continued":{"type":"boolean","description":"Whether the process was continued from a stop","uniqueKey":"result.oneOf.0.state.continued","typeLabel":"boolean"},"core_dump":{"type":"boolean","description":"Whether a core dump was generated","uniqueKey":"result.oneOf.0.state.core_dump","typeLabel":"boolean"},"exit_code":{"type":"integer","description":"Process exit code","uniqueKey":"result.oneOf.0.state.exit_code","typeLabel":"integer"},"pid":{"type":"integer","description":"Process ID","uniqueKey":"result.oneOf.0.state.pid","typeLabel":"integer"},"signal":{"type":"integer","description":"Signal that caused termination, if any","uniqueKey":"result.oneOf.0.state.signal","typeLabel":"integer"},"stopped":{"type":"boolean","description":"Whether the process was stopped","uniqueKey":"result.oneOf.0.state.stopped","typeLabel":"boolean"},"timed_out":{"type":"boolean","description":"Whether process had been killed because operation timeout was reached","uniqueKey":"result.oneOf.0.state.timed_out","typeLabel":"boolean"}},"uniqueKey":"result.oneOf.0.state","typeLabel":"object"},"stdout":{"type":"object","required":["value","encoding"],"properties":{"value":{"type":"string","description":"Content of the stream","example":"Y29tbWFuZCBvdXRwdXQK","isRequired":true,"uniqueKey":"result.oneOf.0.stdout.value","typeLabel":"string"},"encoding":{"type":"string","enum":["ascii","base64"],"description":"Encoding of the content","example":"base64","isRequired":true,"uniqueKey":"result.oneOf.0.stdout.encoding","typeLabel":"enum\u003cstring>"},"truncated":{"type":"boolean","description":"Whether the output was truncated","example":false,"uniqueKey":"result.oneOf.0.stdout.truncated","typeLabel":"boolean"}},"uniqueKey":"result.oneOf.0.stdout","typeLabel":"object"},"stderr":{"type":"object","required":["value","encoding"],"properties":{"value":{"type":"string","description":"Content of the stream","example":"Y29tbWFuZCBvdXRwdXQK","isRequired":true,"uniqueKey":"result.oneOf.0.stderr.value","typeLabel":"string"},"encoding":{"type":"string","enum":["ascii","base64"],"description":"Encoding of the content","example":"base64","isRequired":true,"uniqueKey":"result.oneOf.0.stderr.encoding","typeLabel":"enum\u003cstring>"},"truncated":{"type":"boolean","description":"Whether the output was truncated","example":false,"uniqueKey":"result.oneOf.0.stderr.truncated","typeLabel":"boolean"}},"uniqueKey":"result.oneOf.0.stderr","typeLabel":"object"}},"uniqueKey":"result.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"result.oneOf.1","typeLabel":"null"}],"uniqueKey":"result","typeLabel":"object | null"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"uuid":"12345678-9abc-baba-deda-0123456789ab","command":"\u003cstring>","image":"12345678-9abc-baba-deda-0123456789ab","hostname":"\u003cstring>","args":["\u003cstring>"],"shell":true,"env":{},"preserve_env":true,"cwd":"\u003cstring>","uid":123,"gid":123,"resources_limits":{"max_layer_bytes":1073741824},"networking":{"enabled":true},"stdin":{"value":"aGVsbG8K","encoding":"ascii","close":true},"timeout":123,"truncate_output_at":123,"disposable":true,"files":{},"result":{"resources":{"block_input":123,"block_output":123,"cost":123,"elapsed_time":123,"involuntary_switches":123,"max_rss":123,"monotonic_time":123,"page_faults":123,"page_faults_io":123,"shared_memory":123,"signals":123,"swaps":123,"system_cpu_time":123,"unshared_memory":123,"user_cpu_time":123,"voluntary_switches":123},"state":{"continued":true,"core_dump":true,"exit_code":123,"pid":123,"signal":123,"stopped":true,"timed_out":true},"stdout":{"value":"Y29tbWFuZCBvdXRwdXQK","encoding":"base64","truncated":false},"stderr":{"value":"Y29tbWFuZCBvdXRwdXQK","encoding":"base64","truncated":false}}}}},"exampleType":"generated"}},"exampleType":"generated"},"cf06516a-83fd-4f33-b5a9-5420dcb15a84":{"description":"Bad Request - Invalid request parameters","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"oneOf":[{"type":"string","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"object"},{"type":"array","items":{"type":"object","uniqueKey":"error.oneOf.2.items.[INDEX]","typeLabel":"object"},"description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.2","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | object | object[]"},"status":{"type":"integer","description":"HTTP status code","example":500,"uniqueKey":"status","typeLabel":"integer"},"traceback":{"type":"array","items":{"type":"string","uniqueKey":"traceback.items.[INDEX]","typeLabel":"string"},"uniqueKey":"traceback","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Some error occurred, this is an example of error message","status":500,"traceback":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"0e129d30-8b8f-4ab9-85fc-24bc2aac32b2":{"description":"Unauthorized - Invalid or missing authentication credentials.\nEither the `Authorization` bearer token is missing or invalid, or\nthe `Project` header is missing.\n","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"oneOf":[{"type":"string","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"object"},{"type":"array","items":{"type":"object","uniqueKey":"error.oneOf.2.items.[INDEX]","typeLabel":"object"},"description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.2","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | object | object[]"},"status":{"type":"integer","description":"HTTP status code","example":500,"uniqueKey":"status","typeLabel":"integer"},"traceback":{"type":"array","items":{"type":"string","uniqueKey":"traceback.items.[INDEX]","typeLabel":"string"},"uniqueKey":"traceback","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Some error occurred, this is an example of error message","status":500,"traceback":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"7157cc81-5cad-456c-a2c5-7823557cd4ec":{"description":"Forbidden - Token does not have sufficient permissions","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"oneOf":[{"type":"string","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"object","description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"object"},{"type":"array","items":{"type":"object","uniqueKey":"error.oneOf.2.items.[INDEX]","typeLabel":"object"},"description":"Error message or structured validation errors","example":"Some error occurred, this is an example of error message","isRequired":true,"uniqueKey":"error.oneOf.2","typeLabel":"object[]"}],"isRequired":true,"uniqueKey":"error","typeLabel":"string | object | object[]"},"status":{"type":"integer","description":"HTTP status code","example":500,"uniqueKey":"status","typeLabel":"integer"},"traceback":{"type":"array","items":{"type":"string","uniqueKey":"traceback.items.[INDEX]","typeLabel":"string"},"uniqueKey":"traceback","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"Some error occurred, this is an example of error message","status":500,"traceback":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"916d94ab-36f3-47b2-a32a-87ec0b36cbfb":{"IAMBearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"IAM","description":"IAM bearer token issued by the Nebius IAM service. Sent as\n`Authorization: Bearer \u003ciam-token>`. Must be combined with the\n`Project` header (see `IAMProjectHeader`).\n\nThis is the recommended authentication scheme for new clients.\n","scopes":[]},"IAMProjectHeader":{"type":"apiKey","in":"header","name":"Project","description":"Nebius project ID associated with the IAM token. Required together\nwith `IAMBearerAuth`. Identifies the project context the request is\nscoped to.\n","scopes":[]}}},"servers":{"489ddb56-32e1-4f15-a8cc-29272f4fe9e8":{"url":"{baseUrl}/v1","description":"Nebius IAM-fronted endpoint (use `IAMBearerAuth` + `IAMProjectHeader`).\nOverride `baseUrl` to point at a different deployment.\n","variables":{"baseUrl":{"default":"https://api.tokenfactory.nebius.com/sandboxes","description":"Base URL of the contree service. Defaults to the public Nebius\nIAM-fronted endpoint; set to your self-hosted contree origin\n(e.g. `https://contree.example.com`) when running elsewhere.\n"}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"IAM","description":"IAM bearer token issued by the Nebius IAM service. Sent as\n`Authorization: Bearer \u003ciam-token>`. Must be combined with the\n`Project` header (see `IAMProjectHeader`).\n\nThis is the recommended authentication scheme for new clients.\n","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"IAM bearer token issued by the Nebius IAM service. Sent as\n`Authorization: Bearer \u003ciam-token>`. Must be combined with the\n`Project` header (see `IAMProjectHeader`).\n\nThis is the recommended authentication scheme for new clients.\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"IAMBearerAuth","name":"Authorization"},{"scheme":{"type":"apiKey","in":"header","name":"Project","description":"Nebius project ID associated with the IAM token. Required together\nwith `IAMBearerAuth`. Identifies the project context the request is\nscoped to.\n","scopes":[]},"schema":{"title":"Project","type":"string","description":"Nebius project ID associated with the IAM token. Required together\nwith `IAMBearerAuth`. Identifies the project context the request is\nscoped to.\n","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"IAMProjectHeader","name":"Project"}],"title":"IAMBearerAuth \u0026 IAMProjectHeader"}]},"originalFileLocation":"https://eu-north.nebius.computer/static/api.yaml"},"subdomain":"nebius-723e8b65","siteName":"Nebius Token Factory documentation","title":"Spawn a new container instance - Nebius Token Factory documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-19T08:08:40.429Z","originalFileLocation":"api-reference/sandboxes/instances/spawn-a-new-container-instance.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;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=\"system\"}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=\"Creates and runs a new execution instance with the specified configuration. Requires a valid Authorization header. Common request body rules: The request body must contain at least command and image fields all other fields can be omitted. If the command field is a shell expression, you must set shell field to true. For specifying the shell binary, you can use env field to set SHELL variable. When shell is true, environment variables defined in the image (via ENV directives) are automatically inherited. When shell is false, image environment variables are not inherited and must be passed explicitly via the env field.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Spawn a new container instance - Nebius Token Factory documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates and runs a new execution instance with the specified configuration. Requires a valid Authorization header. Common request body rules: The request body must contain at least command and image fields all other fields can be omitted. If the command field is a shell expression, you must set shell field to true. For specifying the shell binary, you can use env field to set SHELL variable. When shell is true, environment variables defined in the image (via ENV directives) are automatically inherited. When shell is false, image environment variables are not inherited and must be passed explicitly via the env field.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nebius-723e8b65.mintlify.site/_mintlify/api/og/v2?division=instances\u0026amp;title=Spawn+a+new+container+instance\u0026amp;description=Creates+and+runs+a+new+execution+instance+with+the+specified+configuration.+%0ARequires+a+valid+%60Authorization%60+header.%0A%0ACommon+request+body+rules%3A%0A%0A++*+The+reque\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=b9cd5ec08e9f9803e13d2af13cfeda2ad4ad4aa2bb2632c63827434d9db39e94\">\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=\"Spawn a new container instance - Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates and runs a new execution instance with the specified configuration. Requires a valid Authorization header. Common request body rules: The request body must contain at least command and image fields all other fields can be omitted. If the command field is a shell expression, you must set shell field to true. For specifying the shell binary, you can use env field to set SHELL variable. When shell is true, environment variables defined in the image (via ENV directives) are automatically inherited. When shell is false, image environment variables are not inherited and must be passed explicitly via the env field.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nebius-723e8b65.mintlify.site/_mintlify/api/og/v2?division=instances\u0026amp;title=Spawn+a+new+container+instance\u0026amp;description=Creates+and+runs+a+new+execution+instance+with+the+specified+configuration.+%0ARequires+a+valid+%60Authorization%60+header.%0A%0ACommon+request+body+rules%3A%0A%0A++*+The+reque\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=b9cd5ec08e9f9803e13d2af13cfeda2ad4ad4aa2bb2632c63827434d9db39e94\">\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/nebius-723e8b65/c_0s9TotwR1LsmMH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4C37DC\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sandboxes/instances/spawn-a-new-container-instance.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\",\"name\":\"Nebius Token Factory documentation\",\"url\":\"https://docs.tokenfactory.nebius.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nebius-723e8b65/ErCyrf3yB4XdGZJ6/logo/Main-logo-TF-Light.svg?fit=max\u0026auto=format\u0026n=ErCyrf3yB4XdGZJ6\u0026q=85\u0026s=aaaf7203191be69af9622c9cb61e1b98\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.tokenfactory.nebius.com#website\",\"name\":\"Nebius Token Factory documentation\",\"url\":\"https://docs.tokenfactory.nebius.com\",\"publisher\":{\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance#webpage\",\"url\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance\",\"name\":\"Spawn a new container instance\",\"description\":\"Creates and runs a new execution instance with the specified configuration. Requires a valid Authorization header. Common request body rules: The request body must contain at least command and image fields all other fields can be omitted. If the command field is a shell expression, you must set shell field to true. For specifying the shell binary, you can use env field to set SHELL variable. When shell is true, environment variables defined in the image (via ENV directives) are automatically inherited. When shell is false, image environment variables are not inherited and must be passed explicitly via the env field.\",\"dateModified\":\"2026-08-19T08:08:40.429Z\",\"isPartOf\":{\"@id\":\"https://docs.tokenfactory.nebius.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Sandboxes\",\"item\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/images/list-publicly-available-images\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spawn a new container instance\",\"item\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance#apireference\",\"headline\":\"Spawn a new container instance\",\"name\":\"Spawn a new container instance\",\"description\":\"Creates and runs a new execution instance with the specified configuration. Requires a valid Authorization header. Common request body rules: The request body must contain at least command and image fields all other fields can be omitted. If the command field is a shell expression, you must set shell field to true. For specifying the shell binary, you can use env field to set SHELL variable. When shell is true, environment variables defined in the image (via ENV directives) are automatically inherited. When shell is false, image environment variables are not inherited and must be passed explicitly via the env field.\",\"url\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance\",\"mainEntityOfPage\":{\"@id\":\"https://docs.tokenfactory.nebius.com/api-reference/sandboxes/instances/spawn-a-new-container-instance#webpage\"},\"dateModified\":\"2026-08-19T08:08:40.429Z\",\"publisher\":{\"@id\":\"https://docs.tokenfactory.nebius.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.tokenfactory.nebius.com#website\"}}]}\u003c/script>","agentPointerHref":"/api-reference/sandboxes/instances/spawn-a-new-container-instance.md","siteName":"Nebius Token Factory documentation","nav":{"global":{"anchors":[{"anchor":"LinkedIn","icon":"linkedin","href":"https://www.linkedin.com/company/nebius/"},{"anchor":"Discord Community","icon":"discord","href":"https://discord.com/invite/WJ2DUQRz4m"},{"anchor":"X","icon":"x-twitter","href":"https://x.com/nebiustf"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/quickstart"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","icon":"play","href":"/api-reference/introduction"},{"group":"Examples","icon":"book","pages":[{"title":"Overview","icon":"book-open-lines","href":"/api-reference/examples/overview"},{"title":"Text generation","icon":"text","href":"/api-reference/examples/text-generation"},{"title":"Vision capabilities","icon":"eye","href":"/api-reference/examples/vision-capabilities"},{"title":"Text generation for code autocomplete","icon":"code","href":"/api-reference/examples/text-generation-for-code-autocomplete"},{"title":"List of models","icon":"list","href":"/api-reference/examples/list-of-models"},{"title":"Image generation","icon":"image","href":"/api-reference/examples/image-generation"},{"title":"Create embeddings","icon":"circle-nodes","href":"/api-reference/examples/create-embeddings"},{"title":"Files","icon":"file","href":"/api-reference/examples/files"}]}]},{"group":"Inference and Training","pages":[{"group":"inference","pages":[{"title":"Create completion","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/completions","href":"/api-reference/inference/create-completion"},{"title":"Create chat completion","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/chat/completions","href":"/api-reference/inference/create-chat-completion"},{"title":"Create embeddings","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/embeddings","href":"/api-reference/inference/create-embeddings"},{"title":"Rerank documents","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/rerank","href":"/api-reference/inference/rerank-documents"},{"title":"Create a response","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/responses","href":"/api-reference/inference/create-a-response"}]},{"group":"models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/models","href":"/api-reference/models/list-models"}]},{"group":"files","pages":[{"title":"List user files","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/files","href":"/api-reference/files/list-user-files"},{"title":"Upload file","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/files","href":"/api-reference/files/upload-file"},{"title":"Retrieve file","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/files/{file_id}","href":"/api-reference/files/retrieve-file"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json delete /v1/files/{file_id}","href":"/api-reference/files/delete-file"},{"title":"Retrieve file content","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/files/{file_id}/content","href":"/api-reference/files/retrieve-file-content"},{"title":"Returns URL with link to download file content","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/files/{file_id}/link","href":"/api-reference/files/returns-url-with-link-to-download-file-content"}]},{"group":"fine-tuning","pages":[{"title":"List fine-tuning jobs","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/jobs","href":"/api-reference/fine-tuning/list-fine-tuning-jobs"},{"title":"Create a fine-tuning job","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/fine_tuning/jobs","href":"/api-reference/fine-tuning/create-a-fine-tuning-job"},{"title":"Get fine-tuning job info","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/jobs/{job_id}","href":"/api-reference/fine-tuning/get-fine-tuning-job-info"},{"title":"Cancel fine-tuning job","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/fine_tuning/jobs/{job_id}/cancel","href":"/api-reference/fine-tuning/cancel-fine-tuning-job"},{"title":"List fine-tuning events","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/jobs/{job_id}/events","href":"/api-reference/fine-tuning/list-fine-tuning-events"},{"title":"List fine-tuning checkpoints","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/jobs/{job_id}/checkpoints","href":"/api-reference/fine-tuning/list-fine-tuning-checkpoints"},{"title":"Get fine-tuning checkpoint","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/jobs/{job_id}/checkpoints/{checkpoint_id}","href":"/api-reference/fine-tuning/get-fine-tuning-checkpoint"},{"title":"List spec-draft trainable models","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/fine_tuning/models/spec-draft","href":"/api-reference/fine-tuning/list-spec-draft-trainable-models"},{"title":"List spec-draft trainable models","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /fine_tuning/models/spec-draft","href":"/api-reference/fine-tuning/list-spec-draft-trainable-models-1"}]},{"group":"dedicated-endpoints","pages":[{"title":"List Dedicated Endpoint Templates","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v0/dedicated_endpoints/templates","href":"/api-reference/dedicated-endpoints/list-dedicated-endpoint-templates"},{"title":"List Dedicated Endpoints","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v0/dedicated_endpoints","href":"/api-reference/dedicated-endpoints/list-dedicated-endpoints"},{"title":"Create Dedicated Endpoint","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v0/dedicated_endpoints","href":"/api-reference/dedicated-endpoints/create-dedicated-endpoint"},{"title":"Delete Dedicated Endpoint","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json delete /v0/dedicated_endpoints/{endpoint_id}","href":"/api-reference/dedicated-endpoints/delete-dedicated-endpoint"},{"title":"Update Dedicated Endpoint","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json patch /v0/dedicated_endpoints/{endpoint_id}","href":"/api-reference/dedicated-endpoints/update-dedicated-endpoint"}]},{"group":"datasets","pages":[{"title":"Get a list of datasets in project","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets","href":"/api-reference/datasets/get-a-list-of-datasets-in-project"},{"title":"Create a dataset by uploading data","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/datasets","href":"/api-reference/datasets/create-a-dataset-by-uploading-data"},{"title":"Get dataset info","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/{dataset_id}","href":"/api-reference/datasets/get-dataset-info"},{"title":"Delete a dataset","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json delete /v1/datasets/{dataset_id}","href":"/api-reference/datasets/delete-a-dataset"},{"title":"Patch dataset info","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json patch /v1/datasets/{dataset_id}","href":"/api-reference/datasets/patch-dataset-info"},{"title":"Get dataset query template","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/{dataset_id}/query_templates","href":"/api-reference/datasets/get-dataset-query-template"},{"title":"Read dataset content","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/{dataset_id}/content","href":"/api-reference/datasets/read-dataset-content"},{"title":"Read dataset content as csv or jsonl","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/{dataset_id}/export","href":"/api-reference/datasets/read-dataset-content-as-csv-or-jsonl"},{"title":"Create a new multipart upload for a dataset","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/datasets/uploads","href":"/api-reference/datasets/create-a-new-multipart-upload-for-a-dataset"},{"title":"List parts of a multipart upload","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/uploads/{upload_id}/parts","href":"/api-reference/datasets/list-parts-of-a-multipart-upload"},{"title":"Upload a new part for a multipart upload","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/datasets/uploads/{upload_id}/parts","href":"/api-reference/datasets/upload-a-new-part-for-a-multipart-upload"},{"title":"Complete a multipart upload, create a new dataset","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/datasets/uploads/{upload_id}/complete","href":"/api-reference/datasets/complete-a-multipart-upload-create-a-new-dataset"},{"title":"Get information about a multipart upload","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/datasets/uploads/{upload_id}","href":"/api-reference/datasets/get-information-about-a-multipart-upload"},{"title":"Cancel a multipart upload","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/datasets/uploads/{upload_id}/cancel","href":"/api-reference/datasets/cancel-a-multipart-upload"},{"title":"Filter operations by attributes","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/operations","href":"/api-reference/datasets/filter-operations-by-attributes"},{"title":"Run operation","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/operations","href":"/api-reference/datasets/run-operation"},{"title":"Get operation info by id","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/operations/{operation_id}","href":"/api-reference/datasets/get-operation-info-by-id"},{"title":"Stop operation by id","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json post /v1/operations/{operation_id}/cancel","href":"/api-reference/datasets/stop-operation-by-id"},{"title":"Get operation results","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/operations/{operation_id}/results","href":"/api-reference/datasets/get-operation-results"},{"title":"Get operation errors","deprecated":null,"version":null,"openapi":"https://api.tokenfactory.nebius.com/openapi.json get /v1/operations/{operation_id}/errors","href":"/api-reference/datasets/get-operation-errors"}]}]},{"group":"Sandboxes","pages":[{"group":"images","pages":[{"title":"List publicly available images","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /images","href":"/api-reference/sandboxes/images/list-publicly-available-images"},{"title":"Remove tags from an image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml delete /images/{imageUUID}/tag","href":"/api-reference/sandboxes/images/remove-tags-from-an-image"},{"title":"Add a tag to an image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml patch /images/{imageUUID}/tag","href":"/api-reference/sandboxes/images/add-a-tag-to-an-image"},{"title":"Import a container image from a registry","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /images/import","href":"/api-reference/sandboxes/images/import-a-container-image-from-a-registry"}]},{"group":"files","pages":[{"title":"List uploaded files for the current namespace","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /files","href":"/api-reference/sandboxes/files/list-uploaded-files-for-the-current-namespace"},{"title":"Upload a file to the server. the body must be a file content.","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /files","href":"/api-reference/sandboxes/files/upload-a-file-to-the-server-the-body-must-be-a-file-content"},{"title":"Get file info by SHA256","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /files/{sha256}","href":"/api-reference/sandboxes/files/get-file-info-by-sha256"},{"title":"Check if a file exists for the current namespace","description":"Returns 200 if the file is uploaded by the current namespace, otherwise 404.","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml head /files/{sha256}","href":"/api-reference/sandboxes/files/check-if-a-file-exists-for-the-current-namespace"}]},{"group":"instances","pages":[{"title":"Spawn a new container instance","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /instances","href":"/api-reference/sandboxes/instances/spawn-a-new-container-instance"}]},{"group":"operations","pages":[{"title":"List operations","description":"Returns a list of running and completed operations","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /operations","href":"/api-reference/sandboxes/operations/list-operations"},{"title":"Get an operation status","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /operations/{operationId}","href":"/api-reference/sandboxes/operations/get-an-operation-status"},{"title":"Cancel an operation","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml delete /operations/{operationId}","href":"/api-reference/sandboxes/operations/cancel-an-operation"},{"title":"Stream the operation event log via Server-Sent Events","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /operations/{operationId}/events","href":"/api-reference/sandboxes/operations/stream-the-operation-event-log-via-server-sent-events"}]},{"group":"operation","pages":[{"title":"Spawn an additional subprocess inside a running instance","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /operations/{operationId}/subprocesses","href":"/api-reference/sandboxes/operation/spawn-an-additional-subprocess-inside-a-running-instance"},{"title":"Result of one subprocess, reconstructed from its events","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /operations/{operationId}/subprocesses/{spid}","href":"/api-reference/sandboxes/operation/result-of-one-subprocess-reconstructed-from-its-events"},{"title":"Kill one subprocess","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml delete /operations/{operationId}/subprocesses/{spid}","href":"/api-reference/sandboxes/operation/kill-one-subprocess"},{"title":"Write to a subprocess's stdin and/or close it","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml post /operations/{operationId}/subprocesses/{spid}/stdin","href":"/api-reference/sandboxes/operation/write-to-a-subprocesss-stdin-andor-close-it"}]},{"group":"inspect","pages":[{"title":"Redirect to /inspect/","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect","href":"/api-reference/sandboxes/inspect/redirect-to-inspect"},{"title":"Redirect to /inspect/{imageUUID}/","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{imageUUID}","href":"/api-reference/sandboxes/inspect/redirect-to-inspect-"},{"title":"Find image by tag","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/","href":"/api-reference/sandboxes/inspect/find-image-by-tag"},{"title":"Inspect an image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{image_uuid}/","href":"/api-reference/sandboxes/inspect/inspect-an-image"},{"title":"Download a file from image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{image_uuid}/download","href":"/api-reference/sandboxes/inspect/download-a-file-from-image"},{"title":"Check if a file exists in image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml head /inspect/{image_uuid}/download","href":"/api-reference/sandboxes/inspect/check-if-a-file-exists-in-image"},{"title":"Download a file or a directory from image as tar archive","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{image_uuid}/archive","href":"/api-reference/sandboxes/inspect/download-a-file-or-a-directory-from-image-as-tar-archive"},{"title":"Check if a path can be archived from image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml head /inspect/{image_uuid}/archive","href":"/api-reference/sandboxes/inspect/check-if-a-path-can-be-archived-from-image"},{"title":"List files in image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{image_uuid}/list","href":"/api-reference/sandboxes/inspect/list-files-in-image"},{"title":"Search file contents in image","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /inspect/{image_uuid}/grep","href":"/api-reference/sandboxes/inspect/search-file-contents-in-image"}]},{"group":"auth","pages":[{"title":"Get current token information","deprecated":null,"version":null,"openapi":"https://eu-north.nebius.computer/static/api.yaml get /whoami","href":"/api-reference/sandboxes/auth/get-current-token-information"}]}]}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal/terms-of-service"}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/cookbook/overview"}]}]},"basePath":"","title":"Spawn a new container instance - Nebius Token Factory documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}