Accepts requests inline — no separate file upload step required.
Model and provider are resolved from body.model across all requests;
all requests must target the same model.
Returns 429 (batch_limit_exceeded) if the owner already has 10 or more
batches in a non-terminal state.
Returns 501 (not_implemented) if the resolved provider doesn’t support batch.
Enter your MeshAPI key (rsk_...) or, for the admin-keys endpoints, a dashboard session token — sent as Authorization: Bearer <token>.
Headers
X-Mesh-Version
enum<string>
default:2026-08
Dated version of the API contract to pin this request to. Omit it and the request is served under 2026-08 — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with 400 invalid_api_version rather than falling back silently. The version actually served is echoed as X-Mesh-Version on every response, including errors.
Available options:
2026-08,
2026-09,
2026-11,
2026-11-12
Body
application/json
requests
BatchRequestItem · object[]
required
Minimum array length: 1
Show child attributes
completion_window
string
default:24h
metadata
Metadata · object | null
provider
string | null
Pin this request to one upstream provider, e.g. bedrock. The request is served by that provider or refused — never routed elsewhere. See GET /v1/providers/pinnable for the slugs this deployment accepts.
tags
Tags · object | null
Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.
Show child attributes
Example:
{ "env": "prod", "feature": "summariser" }
safety_identifier
string | null
A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated user field. Use an opaque id, not an email address or a name.
{"docsConfig":{"theme":"almond","$schema":"https://mintlify.com/docs.json","name":"Mesh API","description":"One key, all AI models. The unified gateway for your AI infrastructure.","colors":{"primary":"#7C6DFA","light":"#9D91FC","dark":"#7C6DFA"},"logo":{"light":"https://mintcdn.com/meshapi/sQNc2eoy3Yx6MrBO/logo/light.svg?fit=max\u0026auto=format\u0026n=sQNc2eoy3Yx6MrBO\u0026q=85\u0026s=36fe9d501df415b719e7da15959b36b6","dark":"https://mintcdn.com/meshapi/sQNc2eoy3Yx6MrBO/logo/dark.svg?fit=max\u0026auto=format\u0026n=sQNc2eoy3Yx6MrBO\u0026q=85\u0026s=411f4d038a8dbf667d66460a9e4aae42"},"favicon":"https://mintcdn.com/meshapi/sQNc2eoy3Yx6MrBO/favicon.svg?fit=max\u0026auto=format\u0026n=sQNc2eoy3Yx6MrBO\u0026q=85\u0026s=c47294b9c052ace1bf68a9f020dd5f83","appearance":{"default":"system"},"navbar":{"links":[{"href":"mailto:contact@meshapi.ai","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.meshapi.ai"}},"footer":{"socials":{"website":"https://meshapi.ai"}},"contextual":{"options":["copy","view",{"title":"Open in AI Fiesta","description":"Ask questions about this page","icon":"https://chat.aifiesta.ai/static/images/logo/transparent-logo.svg","href":{"base":"https://chat.aifiesta.ai","query":[{"key":"q","value":"Read from https://developers.meshapi.ai$path so I can ask questions about it."}]}},"chatgpt","claude","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"meshapi","hasAudioNarration":false,"actualSubdomain":"meshapi","customDomains":["developers.meshapi.ai"],"gitSource":{"type":"github","owner":"aifiesta","repo":"mesh-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6b0f3809981b9bfa4a5dfefb","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"API Reference","count":111},{"language":"default","tag":"Endpoints","count":110},{"language":"default","tag":"Documentation","count":58},{"language":"default","tag":"Troubleshooting","count":17},{"language":"default","tag":"SDKs","count":16},{"language":"default","tag":"SDK Reference","count":16},{"language":"default","tag":"Mesh API","count":15},{"language":"default","tag":"Logs","count":15},{"language":"default","tag":"Core Inference","count":14},{"language":"default","tag":"Templates","count":14}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"assets/docs-assistant.css","content":"#mesh-assistant-root{--primary: #7c6dfa;--primary-foreground: #ffffff;--accent: initial;--accent-foreground: initial;--border: initial;--destructive: initial;--input: initial;--muted: initial;--muted-foreground: initial;--popover: initial;--popover-foreground: initial;--ring: initial}"},{"filePath":"assets/performance.css","content":"@font-face{font-family:\"Geist\";src:url(\"/assets/fonts/Geist-Variable.woff2\") format(\"woff2\");font-weight:100 900;font-display:swap}@font-face{font-family:\"Geist Mono\";src:url(\"/assets/fonts/GeistMono-Variable.woff2\") format(\"woff2\");font-weight:100 900;font-display:swap}:root{--mp-sans: \"Geist\", ui-sans-serif, system-ui, -apple-system, sans-serif;--mp-mono: \"Geist Mono\", ui-monospace, \"SF Mono\", Menlo, monospace;--mp-s1: #6a5cf0;--mp-s2: #e0662b;--mp-muted: #c4c3cc;--mp-faint: #e6e5ea;--mp-line: rgba(15, 15, 20, 0.09);--mp-line-2: rgba(15, 15, 20, 0.05);--mp-panel: rgba(15, 15, 20, 0.025);--mp-ink-2: rgba(15, 15, 20, 0.66);--mp-ink-3: rgba(15, 15, 20, 0.46);--mp-surface: rgb(var(--background-light, 255 255 255))}html.dark{--mp-s1: #9085e9;--mp-s2: #d95926;--mp-muted: #5a5963;--mp-faint: #34333a;--mp-line: rgba(255, 255, 255, 0.1);--mp-line-2: rgba(255, 255, 255, 0.05);--mp-panel: rgba(255, 255, 255, 0.035);--mp-ink-2: rgba(255, 255, 255, 0.68);--mp-ink-3: rgba(255, 255, 255, 0.46);--mp-surface: rgb(var(--background-dark, 15 17 23))}html[data-current-path^=\"/performance\"] #content-container,html[data-current-path^=\"/performance\"] #table-of-contents{font-family:var(--mp-sans)}html[data-current-path^=\"/performance\"] #page-title{letter-spacing:-0.03em;font-weight:700}html[data-current-path^=\"/performance\"] .mdx-content{counter-reset:mp-sec}html[data-current-path^=\"/performance\"] .mdx-content>h2{counter-increment:mp-sec;border-top:1px solid var(--mp-line);padding-top:1.4rem;margin-top:3.5rem;letter-spacing:-0.02em}html[data-current-path^=\"/performance\"] .mdx-content>h2::before{content:counter(mp-sec, decimal-leading-zero);font-family:var(--mp-mono);font-size:0.75rem;font-weight:500;color:var(--mp-ink-3);margin-right:0.85rem;vertical-align:0.3em}html[data-current-path^=\"/performance\"] .mdx-content table{font-variant-numeric:tabular-nums}html[data-current-path^=\"/performance\"] .mdx-content table td{min-width:0}html[data-current-path^=\"/performance\"] .mdx-content td code,html[data-current-path^=\"/performance\"] .mdx-content p code{font-family:var(--mp-mono)}.mesh-perf-num{font-family:var(--mp-mono);font-variant-numeric:tabular-nums}.mesh-perf-hero{display:grid;grid-template-columns:1.35fr 1fr 1fr 1fr;border:1px solid var(--mp-line);border-radius:16px;margin:0.5rem 0 0.75rem;overflow:hidden}.mesh-perf-tile{padding:1.25rem 1.2rem 1.1rem;border-left:1px solid var(--mp-line);min-width:0}.mesh-perf-tile:first-child{border-left:0}.mesh-perf-k{font-size:0.78rem;font-weight:500;color:var(--mp-ink-2);line-height:1.3}.mesh-perf-v{font-family:var(--mp-mono);font-variant-numeric:tabular-nums;font-weight:600;font-size:1.85rem;letter-spacing:-0.04em;line-height:1.15;margin:0.5rem 0 0.35rem;white-space:nowrap}.mesh-perf-tile:first-child .mesh-perf-v{font-size:3rem;color:var(--mp-s1)}.mesh-perf-v small{font-size:0.45em;font-weight:500;color:var(--mp-ink-3);letter-spacing:0;margin-left:0.2rem}.mesh-perf-s{font-size:0.76rem;color:var(--mp-ink-3);line-height:1.4}.mesh-perf-source{font-size:0.8rem;color:var(--mp-ink-3)}@container columns-container (max-width: 640px){.mesh-perf-hero{grid-template-columns:1fr 1fr}.mesh-perf-tile:nth-child(3){border-left:0}.mesh-perf-tile:nth-child(n+3){border-top:1px solid var(--mp-line)}}.mesh-perf-findings{display:grid;grid-template-columns:repeat(auto-fit, minmax(190px, 1fr));gap:0.75rem;margin:1rem 0 1.5rem}.mesh-perf-finding{padding:1rem 1.1rem;border-radius:12px;background:var(--mp-panel)}.mesh-perf-finding b{display:block;font-size:0.9rem;margin-bottom:0.25rem}.mesh-perf-finding span{display:block;font-size:0.84rem;color:var(--mp-ink-2);line-height:1.5}.mesh-perf-steps{display:grid;grid-template-columns:repeat(3, 1fr);gap:1px;background:var(--mp-line);border:1px solid var(--mp-line);border-radius:14px;overflow:hidden;margin:1rem 0 1.5rem}.mesh-perf-step{background:var(--mp-surface);padding:1rem 1.05rem}.mesh-perf-step i{display:block;font-style:normal;font-family:var(--mp-mono);font-size:0.7rem;color:var(--mp-ink-3)}.mesh-perf-step b{display:block;font-size:0.9rem;margin:0.2rem 0}.mesh-perf-step span{display:block;font-size:0.8rem;color:var(--mp-ink-2);line-height:1.45;margin-bottom:0.45rem}.mesh-perf-step a{font-size:0.78rem;border-bottom:0!important;color:var(--mp-s1)!important;font-weight:500}@container columns-container (max-width: 640px){.mesh-perf-steps{grid-template-columns:1fr 1fr}}.mesh-perf-spec{display:grid;grid-template-columns:150px 1fr;margin:1rem 0 1.5rem;border-top:1px solid var(--mp-line)}.mesh-perf-spec>div{display:contents}.mesh-perf-spec span{padding:0.65rem 0;border-bottom:1px solid var(--mp-line);font-size:0.88rem}.mesh-perf-spec span:first-child{color:var(--mp-ink-3);padding-right:1rem}@container columns-container (max-width: 380px){.mesh-perf-spec{grid-template-columns:1fr}.mesh-perf-spec span:first-child{border-bottom:0;padding-bottom:0}}.mesh-chart{border:1px solid var(--mp-line);border-radius:14px;padding:1.15rem 1.3rem 1rem;margin:1.25rem 0 0.75rem;font-family:var(--mp-sans)}.mpc-title{font-size:0.95rem;font-weight:600;letter-spacing:-0.01em}.mpc-note{font-size:0.8rem;color:var(--mp-ink-3);margin:0.1rem 0 0.9rem}.mpc-legend{display:flex;flex-wrap:wrap;align-items:center;gap:0.35rem 1.1rem;font-size:0.78rem;color:var(--mp-ink-2);margin-bottom:0.75rem}.mpc-leg-item{display:inline-flex;align-items:center;gap:0.45rem}.mpc-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.mpc-key{margin-left:auto;display:inline-flex;gap:0.9rem;color:var(--mp-ink-3);font-family:var(--mp-mono);font-size:0.72rem}.mpc-key>span{display:inline-flex;align-items:center;gap:0.35rem}.mpc-key i{display:inline-block;border-radius:50%;border:2px solid currentColor}.mpc-k-p50{width:9px;height:9px;background:currentColor}.mpc-k-p90{width:6px;height:6px;background:currentColor;border-width:0!important}.mpc-k-p99{width:9px;height:9px}.mpc-rrow,.mpc-srow{display:grid;grid-template-columns:132px 1fr;align-items:center;padding:0.55rem 0;border-top:1px solid var(--mp-line-2);position:relative}.mpc-rows>:first-child{border-top:0}.mpc-srow{grid-template-columns:132px 1fr 56px;gap:0 0.5rem}.mpc-hot{background:linear-gradient(90deg, color-mix(in srgb, var(--mp-s2) 8%, transparent), transparent 75%);margin:0 -1.3rem;padding-left:1.3rem;padding-right:1.3rem}.mpc-lab b{display:block;font-size:0.86rem;font-weight:600;line-height:1.3}.mpc-lab span{display:block;font-family:var(--mp-mono);font-size:0.7rem;color:var(--mp-ink-3)}.mpc-lanes{position:relative;height:38px}.mpc-grid{position:absolute;top:-0.55rem;bottom:-0.55rem;width:1px;background:var(--mp-line-2)}.mpc-lane{position:absolute;top:2px;left:0;right:0;height:16px;cursor:default}.mpc-lane+.mpc-lane{top:20px}.mpc-line{position:absolute;top:7px;height:2px;border-radius:2px;background:currentColor;opacity:0.4}.mpc-mark{position:absolute;border-radius:50%;background:currentColor;transform:translateX(-50%)}.mpc-p50{top:2px;width:12px;height:12px;box-shadow:0 0 0 2px var(--mp-surface)}.mpc-p90{top:5px;width:6px;height:6px}.mpc-p99{top:2px;width:12px;height:12px;background:var(--mp-surface);border:2px solid currentColor}.mpc-axis{display:grid;grid-template-columns:132px 1fr;margin-top:0.3rem}.mpc-ticks{position:relative;height:1.1rem;font-family:var(--mp-mono);font-size:0.68rem;color:var(--mp-ink-3)}.mpc-ticks span{position:absolute;transform:translateX(-50%);white-space:nowrap}.mpc-ticks span:first-child{transform:none}.mpc-seg-bar{display:flex;gap:2px;height:20px}.mpc-seg{height:100%;min-width:2px}.mpc-seg:first-child{border-radius:5px 0 0 5px}.mpc-seg:last-child{border-radius:0 5px 5px 0}.mpc-meter{height:20px;border-radius:5px;background:var(--mp-faint);overflow:hidden}.mpc-fill{height:100%;border-radius:5px}.mpc-lead{text-align:right;font-family:var(--mp-mono);font-variant-numeric:tabular-nums;font-weight:600;font-size:0.84rem;color:var(--mp-s1)}.mpc-lead-plain{color:inherit}.mpc-tip{position:fixed;z-index:60;pointer-events:none;opacity:0;transition:opacity 0.1s;background:#141416;color:#f4f4f5;font-family:var(--mp-mono);font-size:0.72rem;padding:0.45rem 0.6rem;border-radius:7px;white-space:nowrap}.mpc-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media (max-width: 640px){.mpc-rrow,.mpc-axis{grid-template-columns:96px 1fr}.mpc-srow{grid-template-columns:96px 1fr 48px}}"}]}
{"page":{"pagePath":"api/batch/create-batch","slug":"/api/batch/create-batch","pageMetadata":{"title":"Create Batch","description":"Create a batch job.\n\nAccepts requests inline — no separate file upload step required.\nModel and provider are resolved from `body.model` across all requests;\nall requests must target the same model.\n\nReturns 429 (batch_limit_exceeded) if the owner already has 10 or more\nbatches in a non-terminal state.\nReturns 501 (not_implemented) if the resolved provider doesn't support batch.","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/batches","href":"/api/batch/create-batch","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 p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a batch job.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Accepts requests inline — no separate file upload step required.\\nModel and provider are resolved from \", _jsx(_components.code, {\n children: \"body.model\"\n }), \" across all requests;\\nall requests must target the same model.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Returns 429 (batch_limit_exceeded) if the owner already has 10 or more\\nbatches in a non-terminal state.\\nReturns 501 (not_implemented) if the resolved provider doesn’t support batch.\"\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":"Create Batch","description":"Create a batch job.\n\nAccepts requests inline — no separate file upload step required.\nModel and provider are resolved from `body.model` across all requests;\nall requests must target the same model.\n\nReturns 429 (batch_limit_exceeded) if the owner already has 10 or more\nbatches in a non-terminal state.\nReturns 501 (not_implemented) if the resolved provider doesn't support batch.","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/batches","href":"/api/batch/create-batch","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/meshapi/a0645baa84a1b38a/assets/docs-assistant.js","/_mintlify/custom/meshapi/adbd35e912821db4/assets/performance-charts.js","/_mintlify/custom/meshapi/c9814548a74dfc23/assets/performance-data.js"],"openApiReferenceData":{"operation":{"tags":["Batch"],"summary":"Create Batch","description":"Create a batch job.\n\nAccepts requests inline — no separate file upload step required.\nModel and provider are resolved from `body.model` across all requests;\nall requests must target the same model.\n\nReturns 429 (batch_limit_exceeded) if the owner already has 10 or more\nbatches in a non-terminal state.\nReturns 501 (not_implemented) if the resolved provider doesn't support batch.","operationId":"create_batch","requestBody":"b9428a68-2332-4d09-8be8-b77acb9d0292","responses":{"200":"27fafde8-a223-4d52-b79c-bc2659e1bc5a","422":"00f172d9-7415-4deb-8496-ff5705817cf5"},"security":["7c0c97c9-12ce-49b6-a880-b309a51e1a3d"],"parameters":["e18b3427-b63b-453c-883a-eda64d46f33f"],"method":"post","type":"path","servers":["d6a570e9-9fa2-4d57-a181-eec60007fa02"],"path":"/v1/batches","baseUrlOptions":["https://api.meshapi.ai"],"title":"Create Batch","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e18b3427-b63b-453c-883a-eda64d46f33f":{"in":"header","name":"X-Mesh-Version","required":false,"schema":{"type":"string","enum":["2026-08","2026-09","2026-11","2026-11-12"],"default":"2026-08","isRequired":false,"description":"Dated version of the API contract to pin this request to. Omit it and the request is served under `2026-08` — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with `400 invalid_api_version` rather than falling back silently. The version actually served is echoed as `X-Mesh-Version` on every response, including errors.","uniqueKey":"","typeLabel":"enum\u003cstring>"},"example":"2026-11-12","description":"Dated version of the API contract to pin this request to. Omit it and the request is served under `2026-08` — the oldest supported version, so an existing integration is never moved by a release. A malformed or unsupported value is rejected with `400 invalid_api_version` rather than falling back silently. The version actually served is echoed as `X-Mesh-Version` on every response, including errors."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"requests":{"items":{"properties":{"custom_id":{"type":"string","title":"Custom Id","isRequired":true,"uniqueKey":"requests.items.[INDEX].custom_id","typeLabel":"string"},"body":{"additionalProperties":true,"type":"object","title":"Body","isRequired":true,"uniqueKey":"requests.items.[INDEX].body","typeLabel":"Body · object"},"method":{"type":"string","title":"Method","default":"POST","uniqueKey":"requests.items.[INDEX].method","typeLabel":"string"},"url":{"type":"string","title":"Url","default":"/v1/chat/completions","uniqueKey":"requests.items.[INDEX].url","typeLabel":"string"}},"type":"object","required":["custom_id","body"],"title":"BatchRequestItem","uniqueKey":"requests.items.[INDEX]","typeLabel":"BatchRequestItem · object"},"type":"array","minItems":1,"title":"Requests","isRequired":true,"uniqueKey":"requests","typeLabel":"BatchRequestItem · object[]"},"completion_window":{"type":"string","title":"Completion Window","default":"24h","uniqueKey":"completion_window","typeLabel":"string"},"metadata":{"oneOf":[{"type":"object","title":"Metadata","additionalProperties":true,"uniqueKey":"metadata.oneOf.0","typeLabel":"Metadata · object"},{"type":"null","title":"Metadata","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"Metadata · object | null"},"provider":{"oneOf":[{"type":"string","title":"Provider","description":"Pin this request to one upstream provider, e.g. `bedrock`. The request is served by that provider or refused — never routed elsewhere. See `GET /v1/providers/pinnable` for the slugs this deployment accepts.","uniqueKey":"provider.oneOf.0","typeLabel":"string"},{"type":"null","title":"Provider","description":"Pin this request to one upstream provider, e.g. `bedrock`. The request is served by that provider or refused — never routed elsewhere. See `GET /v1/providers/pinnable` for the slugs this deployment accepts.","uniqueKey":"provider.oneOf.1","typeLabel":"null"}],"uniqueKey":"provider","typeLabel":"string | null"},"tags":{"oneOf":[{"type":"object","title":"Tags","description":"Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.","example":{"env":"prod","feature":"summariser"},"additionalProperties":{"type":"string","uniqueKey":"tags.oneOf.0.additionalProperties","typeLabel":"string"},"uniqueKey":"tags.oneOf.0","typeLabel":"Tags · object"},{"type":"null","title":"Tags","description":"Your own labels for this request, echoed back on the usage row and available as a filter and a group-by dimension in the usage API. String keys to string values. Never put personal or sensitive data here — tags are stored with the usage record and are not redacted.","example":{"env":"prod","feature":"summariser"},"uniqueKey":"tags.oneOf.1","typeLabel":"null"}],"uniqueKey":"tags","typeLabel":"Tags · object | null"},"safety_identifier":{"oneOf":[{"type":"string","title":"Safety Identifier","description":"A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated `user` field. Use an opaque id, not an email address or a name.","maxLength":256,"uniqueKey":"safety_identifier.oneOf.0","typeLabel":"string"},{"type":"null","title":"Safety Identifier","description":"A stable, anonymised identifier for the end user making this request, recorded on the usage row and available as a filter and a group-by dimension in the usage API. Supersedes the deprecated `user` field. Use an opaque id, not an email address or a name.","uniqueKey":"safety_identifier.oneOf.1","typeLabel":"null"}],"uniqueKey":"safety_identifier","typeLabel":"string | null"}},"type":"object","required":["requests"],"title":"CreateBatchRequest","example":{"completion_window":"24h","metadata":{"job_name":"my-batch-job"},"requests":[{"body":{"max_tokens":200,"messages":[{"content":"Summarize: Small sample text...","role":"user"}],"model":"openai/gpt-4o-mini","temperature":0.2},"custom_id":"item-1","method":"POST","url":"/v1/chat/completions"},{"body":{"messages":[{"content":"Translate to French: Hello world","role":"user"}],"model":"openai/gpt-4o-mini"},"custom_id":"item-2","method":"POST","url":"/v1/chat/completions"}]},"uniqueKey":"","typeLabel":"CreateBatchRequest · object"},"examples":{"default":{"title":"default","summary":"Example request","value":{"requests":[{"custom_id":"item-1","method":"POST","url":"/v1/chat/completions","body":{"model":"openai/gpt-5.4","messages":[{"role":"user","content":"Summarize the following text: Small sample text..."}],"max_tokens":200,"temperature":0.2}},{"custom_id":"item-2","method":"POST","url":"/v1/chat/completions","body":{"model":"openai/gpt-5.4","messages":[{"role":"user","content":"Translate to French: Hello world"}]}}],"completion_window":"24h","metadata":{"job_name":"nightly-support-summaries"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"27fafde8-a223-4d52-b79c-bc2659e1bc5a":{"description":"Batch job created","content":{"application/json":{"schema":{},"examples":{"default":{"title":"default","summary":"Successful batch creation response","value":{"id":"batch_6a46708ba644819099dacb31e0339a86","object":"batch","endpoint":"/v1/chat/completions","input_file_id":"file-2LvNxHkyRFbSPcLEnEdHW9","completion_window":"24h","status":"validating","created_at":1783001227,"expires_at":1783087627,"request_counts":{"total":0,"completed":0,"failed":0},"usage":{"input_tokens":0,"output_tokens":0,"total_tokens":0,"input_tokens_details":{"cached_tokens":0},"output_tokens_details":{"reasoning_tokens":0}},"metadata":{"job_name":"my-batch-job"}}}},"exampleType":"examples"}},"exampleType":"examples"},"00f172d9-7415-4deb-8496-ff5705817cf5":{"description":"Validation Error","content":{"application/json":{"schema":{"properties":{"detail":{"items":{"properties":{"loc":{"items":{"oneOf":[{"type":"string","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"integer","uniqueKey":"detail.items.[INDEX].loc.items.[INDEX].oneOf.1","typeLabel":"integer"}],"uniqueKey":"detail.items.[INDEX].loc.items.[INDEX]","typeLabel":"string | integer"},"type":"array","title":"Location","isRequired":true,"uniqueKey":"detail.items.[INDEX].loc","typeLabel":"(string | integer)[]"},"msg":{"type":"string","title":"Message","isRequired":true,"uniqueKey":"detail.items.[INDEX].msg","typeLabel":"string"},"type":{"type":"string","title":"Error Type","isRequired":true,"uniqueKey":"detail.items.[INDEX].type","typeLabel":"string"},"input":{"oneOf":[{"title":"Input"}],"uniqueKey":"detail.items.[INDEX].input","typeLabel":"any"},"ctx":{"type":"object","title":"Context","uniqueKey":"detail.items.[INDEX].ctx","typeLabel":"Context · object"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError","uniqueKey":"detail.items.[INDEX]","typeLabel":"ValidationError · object"},"type":"array","title":"Detail","uniqueKey":"detail","typeLabel":"ValidationError · object[]"}},"type":"object","title":"HTTPValidationError","uniqueKey":"","typeLabel":"HTTPValidationError · object"},"examples":{"Example":{"title":"Example","value":{"detail":[{"loc":["\u003cstring>"],"msg":"\u003cstring>","type":"\u003cstring>","input":"\u003cunknown>","ctx":{}}]}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"7c0c97c9-12ce-49b6-a880-b309a51e1a3d":{"BearerAuth":{"type":"http","scheme":"bearer","description":"Enter your MeshAPI key (`rsk_...`) or, for the admin-keys endpoints, a dashboard session token — sent as `Authorization: Bearer \u003ctoken>`.","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"d6a570e9-9fa2-4d57-a181-eec60007fa02":{"url":"https://api.meshapi.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Enter your MeshAPI key (`rsk_...`) or, for the admin-keys endpoints, a dashboard session token — sent as `Authorization: Bearer \u003ctoken>`.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Enter your MeshAPI key (`rsk_...`) or, for the admin-keys endpoints, a dashboard session token — sent as `Authorization: Bearer \u003ctoken>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api/openapi.json"},"subdomain":"meshapi","siteName":"Mesh API","title":"Create Batch - Mesh API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T21:12:04.706Z","originalFileLocation":"api/batch/create-batch.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=\"Create a batch job. Accepts requests inline — no separate file upload step required. Model and provider are resolved from body.model across all requests; all requests must target the same model. Returns 429 (batch_limit_exceeded) if the owner already has 10 or more batches in a non-terminal state. Returns 501 (not_implemented) if the resolved provider doesn\u0026#x27;t support batch.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mesh API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_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/meshapi/hujnplAy9_MTdLYc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Batch - Mesh API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a batch job. Accepts requests inline — no separate file upload step required. Model and provider are resolved from body.model across all requests; all requests must target the same model. Returns 429 (batch_limit_exceeded) if the owner already has 10 or more batches in a non-terminal state. Returns 501 (not_implemented) if the resolved provider doesn\u0026#x27;t support batch.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mesh API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://developers.meshapi.ai/api/batch/create-batch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://meshapi.mintlify.site/_mintlify/api/og/v2?division=Batch\u0026amp;title=Create+Batch\u0026amp;description=Create+a+batch+job.%0A%0AAccepts+requests+inline+%E2%80%94+no+separate+file+upload+step+required.%0AModel+and+provider+are+resolved+from+%60body.model%60+across+all+requests%3B%0Aall\u0026amp;theme=5eba2a731da8698e520d2d7e\u0026amp;signature=885d245fb14e236953247ec90fec6b9b1905120d56c43faab3e1cd198df25210\">\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=\"Create Batch - Mesh API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a batch job. Accepts requests inline — no separate file upload step required. Model and provider are resolved from body.model across all requests; all requests must target the same model. Returns 429 (batch_limit_exceeded) if the owner already has 10 or more batches in a non-terminal state. Returns 501 (not_implemented) if the resolved provider doesn\u0026#x27;t support batch.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://meshapi.mintlify.site/_mintlify/api/og/v2?division=Batch\u0026amp;title=Create+Batch\u0026amp;description=Create+a+batch+job.%0A%0AAccepts+requests+inline+%E2%80%94+no+separate+file+upload+step+required.%0AModel+and+provider+are+resolved+from+%60body.model%60+across+all+requests%3B%0Aall\u0026amp;theme=5eba2a731da8698e520d2d7e\u0026amp;signature=885d245fb14e236953247ec90fec6b9b1905120d56c43faab3e1cd198df25210\">\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/meshapi/hujnplAy9_MTdLYc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mesh API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C6DFA\">\u003clink data-mint-head rel=\"canonical\" href=\"https://developers.meshapi.ai/api/batch/create-batch\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api/batch/create-batch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://developers.meshapi.ai/#organization\",\"name\":\"Mesh API\",\"url\":\"https://developers.meshapi.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/meshapi/sQNc2eoy3Yx6MrBO/logo/light.svg?fit=max\u0026auto=format\u0026n=sQNc2eoy3Yx6MrBO\u0026q=85\u0026s=36fe9d501df415b719e7da15959b36b6\"}},{\"@type\":\"WebSite\",\"@id\":\"https://developers.meshapi.ai#website\",\"name\":\"Mesh API\",\"url\":\"https://developers.meshapi.ai\",\"publisher\":{\"@id\":\"https://developers.meshapi.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://developers.meshapi.ai/api/batch/create-batch#webpage\",\"url\":\"https://developers.meshapi.ai/api/batch/create-batch\",\"name\":\"Create Batch\",\"description\":\"Create a batch job. Accepts requests inline — no separate file upload step required. Model and provider are resolved from body.model across all requests; all requests must target the same model. Returns 429 (batch_limit_exceeded) if the owner already has 10 or more batches in a non-terminal state. Returns 501 (not_implemented) if the resolved provider doesn't support batch.\",\"dateModified\":\"2026-12-01T21:12:04.706Z\",\"isPartOf\":{\"@id\":\"https://developers.meshapi.ai#website\"},\"breadcrumb\":{\"@id\":\"https://developers.meshapi.ai/api/batch/create-batch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://developers.meshapi.ai/api/batch/create-batch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://developers.meshapi.ai/api/chat/chat-completions\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch\",\"item\":\"https://developers.meshapi.ai/api/batch/list-batches\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create Batch\",\"item\":\"https://developers.meshapi.ai/api/batch/create-batch\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://developers.meshapi.ai/api/batch/create-batch#apireference\",\"headline\":\"Create Batch\",\"name\":\"Create Batch\",\"description\":\"Create a batch job. Accepts requests inline — no separate file upload step required. Model and provider are resolved from body.model across all requests; all requests must target the same model. Returns 429 (batch_limit_exceeded) if the owner already has 10 or more batches in a non-terminal state. Returns 501 (not_implemented) if the resolved provider doesn't support batch.\",\"url\":\"https://developers.meshapi.ai/api/batch/create-batch\",\"mainEntityOfPage\":{\"@id\":\"https://developers.meshapi.ai/api/batch/create-batch#webpage\"},\"dateModified\":\"2026-12-01T21:12:04.706Z\",\"publisher\":{\"@id\":\"https://developers.meshapi.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://developers.meshapi.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mesh API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Mesh API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api/batch/create-batch.md","siteName":"Mesh API","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book","pages":[{"title":"Documentation","href":""}]},{"tab":"Changelog","icon":"rss","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"API Reference","icon":"puzzle-piece","groups":[{"group":"Overview","pages":[{"title":"API reference","icon":"book","href":"/docs/reference/api-overview"}]},{"group":"Endpoints","pages":[{"group":"Chat","pages":[{"title":"Chat Completions","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/chat/completions","href":"/api/chat/chat-completions"},{"title":"Chat Compare","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/chat/compare","href":"/api/chat/chat-compare"}]},{"group":"Images","pages":[{"title":"Generate Image","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/images/generations","href":"/api/images/generate-image"},{"title":"Edit an image","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/images/edits","href":"/api/images/edit-an-image"}]},{"group":"Video","pages":[{"title":"List Video Generations","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/video/generations","href":"/api/video/list-video-generations"},{"title":"Generate Video","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/video/generations","href":"/api/video/generate-video"},{"title":"Create Video Edit","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/video/edits","href":"/api/video/create-video-edit"},{"title":"Text-to-video","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/video/t2v","href":"/api/video/text-to-video"},{"title":"Image-to-video","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/video/i2v","href":"/api/video/image-to-video"},{"title":"Video-to-video","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/video/v2v","href":"/api/video/video-to-video"},{"title":"Get Video Generation","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/video/generations/{task_id}","href":"/api/video/get-video-generation"}]},{"group":"Batch","pages":[{"title":"List Batches","description":"List batch jobs for the authenticated key's owner.\n\nReturns MeshAPI's own BatchJob records (unified view across all providers)\nin the OpenAI list format: `{\"object\": \"list\", \"data\": [...], \"has_more\": bool}`.\nSupports cursor-based pagination via `after` (batch_id) and `limit`.","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/batches","href":"/api/batch/list-batches"},{"title":"Create Batch","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/batches","href":"/api/batch/create-batch"},{"title":"Get Batch","description":"Get batch status from the upstream provider.\nUsage logging and billing fire automatically on the first terminal observation.\nWhen the batch is completed and has an output file, the response includes a\n`results` key with the parsed output (list of per-request response objects).","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/batches/{batch_id}","href":"/api/batch/get-batch"},{"title":"Cancel Batch","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/batches/{batch_id}/cancel","href":"/api/batch/cancel-batch"}]},{"group":"Responses","pages":[{"title":"Create Response","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/responses","href":"/api/responses/create-response"},{"title":"Count Response Input Tokens","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/responses/input_tokens","href":"/api/responses/count-response-input-tokens"}]},{"group":"Messages","pages":[{"title":"Create Message","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/messages","href":"/api/messages/create-message"},{"title":"Count Message Tokens","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/messages/count_tokens","href":"/api/messages/count-message-tokens"}]},{"group":"Embeddings","pages":[{"title":"Create Embeddings","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/embeddings","href":"/api/embeddings/create-embeddings"}]},{"group":"Moderations","pages":[{"title":"Classify content against the content policy","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/moderations","href":"/api/moderations/classify-content-against-the-content-policy"}]},{"group":"Evaluate","pages":[{"title":"Make a structured decision","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/evaluate","href":"/api/evaluate/make-a-structured-decision"}]},{"group":"Audio","pages":[{"title":"Create Speech","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/audio/speech","href":"/api/audio/create-speech"},{"title":"Create Transcription","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/audio/transcriptions","href":"/api/audio/create-transcription"},{"title":"Create Translation","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/audio/translations","href":"/api/audio/create-translation"},{"title":"Create Transcription Translate","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/audio/transcriptions/translate","href":"/api/audio/create-transcription-translate"},{"title":"List Voices","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/audio/voices","href":"/api/audio/list-voices"},{"title":"Get Voice","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/audio/voices/{voice_id}","href":"/api/audio/get-voice"}]},{"group":"Router","pages":[{"title":"Router Select","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/router/select","href":"/api/router/router-select"}]},{"group":"Keys","pages":[{"title":"Describe Key","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/keys/{key_id}","href":"/api/keys/describe-key"}]},{"group":"Admin Keys","pages":[{"title":"List Admin Keys","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/admin-keys","href":"/api/admin-keys/list-admin-keys"},{"title":"Create Admin Key","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/admin-keys","href":"/api/admin-keys/create-admin-key"},{"title":"Get Admin Key","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/admin-keys/{key_id}","href":"/api/admin-keys/get-admin-key"},{"title":"Revoke Admin Key","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/admin-keys/{key_id}","href":"/api/admin-keys/revoke-admin-key"},{"title":"Rotate Admin Key","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/admin-keys/{key_id}/rotate","href":"/api/admin-keys/rotate-admin-key"}]},{"group":"Balance","pages":[{"title":"Get Balance","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/balance","href":"/api/balance/get-balance"}]},{"group":"Errors","pages":[{"title":"Get Error Catalog","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/errors","href":"/api/errors/get-error-catalog"}]},{"group":"Usage","pages":[{"title":"Query Usage Summary","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/usage","href":"/api/usage/query-usage-summary"},{"title":"Query Usage Events","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/usage/events","href":"/api/usage/query-usage-events"},{"title":"Query Rejections","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/usage/rejections","href":"/api/usage/query-rejections"},{"title":"Get Request","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/usage/requests/{request_id}","href":"/api/usage/get-request"},{"title":"Get Run","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/usage/runs/{run_id}","href":"/api/usage/get-run"},{"title":"Get Usage Event Attempts","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/usage/events/{event_id}/attempts","href":"/api/usage/get-usage-event-attempts"},{"title":"Get Rate Limits","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/usage/rate-limits","href":"/api/usage/get-rate-limits"},{"title":"Get Spend Trend","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/usage/spend-trend","href":"/api/usage/get-spend-trend"}]},{"group":"Audit Logs","pages":[{"title":"List Audit Logs","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/audit-logs","href":"/api/audit-logs/list-audit-logs"},{"title":"Export Audit Logs Csv","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/audit-logs.csv","href":"/api/audit-logs/export-audit-logs-csv"}]},{"group":"Templates","pages":[{"title":"List Catalog","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates/catalog","href":"/api/templates/list-catalog"},{"title":"List Categories","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates/catalog/categories","href":"/api/templates/list-categories"},{"title":"Enable Template","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/templates/catalog/{template_id}/enable","href":"/api/templates/enable-template"},{"title":"Disable Template","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/templates/catalog/{template_id}/enable","href":"/api/templates/disable-template"},{"title":"List Templates","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates","href":"/api/templates/list-templates"},{"title":"Create Template","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/templates","href":"/api/templates/create-template"},{"title":"Get Template","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates/{template_id}","href":"/api/templates/get-template"},{"title":"Delete Template","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/templates/{template_id}","href":"/api/templates/delete-template"},{"title":"Update Template","deprecated":null,"version":null,"openapi":"/api/openapi.json patch /v1/templates/{template_id}","href":"/api/templates/update-template"},{"title":"List Versions","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates/{template_id}/versions","href":"/api/templates/list-versions"},{"title":"Save Version","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/templates/{template_id}/versions","href":"/api/templates/save-version"},{"title":"Get Version","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/templates/{template_id}/versions/{version_id}","href":"/api/templates/get-version"},{"title":"Publish Template","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/templates/{template_id}/publish","href":"/api/templates/publish-template"},{"title":"Rollback Version","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/templates/{template_id}/versions/{version_id}/rollback","href":"/api/templates/rollback-version"}]},{"group":"Playground","pages":[{"title":"List Threads","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/playground/threads","href":"/api/playground/list-threads"},{"title":"Create Thread","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/playground/threads","href":"/api/playground/create-thread"},{"title":"Get Thread","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/playground/threads/{thread_id}","href":"/api/playground/get-thread"},{"title":"Delete Thread","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/playground/threads/{thread_id}","href":"/api/playground/delete-thread"},{"title":"Update Thread","deprecated":null,"version":null,"openapi":"/api/openapi.json patch /v1/playground/threads/{thread_id}","href":"/api/playground/update-thread"}]},{"group":"Memory","pages":[{"title":"List Memories","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/memories","href":"/api/memory/list-memories"},{"title":"Create Memory","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/memories","href":"/api/memory/create-memory"},{"title":"Memory Usage","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/memories/usage","href":"/api/memory/memory-usage"},{"title":"Memory Counts","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/memories/counts","href":"/api/memory/memory-counts"},{"title":"Get Memory","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/memories/{slug_or_id}","href":"/api/memory/get-memory"},{"title":"Delete Memory","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/memories/{slug_or_id}","href":"/api/memory/delete-memory"},{"title":"Update Memory","deprecated":null,"version":null,"openapi":"/api/openapi.json patch /v1/memories/{slug_or_id}","href":"/api/memory/update-memory"},{"title":"List Memory Items","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/memories/{slug_or_id}/items","href":"/api/memory/list-memory-items"},{"title":"Add Memory Item","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/memories/{slug_or_id}/items","href":"/api/memory/add-memory-item"},{"title":"Revive Expired Items","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/memories/{slug_or_id}/items/revive-expired","href":"/api/memory/revive-expired-items"},{"title":"Delete Memory Item","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/memories/{slug_or_id}/items/{item_id}","href":"/api/memory/delete-memory-item"},{"title":"Update Memory Item","deprecated":null,"version":null,"openapi":"/api/openapi.json patch /v1/memories/{slug_or_id}/items/{item_id}","href":"/api/memory/update-memory-item"}]},{"group":"End users","pages":[{"title":"Erase an end user's identifier","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/end-users/erasures","href":"/api/end-users/erase-an-end-users-identifier"}]},{"group":"API Versions","pages":[{"title":"List dated API versions","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/api-versions","href":"/api/api-versions/list-dated-api-versions"}]},{"group":"Providers","pages":[{"title":"List providers an API key can be pinned to","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/providers/pinnable","href":"/api/providers/list-providers-an-api-key-can-be-pinned-to"},{"title":"List the models one provider serves","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/providers/{provider}/models","href":"/api/providers/list-the-models-one-provider-serves"}]},{"group":"Models","pages":[{"title":"List Models","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/models","href":"/api/models/list-models"},{"title":"Search Models","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/models/search","href":"/api/models/search-models"},{"title":"List a model's providers and their prices","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/models/{model_id}/providers","href":"/api/models/list-a-models-providers-and-their-prices"},{"title":"Get Model","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/models/{model_id}","href":"/api/models/get-model"},{"title":"List models with their providers","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v2/models","href":"/api/models/list-models-with-their-providers"},{"title":"Get a model with its providers","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v2/models/{model_id}","href":"/api/models/get-a-model-with-its-providers"}]},{"group":"RAG","pages":[{"title":"List Files","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/files","href":"/api/rag/list-files"},{"title":"Init Upload","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/files","href":"/api/rag/init-upload"},{"title":"Get File Status","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/files/{file_id}","href":"/api/rag/get-file-status"},{"title":"Delete File","deprecated":null,"version":null,"openapi":"/api/openapi.json delete /v1/files/{file_id}","href":"/api/rag/delete-file"},{"title":"Trigger Embedding Bulk","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/files/embed","href":"/api/rag/trigger-embedding-bulk"},{"title":"Vector Search","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/files/search","href":"/api/rag/vector-search"}]},{"group":"Logs","pages":[{"title":"Loki query","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/query","href":"/api/logs/loki-query"},{"title":"Loki query_range","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/query_range","href":"/api/logs/loki-query_range"},{"title":"Loki labels","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/labels","href":"/api/logs/loki-labels"},{"title":"Loki label/{name}/values","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/label/{name}/values","href":"/api/logs/loki-label-values"},{"title":"Loki series","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/series","href":"/api/logs/loki-series"},{"title":"Loki detected_fields","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/detected_fields","href":"/api/logs/loki-detected_fields"},{"title":"Loki detected_field/{name}/values","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/detected_field/{name}/values","href":"/api/logs/loki-detected_field-values"},{"title":"Loki detected_labels","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/detected_labels","href":"/api/logs/loki-detected_labels"},{"title":"Loki index/stats","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/index/stats","href":"/api/logs/loki-indexstats"},{"title":"Loki index/volume","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/index/volume","href":"/api/logs/loki-indexvolume"},{"title":"Loki index/volume_range","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/index/volume_range","href":"/api/logs/loki-indexvolume_range"},{"title":"Loki patterns","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/patterns","href":"/api/logs/loki-patterns"},{"title":"Loki format_query","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/format_query","href":"/api/logs/loki-format_query"},{"title":"Loki status/buildinfo","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/loki/api/v1/status/buildinfo","href":"/api/logs/loki-statusbuildinfo"},{"title":"Read Log Bodies","deprecated":null,"version":null,"openapi":"/api/openapi.json get /v1/logs/bodies","href":"/api/logs/read-log-bodies"}]},{"group":"Web Search","pages":[{"title":"Web Search","deprecated":null,"version":null,"openapi":"/api/openapi.json post /v1/web/search","href":"/api/web-search/web-search"}]}]}]},{"tab":"SDKs","icon":"code","pages":[{"title":"SDKs","href":"/sdk/overview"}]},{"tab":"Agent","icon":"robot","pages":[{"title":"Agent","href":"/agent/mcp"}]},{"tab":"Troubleshooting","icon":"bug","pages":[{"title":"Troubleshooting","href":"/debug/mesh-api"}]},{"tab":"Performance","icon":"gauge-high","pages":[{"title":"Performance","href":"/performance/overview"}]}]},"basePath":"","title":"Create Batch - Mesh API","deploymentId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","buildId":"dpl_4dgnk6TA5fUgboKHTvWWyeqm3idh","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-5zXlUUV6.js","snippetPresets-D3m2eL-0.js","utils-u8TSWPiZ.js","style-to-object-BY3JEAdk.js","utils-D3TDKJCH.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Om0Y4Ijd.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Cyl7LOol.js","_Uint8Array-BuOv0f5_.js","isObject-FP1Yky1u.js","Page-DdEXfHxg.js","api-description-markdown-DDasI_tu.js","DynamicMarkdown-DoPsKgYC.js","CodeSnippet-CuGpPhIN.js","use-playground-group-access-DYZiRN3l.js","SectionHeading-CKObOTcn.js","ApiExamples-BnqLE2Kf.js","usePlaygroundInputsStore-DhQKVH9n.js","shallow-BOCfJNQU.js","isEqual-BrbSa25D.js","CodeSnippets-DUGBlB-S.js","MethodPill-D_DqPuJw.js","getPastedJson-DWfa7n0M.js","Check2Icon-CEquKboc.js","axios-CsQoIw0U.js","Markdown-CIbHOmUi.js","AssistantPageLink-C0oSAXp0.js","dist-Bp7AI3M8.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}