Save the API key into a NEBIUS_API_KEY environment variable:
export NEBIUS_API_KEY="<API_key>"
Install the crewai package:
pip install crewai
Quickstart
from crewai import Agent, Task, LLM, Crew, Processimport osllm=LLM( model="nebius/Qwen/Qwen3-30B-A3B", api_key=os.getenv("NEBIUS_API_KEY"))# Create a researcher agent## see documentation : https://docs.crewai.com/en/concepts/agents#direct-code-definitionresearcher = Agent( role='Senior Researcher', goal='Discover groundbreaking technologies', verbose=True, llm=llm, backstory='A curious mind fascinated by cutting-edge innovation and the potential to change the world, you know everything about tech.')# Task for the researcherresearch_task = Task( description='Identify the next big trend in AI', expected_output='5 paragraphs on the next big AI trend', agent=researcher # Assigning the task to the researcher)# Instantiate your crewtech_crew = Crew( agents=[researcher], tasks=[research_task], process=Process.sequential # Tasks will be executed one after the other)# Begin the task executionresult = tech_crew.kickoff()## see raw responseprint("=== CREW OUTPUT ===")print(result.raw)## Look at `token_usage` outputprint("\n=== TOKEN USAGE ===")print(f"Total tokens: {result.token_usage.total_tokens}")print(f"Prompt tokens: {result.token_usage.prompt_tokens}")print(f"Completion tokens: {result.token_usage.completion_tokens}")print(f"Successful requests: {result.token_usage.successful_requests}")
{"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":"integrations/agents/crewai","slug":"/integrations/agents/crewai","pageMetadata":{"title":"Crew AI","description":"Crew AI + Nebius Token Factory","href":"/integrations/agents/crewai"},"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: \"Crew AI + Nebius Token Factory\"\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,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Crew AI`}),` is an open source agentic framework.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.a,{href:`https://docs.crewai.com/en/introduction`,children:`Crew AI docs`})}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://tokenfactory.nebius.com/project/api-keys`,children:`Create an API key`}),` to authorize requests to Nebius Token Factory.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Save the API key into a `,_jsx(_components.code,{children:`NEBIUS_API_KEY`}),` environment variable:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`export`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` NEBIUS_API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\u003cAPI_key>\"`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Install the `,_jsx(_components.code,{children:`crewai`}),` package:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`pip`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` install`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` crewai`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` `})]}),`\n`]})})}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`quickstart`,children:`Quickstart`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`44`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`44`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` crewai `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent, Task, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`LLM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, Crew, Process`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`llm`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`LLM(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` model`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nebius/Qwen/Qwen3-30B-A3B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` api_key`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.getenv(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"NEBIUS_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Create a researcher agent`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## see documentation : https://docs.crewai.com/en/concepts/agents#direct-code-definition`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`researcher `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Agent(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` role`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Senior Researcher'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` goal`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Discover groundbreaking technologies'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` verbose`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` llm`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`llm,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` backstory`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'A curious mind fascinated by cutting-edge innovation and the potential to change the world, you know everything about tech.'`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Task for the researcher`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`research_task `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Task(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` description`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Identify the next big trend in AI'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` expected_output`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'5 paragraphs on the next big AI trend'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`researcher `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Assigning the task to the researcher`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Instantiate your crew`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`tech_crew `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Crew(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` agents`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[researcher],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tasks`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[research_task],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Process.sequential `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Tasks will be executed one after the other`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Begin the task execution`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` tech_crew.kickoff()`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`## see raw response`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"=== CREW OUTPUT ===\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result.raw)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\"## Look at `token_usage` output\"})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\n`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`=== TOKEN USAGE ===\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Total tokens: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.token_usage.total_tokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Prompt tokens: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.token_usage.prompt_tokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Completion tokens: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.token_usage.completion_tokens`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Successful requests: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.token_usage.successful_requests`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`more-examples`,children:`More Examples`}),`\n`,_jsxs(_components.p,{children:[`View `,_jsx(_components.a,{href:`https://github.com/nebius/token-factory-cookbook/blob/main/agents/README.md#crewai`,children:`more examples`}),` in our cookbook.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Crew AI","description":"Crew AI + Nebius Token Factory","href":"/integrations/agents/crewai"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Quickstart","slug":"quickstart","depth":2,"children":[]},{"title":"More Examples","slug":"more-examples","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nebius-723e8b65/6229d1e239953167/global.js"],"subdomain":"nebius-723e8b65","siteName":"Nebius Token Factory documentation","title":"Crew AI - Nebius Token Factory documentation","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-19T14:32:38.940Z","originalFileLocation":"integrations/agents/crewai.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=\"Crew AI + Nebius Token Factory\">\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=\"Crew AI - Nebius Token Factory documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Crew AI + Nebius Token Factory\">\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/integrations/agents/crewai\">\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=Documentation\u0026amp;title=Crew+AI\u0026amp;description=Crew+AI+%2B+Nebius+Token+Factory\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=850328d297e28ea9207ede320dd54c1dcfb00f556d3adcee49e90f6bb1f0d5ae\">\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=\"Crew AI - Nebius Token Factory documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Crew AI + Nebius Token Factory\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nebius-723e8b65.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Crew+AI\u0026amp;description=Crew+AI+%2B+Nebius+Token+Factory\u0026amp;theme=8dac4888e5d1287edac4b149\u0026amp;signature=850328d297e28ea9207ede320dd54c1dcfb00f556d3adcee49e90f6bb1f0d5ae\">\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/integrations/agents/crewai\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrations/agents/crewai.md\">","agentPointerHref":"/integrations/agents/crewai.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":[{"group":"Get Started","pages":[{"title":"Quickstart","icon":"play","href":"/quickstart"},{"title":"Switch to Token Factory","icon":"arrow-down-arrow-up","href":"/switch"}]},{"group":"Inference","pages":[{"title":"Overview","icon":"book-open-lines","href":"/ai-models-inference/overview"},{"group":"Dedicated Endpoint","icon":"circle-dot","expanded":true,"pages":[{"title":"Overview","href":"/ai-models-inference/dedicated-endpoints/overview"},{"group":"Quick Start","pages":[{"title":"Quickstart","href":"/ai-models-inference/dedicated-endpoints/quickstart"},{"title":"Quickstart: Deploy via API","icon":"code","href":"/ai-models-inference/dedicated-endpoints/deploy-api"},{"title":"Quickstart: Deploy in UI","icon":"arrow-pointer","href":"/ai-models-inference/dedicated-endpoints/deploy-ui"}]},{"group":"Core Concepts","pages":[{"title":"Control \u0026 Data Plane","href":"/ai-models-inference/dedicated-endpoints/control-data-plane"},{"title":"Capacity, availability, and service guarantees","href":"/ai-models-inference/dedicated-endpoints/capacity-and-scaling"},{"title":"Billing Policy","href":"/ai-models-inference/dedicated-endpoints/billing-policy"},{"title":"Lifecycle \u0026 Readiness Status","href":"/ai-models-inference/dedicated-endpoints/lifecycle-and-status"},{"title":"Operating Dedicated Endpoint","href":"/ai-models-inference/dedicated-endpoints/operating"}]},{"title":"Best Practices","href":"/ai-models-inference/dedicated-endpoints/best-practice"},{"title":"Custom model weights","href":"/ai-models-inference/dedicated-endpoints/custom-weights"},{"title":"FAQ \u0026 Troubleshooting","href":"/ai-models-inference/dedicated-endpoints/faq"}]},{"title":"Function calling \u0026 Tools","icon":"function","href":"/ai-models-inference/function-calling"},{"title":"Structured output \u0026 JSON","sidebarTitle":"Structured output \u0026 JSON","icon":"brackets-curly","href":"/ai-models-inference/json"},{"title":"Rate Limits \u0026 Scaling","icon":"arrow-trend-up","href":"/ai-models-inference/rate-limits"},{"title":"UI \u0026 Playground","sidebarTitle":"UI \u0026 Playground","icon":"message","href":"/ai-models-inference/playground"},{"title":"Generating consistent images with LoRA adapters","icon":"image","hidden":true,"href":"/ai-models-inference/image-lora"},{"title":"Сustom model weights management","hidden":true,"icon":"weight-hanging","href":"/ai-models-inference/model-weights-management"},{"title":"Public Serverless Endpoints","icon":"circle-small","href":"/public-serverless"},{"title":"Cached Tokens","icon":"hexagon-nodes-bolt","href":"/cached-tokens"}]},{"group":"Observability","pages":[{"title":"Inference Observability","icon":"chart-column","href":"/ai-models-inference/observability"},{"title":"Observability API integrations","icon":"chart-network","href":"/ai-models-inference/observability-api-integrations"}]},{"group":"Post-training","pages":[{"title":"Overview","icon":"book-open-lines","href":"/post-training/overview"},{"title":" Dataset formats for fine-tuning","sidebarTitle":"Datasets","icon":"table","href":"/post-training/datasets"},{"title":"Models for fine-tuning in Nebius Token Factory","sidebarTitle":"Models","icon":"list-ul","href":"/post-training/models"},{"title":"Supervised Finetuning ","icon":"layer-group","href":"/post-training/how-to-fine-tune"},{"title":"Custom speculator","icon":"forward-fast","href":"/post-training/custom-speculator"},{"title":"Merging LoRA Adapters","icon":"merge","href":"/post-training/merge-moe-lora-weights"}]},{"group":"Data Lab","pages":[{"title":"Overview","icon":"book-open-lines","href":"/data-lab/overview"},{"title":"Import Chat Completions","icon":"upload","href":"/data-lab/chat-completions"},{"title":"Fine-tuning","icon":"layer-group","href":"/data-lab/fine-tuning"},{"title":"Data Processing","icon":"table","href":"/data-lab/data-processing"},{"title":"Datasets","icon":"folder-arrow-up","href":"/data-lab/datasets"}]},{"group":"Sandboxes","pages":[{"title":"Sandboxes overview","icon":{"name":"book-open-lines","style":"regular","library":"fontawesome"},"href":"/sandboxes/overview"},{"group":"Get started","icon":"circle-user-circle-question","pages":[{"title":"Set up access","href":"/sandboxes/start/set-up-access"},{"title":"Python quickstart","href":"/sandboxes/start/python-quickstart"},{"title":"CLI quickstart","href":"/sandboxes/start/cli-quickstart"},{"title":"Choose an interface","href":"/sandboxes/start/choose-an-interface"}]},{"group":"Concepts","icon":"box-isometric","pages":[{"title":"Execution lifecycle","href":"/sandboxes/concepts/execution-lifecycle"},{"title":"Images, checkpoints, and branches","href":"/sandboxes/concepts/images-checkpoints-and-branches"},{"title":"Inspect images without starting a VM","href":"/sandboxes/concepts/inspect-images"},{"title":"Sessions and execution modes","href":"/sandboxes/concepts/sessions-and-execution-modes"}]},{"group":"Guides","icon":"paper-plane","pages":[{"title":"Run commands and handle results","href":"/sandboxes/guides/run-commands-and-results"},{"title":"Stream output and events","href":"/sandboxes/guides/stream-output-and-events"},{"title":"Run subprocesses and send input","href":"/sandboxes/guides/run-subprocesses-and-send-input"},{"title":"Prepare and reuse environments","href":"/sandboxes/guides/prepare-and-reuse-environments"},{"title":"Work with files and artifacts","href":"/sandboxes/guides/work-with-files-and-artifacts"},{"title":"Branch, compare, and recover","href":"/sandboxes/guides/branch-compare-and-recover"},{"title":"Configure networking and secrets","href":"/sandboxes/guides/configure-networking-and-secrets"},{"title":"Run concurrent workloads","href":"/sandboxes/guides/run-concurrent-workloads"}]},{"group":"Cookbook","icon":"book-spells","pages":[{"title":"Sandboxes cookbook","href":"/sandboxes/cookbook/index"},{"title":"Prepare once, reuse safely","href":"/sandboxes/cookbook/prepare-once-reuse-safely"},{"title":"Stream a build or test run","href":"/sandboxes/cookbook/stream-a-build-or-test-run"},{"title":"Interact with a process during an operation","href":"/sandboxes/cookbook/interact-with-a-process"},{"title":"Try two coding fixes and keep the passing branch","href":"/sandboxes/cookbook/try-two-coding-fixes"},{"title":"Generate and download a binary artifact","href":"/sandboxes/cookbook/generate-and-download-binary-artifact"},{"title":"Build and refresh a reusable custom environment","href":"/sandboxes/cookbook/build-reusable-custom-environment"},{"title":"Prepare inputs, then verify with networking disabled","href":"/sandboxes/cookbook/verify-with-networking-disabled"},{"title":"Run a bounded evaluation batch","href":"/sandboxes/cookbook/run-bounded-evaluation-batch"},{"title":"Recover from a known-good image","href":"/sandboxes/cookbook/recover-from-known-good-image"}]},{"group":"Operate","icon":"message-exclamation","pages":[{"title":"Troubleshooting","href":"/sandboxes/operate/troubleshooting"},{"title":"Limits, retention, and usage","href":"/sandboxes/operate/limits-retention-and-usage"},{"title":"Security and data handling","href":"/sandboxes/operate/security-and-data-handling"},{"title":"Update images and clients","href":"/sandboxes/operate/update-images-and-clients"}]},{"title":"Reference map and compatibility","icon":{"name":"file-text","style":"regular","library":"fontawesome"},"href":"/sandboxes/reference/index"},{"title":"Sandboxes for SWE agents","icon":"robot","href":"/sandboxes/swe-agents"},{"group":"Contree SDK","pages":[{"icon":"book-open-lines","title":"ConTree SDK","href":"/sandboxes/sdk/index"},{"group":"Start here","pages":[{"icon":"hand-wave","title":"Your first sandbox","href":"/sandboxes/sdk/python_sdk/getting-started"},{"icon":"layer-group","title":"Import a Docker image","href":"/sandboxes/sdk/python_sdk/images"},{"icon":"file-code","title":"Build a Docker image","href":"/sandboxes/sdk/python_sdk/building-images"},{"group":"Advanced usage","pages":[{"icon":"sliders","title":"Advanced usage","href":"/sandboxes/sdk/python_sdk/advanced"},{"title":"Advanced: assemble a sandbox yourself","href":"/sandboxes/sdk/python_sdk/manual-sandbox"}]}]},{"group":"Work with a Session","pages":[{"icon":"terminal","title":"Work with a Session","href":"/sandboxes/sdk/python_sdk/session-model"},{"icon":"code-branch","title":"Branch, switch, and roll back","href":"/sandboxes/sdk/python_sdk/branching"},{"icon":"database","title":"Save and resume a session","href":"/sandboxes/sdk/python_sdk/sessions"},{"icon":"file-arrow-up","title":"Work with sandbox files","href":"/sandboxes/sdk/python_sdk/files"},{"icon":"diagram-project","title":"Advanced: control a running sandbox","href":"/sandboxes/sdk/python_sdk/operation"},{"title":"Advanced: resume a background operation","href":"/sandboxes/sdk/python_sdk/detached-operations"},{"title":"Reuse uploads and retain their sources","href":"/sandboxes/sdk/python_sdk/caching"}]},{"group":"Integrations","pages":[{"icon":"robot","title":"LangChain DeepAgents","href":"/sandboxes/sdk/integrations/langchain"},{"title":"Run Harbor on ConTree","href":"/sandboxes/sdk/integrations/harbor"},{"icon":"robot","title":"mini-swe-agent","href":"/sandboxes/sdk/integrations/mini-swe-agent"}]},{"group":"Advanced Usage","pages":[{"title":"Implement a custom Store","href":"/sandboxes/sdk/python_sdk/custom-store"},{"title":"Customize the SDK","href":"/sandboxes/sdk/python_sdk/customization"},{"title":"SDK migration guide","href":"/sandboxes/sdk/python_sdk/migration"},{"icon":"triangle-exclamation","title":"Handle failures and unexpected state","href":"/sandboxes/sdk/python_sdk/troubleshooting"}]},{"group":"Reference and development","pages":[{"group":"API reference","pages":[{"title":"API reference","href":"/sandboxes/sdk/python_sdk/reference/index"},{"title":"Sessions and operations","href":"/sandboxes/sdk/python_sdk/reference/session"},{"title":"Sandbox factories","href":"/sandboxes/sdk/python_sdk/reference/sandbox"},{"title":"Image helpers","href":"/sandboxes/sdk/python_sdk/reference/images"},{"title":"File transfer","href":"/sandboxes/sdk/python_sdk/reference/files"},{"title":"Tree stores","href":"/sandboxes/sdk/python_sdk/reference/store"},{"title":"Dockerfile builders","href":"/sandboxes/sdk/python_sdk/reference/docker"},{"title":"Caches and upload sources","href":"/sandboxes/sdk/python_sdk/reference/cache"},{"title":"Execution contracts","href":"/sandboxes/sdk/python_sdk/reference/execution"},{"title":"deepagents sandboxes","href":"/sandboxes/sdk/python_sdk/reference/langchain"},{"title":"SDK exceptions","href":"/sandboxes/sdk/python_sdk/reference/exceptions"}]},{"title":"Develop and test the documentation","href":"/sandboxes/sdk/contributing"}]}]},{"group":"Contree CLI","pages":[{"icon":"book-open-lines","title":"Overview","href":"/sandboxes/cli/index"},{"group":"Tutorial","pages":[{"icon":"graduation-cap","title":"Tutorial","href":"/sandboxes/cli/tutorial/index"},{"icon":"download","title":"Install \u0026 Authenticate","href":"/sandboxes/cli/tutorial/installation"},{"icon":"rocket","title":"Your First Sandbox","href":"/sandboxes/cli/tutorial/first-steps"},{"icon":"terminal","title":"Interactive Shell","href":"/sandboxes/cli/tutorial/shell"},{"icon":"code-branch","title":"Sessions, Branches \u0026 Rollback","href":"/sandboxes/cli/tutorial/sessions"},{"icon":"folder-open","title":"Working with Files","href":"/sandboxes/cli/tutorial/files"},{"icon":"layer-group","title":"Images \u0026 Tags","href":"/sandboxes/cli/tutorial/images"},{"icon":"hammer","title":"Building from a Dockerfile","href":"/sandboxes/cli/tutorial/build"},{"icon":"gears","title":"Scripting \u0026 Automation","href":"/sandboxes/cli/tutorial/workflows"},{"icon":"gear","title":"Configuration \u0026 Profiles","href":"/sandboxes/cli/tutorial/configuration"}]},{"group":"Command Reference","pages":[{"icon":"book-open-cover","title":"Command Reference","href":"/sandboxes/cli/commands/index"},{"icon":"key","title":"auth - Configure credentials and profiles","href":"/sandboxes/cli/commands/auth"},{"icon":"cube","title":"use - Choose an image for the session","href":"/sandboxes/cli/commands/use"},{"icon":"play","title":"run - Execute a command in the sandbox","href":"/sandboxes/cli/commands/run"},{"icon":"hammer","title":"build - Build an image from a Dockerfile","href":"/sandboxes/cli/commands/build"},{"icon":"layer-group","title":"images - List and import images","href":"/sandboxes/cli/commands/images"},{"icon":"tag","title":"tag - Tag or untag an image","href":"/sandboxes/cli/commands/tag"},{"icon":"spinner","title":"operation - Manage operations","href":"/sandboxes/cli/commands/operation"},{"icon":"list","title":"ps - List activity","href":"/sandboxes/cli/commands/ps"},{"icon":"magnifying-glass","title":"show - Inspect an operation","href":"/sandboxes/cli/commands/show"},{"icon":"circle-xmark","title":"kill - Cancel operations","href":"/sandboxes/cli/commands/kill"},{"icon":"list-ul","title":"ls - List files in the image","href":"/sandboxes/cli/commands/ls"},{"icon":"file-lines","title":"cat - Show file content from the image","href":"/sandboxes/cli/commands/cat"},{"icon":"binoculars","title":"grep - Search file contents in the image","href":"/sandboxes/cli/commands/grep"},{"icon":"copy","title":"cp - Download a file from the image","href":"/sandboxes/cli/commands/cp"},{"icon":"folder","title":"cd - Change session working directory","href":"/sandboxes/cli/commands/cd"},{"icon":"leaf","title":"env - Manage session environment variables","href":"/sandboxes/cli/commands/env"},{"icon":"file","title":"file - Stage file edits for the next run","href":"/sandboxes/cli/commands/file"},{"icon":"clock","title":"session - Manage sessions, branches, history","href":"/sandboxes/cli/commands/session"},{"icon":"terminal","title":"shell - Interactive REPL","href":"/sandboxes/cli/commands/shell"},{"icon":"wand-magic-sparkles","title":"skill - Install agent skills","href":"/sandboxes/cli/commands/skill"},{"icon":"robot","title":"agent - Coding-agent manual","href":"/sandboxes/cli/commands/agent"}]}]},{"group":"Contree MCP","pages":[{"icon":"book-open-lines","title":"Overview","href":"/sandboxes/mcp/index"},{"icon":"rocket","title":"Quickstart","href":"/sandboxes/mcp/quickstart"},{"icon":"database","title":"Resources","href":"/sandboxes/mcp/resources"},{"icon":"shapes","title":"Patterns","href":"/sandboxes/mcp/patterns"},{"icon":"clipboard-list","title":"Cheatsheet","href":"/sandboxes/mcp/cheatsheet"},{"icon":"shield-halved","title":"Reporting Security Issues","href":"/sandboxes/mcp/security"},{"group":"Concepts","pages":[{"icon":"lightbulb","title":"Concepts","href":"/sandboxes/mcp/concepts/index"},{"icon":"layer-group","title":"Core Concepts","href":"/sandboxes/mcp/concepts/core"},{"icon":"diagram-project","title":"Workflows","href":"/sandboxes/mcp/concepts/workflows"}]},{"group":"Tools Reference","pages":[{"icon":"screwdriver-wrench","title":"Tools Reference","href":"/sandboxes/mcp/tools/index"},{"icon":"play","title":"run","href":"/sandboxes/mcp/tools/run"},{"icon":"arrows-rotate","title":"rsync","href":"/sandboxes/mcp/tools/rsync"},{"icon":"file-import","title":"import_image","href":"/sandboxes/mcp/tools/import_image"},{"icon":"ticket","title":"registry_token_obtain","href":"/sandboxes/mcp/tools/registry_token_obtain"},{"icon":"key","title":"registry_auth","href":"/sandboxes/mcp/tools/registry_auth"},{"icon":"images","title":"list_images","href":"/sandboxes/mcp/tools/list_images"},{"icon":"image","title":"get_image","href":"/sandboxes/mcp/tools/get_image"},{"icon":"tag","title":"set_tag","href":"/sandboxes/mcp/tools/set_tag"},{"icon":"upload","title":"upload","href":"/sandboxes/mcp/tools/upload"},{"icon":"download","title":"download","href":"/sandboxes/mcp/tools/download"},{"icon":"folder-open","title":"list_files","href":"/sandboxes/mcp/tools/list_files"},{"icon":"file-lines","title":"read_file","href":"/sandboxes/mcp/tools/read_file"},{"icon":"magnifying-glass","title":"grep","href":"/sandboxes/mcp/tools/grep"},{"icon":"magnifying-glass","title":"get_operation","href":"/sandboxes/mcp/tools/get_operation"},{"icon":"list-check","title":"list_operations","href":"/sandboxes/mcp/tools/list_operations"},{"icon":"hourglass-half","title":"wait_operations","href":"/sandboxes/mcp/tools/wait_operations"},{"icon":"ban","title":"cancel_operation","href":"/sandboxes/mcp/tools/cancel_operation"},{"icon":"circle-question","title":"get_guide","href":"/sandboxes/mcp/tools/get_guide"}]},{"group":"Prompts Reference","pages":[{"icon":"comments","title":"Prompts Reference","href":"/sandboxes/mcp/prompts/index"},{"icon":"gear","title":"prepare-environment","href":"/sandboxes/mcp/prompts/prepare-environment"},{"icon":"terminal","title":"run-python","href":"/sandboxes/mcp/prompts/run-python"},{"icon":"terminal","title":"run-shell","href":"/sandboxes/mcp/prompts/run-shell"},{"icon":"rotate","title":"sync-and-run","href":"/sandboxes/mcp/prompts/sync-and-run"},{"icon":"box-open","title":"install-packages","href":"/sandboxes/mcp/prompts/install-packages"},{"icon":"code-fork","title":"parallel-tasks","href":"/sandboxes/mcp/prompts/parallel-tasks"},{"icon":"hammer","title":"build-project","href":"/sandboxes/mcp/prompts/build-project"},{"icon":"bug","title":"debug-failure","href":"/sandboxes/mcp/prompts/debug-failure"},{"icon":"magnifying-glass","title":"inspect-image","href":"/sandboxes/mcp/prompts/inspect-image"},{"icon":"layer-group","title":"multi-stage-build","href":"/sandboxes/mcp/prompts/multi-stage-build"}]},{"group":"Integration","pages":[{"icon":"plug","title":"Integration","href":"/sandboxes/mcp/integration/index"},{"icon":"sliders","title":"Configuration","href":"/sandboxes/mcp/integration/configuration"},{"icon":"triangle-exclamation","title":"Troubleshooting","href":"/sandboxes/mcp/integration/troubleshooting"}]},{"group":"Reference","pages":[{"icon":"book","title":"Reference","href":"/sandboxes/mcp/reference/index"},{"icon":"book-bookmark","title":"Glossary","href":"/sandboxes/mcp/reference/glossary"}]}]}]},{"group":"Teams \u0026 Access Management","pages":[{"title":"Overview","icon":"book-open-lines","href":"/team-access/overview"},{"title":"Groups \u0026 Access management","icon":"user-group","href":"/team-access/groups"},{"title":"User Invitations","icon":"user-plus","href":"/team-access/invitations"},{"title":"Organizations and Projects","icon":"buildings","href":"/team-access/org-projects"},{"title":"Configure Single Sign-On","icon":"user-key","href":"/team-access/sso"}]},{"group":"Other Capabilities","pages":[{"title":"Enterprise","icon":"suitcase","hidden":true,"href":"/other-capabilities/enterprise"},{"title":"Billing \u0026 Consumption","icon":"money-bill","href":"/other-capabilities/billing-new"},{"title":"Prompt presets","sidebarTitle":"Prompt presets","icon":"file-pen","href":"/utilities/prompt-presets"},{"title":"Support tickets: sending questions, bug reports and feature requests ","hidden":true,"href":"/utilities/support-tickets-sending"},{"icon":{"name":"bell","style":"regular","library":"fontawesome"},"title":"Notifications and Subscription","href":"/notifications-and-subscription"}]},{"group":"Integrations","pages":[{"title":"Overview","icon":"book-open-lines","href":"/integrations/overview"}]},{"group":"Platform Notices","pages":[{"group":"Deprecations","icon":"bullhorn","pages":[{"title":"Model Deprecations: December 2026","sidebarTitle":"December 2026","href":"/model-deprecations-december-2026"},{"title":"Model Deprecations: November 2026","sidebarTitle":"November 2026","href":"/november-2026-deprecation-notice"},{"title":"Model Deprecations: August 2026","sidebarTitle":"August 2026","href":"/august-2026-deprecation-notice"},{"title":"Model Deprecations: June 2026","sidebarTitle":"June 2026","href":"/june-2026-deprecation-notice"}]}]}]},{"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","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","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","groups":[{"group":"Legal documents","pages":[{"title":"Terms of Service","href":"/legal/terms-of-service"},{"title":"Privacy Policy","url":"https://docs.nebius.com/legal/privacy","href":"/legal/privacy-policy"},{"title":"Data Processing Agreement","url":"https://docs.nebius.com/legal/dpa","href":"/legal/dpa"},{"title":"List of Sub-Processors","url":"https://docs.nebius.com/legal/sub-processors_tofa","href":"/legal/subprocessors"},{"title":"Legal Quick Guide","href":"/legal/legal-quick-guide"},{"title":"HIPAA \u0026 BAA Support for Nebius Token Factory","url":"https://docs.nebius.com/legal/hipaa","href":"/legal/hipaa-guideline"}]}]},{"tab":"Cookbook","groups":[{"group":"Cookbook","pages":[{"title":"Nebius Token Factory Cookbook","href":"/cookbook/overview"}]}]}]},"basePath":"","title":"Crew AI - Nebius Token Factory documentation","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}