1"use strict";(self.webpackChunkmastra_docs=self.webpackChunkmastra_docs||[]).push([["16210"],{56804(n,e,t){t.r(e),t.d(e,{metadata:()=>a,default:()=>c,frontMatter:()=>i,contentTitle:()=>d,toc:()=>r,assets:()=>l});var a=JSON.parse('{"id":"providers/umans-ai-coding-plan","title":"Umans AI Coding Plan Models: IDs, Context & Usage","description":"Browse Umans AI Coding Plan model IDs, capabilities, and context windows. Learn how to use them in TypeScript with Mastra\'s model router.","source":"@site/src/content/en/models/providers/umans-ai-coding-plan.mdx","sourceDirName":"providers","slug":"/providers/umans-ai-coding-plan","permalink":"/models/providers/umans-ai-coding-plan","draft":false,"unlisted":false,"editUrl":"https://github.com/mastra-ai/mastra/tree/main/docs/src/content/en/models/providers/umans-ai-coding-plan.mdx","tags":[],"version":"current","frontMatter":{"title":"Umans AI Coding Plan Models: IDs, Context & Usage","description":"Browse Umans AI Coding Plan model IDs, capabilities, and context windows. Learn how to use them in TypeScript with Mastra\'s model router."},"sidebar":"modelsSidebar","previous":{"title":"Umans AI","permalink":"/models/providers/umans-ai"},"next":{"title":"UnoRouter","permalink":"/models/providers/unorouter"}}'),o=t(74848),s=t(28453);let i={title:"Umans AI Coding Plan Models: IDs, Context & Usage",description:"Browse Umans AI Coding Plan model IDs, capabilities, and context windows. Learn how to use them in TypeScript with Mastra's model router."},d="Umans AI Coding Plan",l={},r=[{value:"Models",id:"models",level:2},{value:"Advanced configuration",id:"advanced-configuration",level:2},{value:"Custom headers",id:"custom-headers",level:3},{value:"Dynamic model selection",id:"dynamic-model-selection",level:3}];function u(n){let e={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",...(0,s.R)(),...n.components},{ProviderModelsTable:t}=e;return t||function(n,e){throw Error("Expected "+(e?"component":"object")+" `"+n+"` to be defined: you likely forgot to import, pass, or provide it.")}("ProviderModelsTable",!0),(0,o.jsxs)(o.Fragment,{children:["\n",(0,o.jsx)(e.header,{children:(0,o.jsxs)(e.h1,{id:"umans-ai-coding-plan",children:[(0,o.jsx)("img",{src:"https://models.dev/logos/umans-ai-coding-plan.svg",alt:"Umans AI Coding Plan logo",className:"inline w-8 h-8 mr-2 align-middle dark:invert dark:brightness-0 dark:contrast-200"}),"Umans AI Coding Plan"]})}),"\n",(0,o.jsxs)(e.p,{children:["Access 7 Umans AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the ",(0,o.jsx)(e.code,{children:"UMANS_AI_CODING_PLAN_API_KEY"})," environment variable."]}),"\n",(0,o.jsxs)(e.p,{children:["Learn more in the ",(0,o.jsx)(e.a,{href:"https://app.umans.ai/offers/code/docs",children:"Umans AI Coding Plan documentation"}),"."]}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-bash",metastring:'title=".env"',children:"UMANS_AI_CODING_PLAN_API_KEY=your-api-key\n"})}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-typescript",metastring:'title="src/mastra/agents/my-agent.ts" {7}',children:'import { Agent } from "@mastra/core/agent";\n\nconst agent = new Agent({\n id: "my-agent",\n name: "My Agent",\n instructions: "You are a helpful assistant",\n model: "umans-ai-coding-plan/umans-coder"\n});\n\n// Generate a response\nconst response = await agent.generate("Hello!");\n\n// Stream a response\nconst stream = await agent.stream("Tell me a story");\nfor await (const chunk of stream) {\n console.log(chunk);\n}\n'})}),"\n",(0,o.jsx)(e.admonition,{type:"note",children:(0,o.jsxs)(e.p,{children:["Mastra uses the OpenAI-compatible ",(0,o.jsx)(e.code,{children:"/chat/completions"})," endpoint. Some provider-specific features may not be available. Check the ",(0,o.jsx)(e.a,{href:"https://app.umans.ai/offers/code/docs",children:"Umans AI Coding Plan documentation"})," for details."]})}),"\n",(0,o.jsx)(e.h2,{id:"models",children:"Models"}),"\n",(0,o.jsx)(t,{models:[{model:"umans-ai-coding-plan/umans-coder",imageInput:!0,audioInput:!1,videoInput:!0,toolUsage:!0,reasoning:!0,contextWindow:1048576,maxOutput:131071,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-deepseek-v4-flash-0731",imageInput:!1,audioInput:!1,videoInput:!1,toolUsage:!0,reasoning:!0,contextWindow:1048576,maxOutput:393215,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-deepseek-v4-pro-0813",imageInput:!1,audioInput:!1,videoInput:!1,toolUsage:!0,reasoning:!0,contextWindow:1048576,maxOutput:393215,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-flash",imageInput:!0,audioInput:!1,videoInput:!1,toolUsage:!0,reasoning:!0,contextWindow:262144,maxOutput:262144,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-glm-5.3-flash",imageInput:!0,audioInput:!1,videoInput:!0,toolUsage:!0,reasoning:!0,contextWindow:1048576,maxOutput:131071,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-kimi-k3",imageInput:!0,audioInput:!1,videoInput:!1,toolUsage:!0,reasoning:!0,contextWindow:1048576,maxOutput:131072,inputCost:null,outputCost:null},{model:"umans-ai-coding-plan/umans-qwen3.6-35b-a3b",imageInput:!0,audioInput:!1,videoInput:!1,toolUsage:!0,reasoning:!0,contextWindow:262144,maxOutput:262144,inputCost:null,outputCost:null}]}),"\n",(0,o.jsxs)(e.p,{children:["Model availability, capabilities, context windows, and pricing are sourced from ",(0,o.jsx)(e.a,{href:"https://models.dev",children:"models.dev"})," and may change."]}),"\n",(0,o.jsx)(e.h2,{id:"advanced-configuration",children:"Advanced configuration"}),"\n",(0,o.jsx)(e.h3,{id:"custom-headers",children:"Custom headers"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-typescript",metastring:'title="src/mastra/agents/my-agent.ts"',children:'const agent = new Agent({\n id: "custom-agent",\n name: "custom-agent",\n model: {\
1n url: "https://api.code.umans.ai/v1",\n id: "umans-ai-coding-plan/umans-coder",\n apiKey: process.env.UMANS_AI_CODING_PLAN_API_KEY,\n headers: {\n "X-Custom-Header": "value"\n }\n }\n});\n'})}),"\n",(0,o.jsx)(e.h3,{id:"dynamic-model-selection",children:"Dynamic model selection"}),"\n",(0,o.jsx)(e.pre,{children:(0,o.jsx)(e.code,{className:"language-typescript",metastring:'title="src/mastra/agents/my-agent.ts"',children:'const agent = new Agent({\n id: "dynamic-agent",\n name: "Dynamic Agent",\n model: ({ requestContext }) => {\n const useAdvanced = requestContext.task === "complex";\n return useAdvanced\n ? "umans-ai-coding-plan/umans-qwen3.6-35b-a3b"\n : "umans-ai-coding-plan/umans-coder";\n }\n});\n'})})]})}function c(n={}){let{wrapper:e}={...(0,s.R)(),...n.components};return e?(0,o.jsx)(e,{...n,children:(0,o.jsx)(u,{...n})}):u(n)}},28453(n,e,t){t.d(e,{R:()=>i,x:()=>d});var a=t(96540);let o={},s=a.createContext(o);function i(n){let e=a.useContext(s);return a.useMemo(function(){return"function"==typeof n?n(e):{...e,...n}},[e,n])}function d(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:i(n.components),a.createElement(s.Provider,{value:e},n.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.