Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes.
Needs the generations:create scope.
POST
/
runs
Create a run
curl --request POST \ --url https://api.zerogen.com/v1/runs \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "black-forest-labs/flux-2-pro/generate", "prompt": "A lighthouse at dawn, fog over the water", "output": { "count": 1 }}'
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'black-forest-labs/flux-2-pro/generate',
prompt: 'A lighthouse at dawn, fog over the water',
output: {count: 1}
})
};
fetch('https://api.zerogen.com/v1/runs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests
url = "https://api.zerogen.com/v1/runs"
payload = {
"model": "black-forest-labs/flux-2-pro/generate",
"prompt": "A lighthouse at dawn, fog over the water",
"output": { "count": 1 }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Makes retries safe: a retry with the same key and body returns the first response for 24 hours instead of repeating the work. Reusing a key with a different body returns 409.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ZeroGen API","description":"Generate images and video with every model in ZeroGen from your own servers.","colors":{"primary":"#18181B","light":"#E4E4E7","dark":"#18181B"},"logo":{"light":"https://mintcdn.com/zero-gen/W2GmhRNTfZqjZw9S/logo/light.svg?fit=max\u0026auto=format\u0026n=W2GmhRNTfZqjZw9S\u0026q=85\u0026s=35d09db4e90566e79f5af1c3d8ffb4be","dark":"https://mintcdn.com/zero-gen/W2GmhRNTfZqjZw9S/logo/dark.svg?fit=max\u0026auto=format\u0026n=W2GmhRNTfZqjZw9S\u0026q=85\u0026s=f4fcd821b66e08a00c2975e2458a4edc"},"favicon":"https://mintcdn.com/zero-gen/W2GmhRNTfZqjZw9S/favicon.svg?fit=max\u0026auto=format\u0026n=W2GmhRNTfZqjZw9S\u0026q=85\u0026s=46d5ff92806d6efc0a27dd88bce49b88","api":{"openapi":"openapi.json","playground":{"display":"simple"},"examples":{"languages":["curl","javascript","python"]}},"contextual":{"options":["copy","view","claude","chatgpt","cursor","vscode","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zero-gen","hasAudioNarration":false,"actualSubdomain":"zero-gen","customDomains":["docs.zerogen.com"],"gitSource":{"type":"github","owner":"zerogeneration","repo":"platform","deployBranch":"main","contentDirectory":"apps/api-docs","isPrivate":true,"mountPath":"","label":"","_id":"6adcf0cde85b0c9dcc4acad1"},"chroma":{"latestBuiltDeploymentHistoryId":"6adf8d8dfedf655abdf4cd51","collectionId":"a14ea964-55a9-43a7-906e-9b9fb5f83be1","liveDeploymentHistoryId":"6adf8d8dfedf655abdf4cd51","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6adf8d8dfedf655abdf4cd51","clientVersion":"0.0.3969","searchFilterCounts":[{"language":"default","tag":"API reference","count":34},{"language":"default","tag":"Endpoints","count":33},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"Labels","count":7},{"language":"default","tag":"Folders","count":6},{"language":"default","tag":"Get started","count":5},{"language":"default","tag":"Runs","count":5},{"language":"default","tag":"Generate","count":4},{"language":"default","tag":"Conventions","count":4},{"language":"default","tag":"Assets","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"editor-v7-file-tree","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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/runs/create-a-run","slug":"/api-reference/runs/create-a-run","pageMetadata":{"title":"Create a run","description":"Validates, prices, reserves and starts one run in a single call. Send `Prefer: wait=N` to hold the response until it ends. Nothing is charged unless every check passes.\n\nNeeds the `generations:create` scope.","deprecated":null,"version":null,"openapi":"/openapi.json post /runs","href":"/api-reference/runs/create-a-run","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: [_jsxs(_components.p, {\n children: [\"Validates, prices, reserves and starts one run in a single call. Send \", _jsx(_components.code, {\n children: \"Prefer: wait=N\"\n }), \" to hold the response until it ends. Nothing is charged unless every check passes.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Needs the \", _jsx(_components.code, {\n children: \"generations:create\"\n }), \" scope.\"]\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 a run","description":"Validates, prices, reserves and starts one run in a single call. Send `Prefer: wait=N` to hold the response until it ends. Nothing is charged unless every check passes.\n\nNeeds the `generations:create` scope.","deprecated":null,"version":null,"openapi":"/openapi.json post /runs","href":"/api-reference/runs/create-a-run","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createRun","tags":["Runs"],"summary":"Create a run","description":"Validates, prices, reserves and starts one run in a single call. Send `Prefer: wait=N` to hold the response until it ends. Nothing is charged unless every check passes.\n\nNeeds the `generations:create` scope.","parameters":["210cd19c-a128-4552-8800-c1122766b04b","d0810df6-db23-443e-a8a6-e61269f1ef4a"],"requestBody":"2f43bd17-81cc-4022-b990-09249423fc91","responses":{"200":"e44bcbdf-545d-4d1b-8fd4-4061441dd2cd","202":"f77100e8-a8f3-42f3-9ac8-498f24d6dc3b","400":"f2d70667-1474-476c-96e8-c9fd06d620c5","401":"de1db445-76a7-4ab9-b43f-ba529c824a81","402":"7daf62d0-26ab-4c78-8470-297c3bd93305","403":"f38ade0c-e1a2-4232-ba34-a2e9c1dc96bb","404":"e6cdd0e5-8827-4716-ab40-f950e2031378","409":"1364c0c1-86f7-4d75-8050-af4e2d4a41e7","413":"c07b3930-e9fa-4a52-aa4c-f445e4a654fb","415":"b456f58e-5290-4428-a962-81feaa22f3bb","429":"0442a31c-db31-452c-9c73-3f94d746f3b9","500":"44435135-bd11-4a0b-b3f3-aa656ebcf464","503":"2d31df8a-a206-4025-b11d-4d472a84cc10"},"method":"post","type":"path","servers":["a794a74a-a9e4-45a3-bf3c-b17669c29f5b"],"security":["3d061274-4ea1-4ae6-a6d7-c8c28192c3d0"],"path":"/runs","baseUrlOptions":["https://api.zerogen.com/v1"],"title":"Create a run","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"210cd19c-a128-4552-8800-c1122766b04b":{"name":"Idempotency-Key","in":"header","required":false,"description":"Makes retries safe: a retry with the same key and body returns the first response for 24 hours instead of repeating the work. Reusing a key with a different body returns 409.","schema":{"type":"string","minLength":1,"maxLength":255,"pattern":"^[\\x21-\\x7e]+$","isRequired":false,"description":"Makes retries safe: a retry with the same key and body returns the first response for 24 hours instead of repeating the work. Reusing a key with a different body returns 409.","uniqueKey":"","typeLabel":"string"}},"d0810df6-db23-443e-a8a6-e61269f1ef4a":{"name":"Prefer","in":"header","required":false,"description":"wait=N holds the response up to N seconds (at most 60) until the run ends.","schema":{"type":"string","pattern":"^wait=\\d+$","example":"wait=30","isRequired":false,"description":"wait=N holds the response up to N seconds (at most 60) until the run ends.","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"model":{"type":"string","maxLength":200,"pattern":"^[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*$","isRequired":true,"uniqueKey":"model","typeLabel":"string"},"prompt":{"type":"string","maxLength":20000,"uniqueKey":"prompt","typeLabel":"string"},"inputs":{"maxItems":50,"type":"array","items":{"oneOf":[{"type":"object","required":["role","asset"],"properties":{"role":{"type":"string","enum":["source","reference","face-reference","start-frame","end-frame","keyframe","mask"],"isRequired":true,"uniqueKey":"inputs.items.[INDEX].oneOf.0.role","typeLabel":"enum\u003cstring>"},"asset":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"Library asset ID","isRequired":true,"uniqueKey":"inputs.items.[INDEX].oneOf.0.asset","typeLabel":"string"},"timeSeconds":{"description":"Keyframes only, and required for them: seconds from the start of the video, on one of the model's frames","type":"number","minimum":0,"uniqueKey":"inputs.items.[INDEX].oneOf.0.timeSeconds","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"inputs.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","required":["role","url"],"properties":{"role":{"type":"string","enum":["source","reference","face-reference","start-frame","end-frame","keyframe","mask"],"isRequired":true,"uniqueKey":"inputs.items.[INDEX].oneOf.1.role","typeLabel":"enum\u003cstring>"},"url":{"type":"string","maxLength":2048,"format":"uri","description":"An https URL ZeroGen imports into the library before use","pattern":"^https://","isRequired":true,"uniqueKey":"inputs.items.[INDEX].oneOf.1.url","typeLabel":"string\u003curi>"},"timeSeconds":{"description":"Keyframes only, and required for them: seconds from the start of the video, on one of the model's frames","type":"number","minimum":0,"uniqueKey":"inputs.items.[INDEX].oneOf.1.timeSeconds","typeLabel":"number"}},"additionalProperties":false,"uniqueKey":"inputs.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"inputs.items.[INDEX]","typeLabel":"object"},"uniqueKey":"inputs","typeLabel":"object[]"},"output":{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":4,"uniqueKey":"output.count","typeLabel":"integer"},"size":{"description":"Image size: auto or WIDTHxHEIGHT in pixels, such as 1024x1536","type":"string","maxLength":40,"uniqueKey":"output.size","typeLabel":"string"},"quality":{"type":"string","maxLength":40,"uniqueKey":"output.quality","typeLabel":"string"},"background":{"type":"string","maxLength":40,"uniqueKey":"output.background","typeLabel":"string"},"format":{"type":"string","enum":["png","jpeg","webp"],"uniqueKey":"output.format","typeLabel":"enum\u003cstring>"},"aspectRatio":{"type":"string","maxLength":20,"uniqueKey":"output.aspectRatio","typeLabel":"string"},"resolution":{"type":"string","maxLength":20,"uniqueKey":"output.resolution","typeLabel":"string"},"durationSeconds":{"type":"number","exclusiveMinimum":0,"maximum":600,"uniqueKey":"output.durationSeconds","typeLabel":"number"},"includeAudio":{"type":"boolean","uniqueKey":"output.includeAudio","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"output","typeLabel":"object"},"voice":{"type":"string","pattern":"^library:[A-Za-z0-9]{1,64}$","description":"Speech models only: the voice to read the prompt in, from the model's voices","uniqueKey":"voice","typeLabel":"string"},"parameters":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,63}$"},"additionalProperties":{"oneOf":[{"type":"string","maxLength":200,"uniqueKey":"parameters.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"parameters.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"parameters.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"parameters.additionalProperties","typeLabel":"string | number | boolean"},"description":"Only the parameters the model's schema lists","uniqueKey":"parameters","typeLabel":"object"},"maxCostMicroUsd":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Refuse to start when the quote exceeds this amount","uniqueKey":"maxCostMicroUsd","typeLabel":"integer"},"test":{"type":"object","properties":{"outputs":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"string","enum":["succeeded","provider_error","provider_timeout","content_moderation","input_rejected"],"uniqueKey":"test.outputs.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Each output's outcome, in order: succeeded, or the error code a live output can end with. Outputs left out succeed","uniqueKey":"test.outputs","typeLabel":"enum\u003cstring>[]"},"reject":{"type":"string","enum":["insufficient_balance","rate_limited","model_unavailable"],"description":"Create only: refuse with this live response and start nothing (402 insufficient_balance, 429 rate_limited with Retry-After, 400 model_unavailable)","uniqueKey":"test.reject","typeLabel":"enum\u003cstring>"},"delaySeconds":{"type":"integer","minimum":0,"maximum":60,"description":"Seconds before each output ends, to rehearse polling and Prefer: wait","uniqueKey":"test.delaySeconds","typeLabel":"integer"}},"additionalProperties":false,"description":"Test keys only: rehearse each output's outcome; live keys are refused when it is present","uniqueKey":"test","typeLabel":"object"},"projectId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"The project the outputs land in; the organization's default project when omitted. Test keys use their sandbox.","uniqueKey":"projectId","typeLabel":"string"},"folderId":{"oneOf":[{"type":"string","description":"A folder in that project to file the outputs in; null or omitted for Unfiled","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","uniqueKey":"folderId.oneOf.0","typeLabel":"string"},{"type":"null","description":"A folder in that project to file the outputs in; null or omitted for Unfiled","uniqueKey":"folderId.oneOf.1","typeLabel":"null"}],"uniqueKey":"folderId","typeLabel":"string | null"},"naming":{"type":"object","properties":{"presetId":{"type":"string","pattern":"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$","description":"A naming preset in the run's project","isRequired":true,"uniqueKey":"naming.presetId","typeLabel":"string"},"values":{"type":"object","propertyNames":{"type":"string","maxLength":64},"additionalProperties":{"oneOf":[{"type":"string","maxLength":80,"uniqueKey":"naming.values.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"integer","maximum":99999999,"minimum":0,"uniqueKey":"naming.values.additionalProperties.oneOf.1","typeLabel":"integer"}],"uniqueKey":"naming.values.additionalProperties","typeLabel":"string | integer"},"maxProperties":12,"description":"Field values by field ID; fields left out take the preset's defaults","isRequired":true,"uniqueKey":"naming.values","typeLabel":"object"}},"required":["presetId","values"],"additionalProperties":false,"uniqueKey":"naming","typeLabel":"object"}},"required":["model"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"example":{"model":"black-forest-labs/flux-2-pro/generate","prompt":"A lighthouse at dawn, fog over the water","output":{"count":1}},"examples":{"Example":{"title":"Example","value":{"model":"black-forest-labs/flux-2-pro/generate","prompt":"A lighthouse at dawn, fog over the water","output":{"count":1}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"e44bcbdf-545d-4d1b-8fd4-4061441dd2cd":{"description":"The run has ended, within the requested wait.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"true when this response replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}},"Location":{"description":"Where to read the created resource.","schema":{"type":"string"}},"Preference-Applied":{"description":"The wait applied, such as wait=30.","schema":{"type":"string"}},"Deprecation":{"description":"When the model was deprecated, as @ followed by Unix seconds.","schema":{"type":"string"}},"Sunset":{"description":"When the deprecated model stops accepting requests (HTTP date).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"projectId":{"type":"string","description":"The project that holds the outputs","isRequired":true,"uniqueKey":"projectId","typeLabel":"string"},"model":{"oneOf":[{"type":"string","maxLength":200,"pattern":"^[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*$","isRequired":true,"uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"model","typeLabel":"string | null"},"modelVersion":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"modelVersion.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"modelVersion.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"modelVersion","typeLabel":"string | null"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"outputs":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].index","typeLabel":"integer"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"asset":{"oneOf":[{"type":"object","required":["id","mimeType","width","height","durationMs"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.id","typeLabel":"string"},"mimeType":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.mimeType","typeLabel":"string"},"width":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width","typeLabel":"integer | null"},"height":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height","typeLabel":"integer | null"},"durationMs":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs","typeLabel":"integer | null"},"resourceUri":{"type":"string","description":"Where this transport's client reads the asset, such as an MCP resource","uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.resourceUri","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"outputs.items.[INDEX].error.oneOf.0.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.details.additionalProperties","typeLabel":"any"},"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].error","typeLabel":"object | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"additionalProperties":false,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX]","typeLabel":"object"},"description":"What the provider ignored, such as an unused reference","uniqueKey":"outputs.items.[INDEX].warnings","typeLabel":"object[]"},"draft":{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When upscaling this output closes","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.expiresAt","typeLabel":"string\u003cdate-time>"},"upscalable":{"type":"boolean","description":"A final can be requested now: unexpired, with no final in progress","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscalable","typeLabel":"boolean"},"upscale":{"oneOf":[{"type":"string","description":"The newest final's state, or null when none was requested","enum":["upscaling","upscaled"],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The newest final's state, or null when none was requested","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale","typeLabel":"enum\u003cstring> | null"},"finalResolution":{"type":"string","description":"That final's resolution, one the model's draft control lists","uniqueKey":"outputs.items.[INDEX].draft.finalResolution","typeLabel":"string"},"finalAssetId":{"type":"string","description":"The newest finished final's asset","uniqueKey":"outputs.items.[INDEX].draft.finalAssetId","typeLabel":"string"}},"required":["expiresAt","upscalable","upscale"],"additionalProperties":false,"description":"A 480p Draft output; upscaling it makes a final with the same seed, at a resolution the model's draft control lists","uniqueKey":"outputs.items.[INDEX].draft","typeLabel":"object"}},"required":["index","status","asset","error"],"additionalProperties":false,"uniqueKey":"outputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"outputs","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.oneOf.0.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.oneOf.0.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.oneOf.0.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.oneOf.0.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"billing":{"type":"object","properties":{"mode":{"type":"string","enum":["platform","byok","test"],"isRequired":true,"uniqueKey":"billing.mode","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"type":"string","description":"held: an amount is reserved and nothing is charged yet; charged: chargedMicroUsd is the final charge; released: the hold ended with no charge; null: billing never admitted the run, so nothing was held or charged","enum":["held","charged","released"],"isRequired":true,"uniqueKey":"billing.state.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"held: an amount is reserved and nothing is charged yet; charged: chargedMicroUsd is the final charge; released: the hold ended with no charge; null: billing never admitted the run, so nothing was held or charged","isRequired":true,"uniqueKey":"billing.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.state","typeLabel":"enum\u003cstring> | null"},"quotedMicroUsd":{"oneOf":[{"type":"integer","description":"Reserved maximum expected charge","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.quotedMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Reserved maximum expected charge","isRequired":true,"uniqueKey":"billing.quotedMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.quotedMicroUsd","typeLabel":"integer | null"},"heldMicroUsd":{"oneOf":[{"type":"integer","description":"While held, the amount reserved now; it is never a charge","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.heldMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"While held, the amount reserved now; it is never a charge","isRequired":true,"uniqueKey":"billing.heldMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.heldMicroUsd","typeLabel":"integer | null"},"chargedMicroUsd":{"oneOf":[{"type":"integer","description":"The final charge once charged, zero once released; it can rarely exceed the quote","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.chargedMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The final charge once charged, zero once released; it can rarely exceed the quote","isRequired":true,"uniqueKey":"billing.chargedMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.chargedMicroUsd","typeLabel":"integer | null"},"hold":{"type":"object","properties":{"state":{"type":"string","enum":["running","ended","needs_attention"],"description":"running: the run has not ended; ended: it ended and the hold is still pending; needs_attention: it has stayed pending 30 minutes after ending, or 24 hours after admission with no end recorded (endedAt then stays null), so ZeroGen is looking into it","isRequired":true,"uniqueKey":"billing.hold.state","typeLabel":"enum\u003cstring>"},"endedAt":{"oneOf":[{"type":"string","description":"When the run ended; null while it runs or when no end was recorded","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"billing.hold.endedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the run ended; null while it runs or when no end was recorded","isRequired":true,"uniqueKey":"billing.hold.endedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.hold.endedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["state","endedAt"],"additionalProperties":false,"description":"While held, where the run stands. It reports facts, not what settlement will do","uniqueKey":"billing.hold","typeLabel":"object"}},"required":["mode","state","quotedMicroUsd","heldMicroUsd","chargedMicroUsd"],"additionalProperties":false,"isRequired":true,"uniqueKey":"billing","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"startedAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"startedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"startedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"startedAt","typeLabel":"string\u003cdate-time> | null"},"finishedAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"finishedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"finishedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"finishedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["id","projectId","model","modelVersion","status","outputs","error","billing","createdAt","startedAt","finishedAt"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","projectId":"\u003cstring>","model":"\u003cstring>","modelVersion":"\u003cstring>","status":"queued","outputs":[{"index":4503599627370495,"status":"queued","asset":{"id":"\u003cstring>","mimeType":"\u003cstring>","width":4503599627370495,"height":4503599627370495,"durationMs":4503599627370495,"resourceUri":"\u003cstring>"},"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}},"warnings":[{"code":"\u003cstring>","message":"\u003cstring>"}],"draft":{"expiresAt":"2023-11-07T05:31:56Z","upscalable":true,"upscale":"upscaling","finalResolution":"\u003cstring>","finalAssetId":"\u003cstring>"}}],"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}},"billing":{"mode":"platform","state":"held","quotedMicroUsd":4503599627370495,"heldMicroUsd":4503599627370495,"chargedMicroUsd":4503599627370495,"hold":{"state":"running","endedAt":"2023-11-07T05:31:56Z"}},"createdAt":"2023-11-07T05:31:56Z","startedAt":"2023-11-07T05:31:56Z","finishedAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"f77100e8-a8f3-42f3-9ac8-498f24d6dc3b":{"description":"The run started and has not ended yet.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}},"Idempotent-Replayed":{"description":"true when this response replays an earlier request with the same Idempotency-Key.","schema":{"type":"string","enum":["true"]}},"Location":{"description":"Where to read the created resource.","schema":{"type":"string"}},"Preference-Applied":{"description":"The wait applied, such as wait=30.","schema":{"type":"string"}},"Deprecation":{"description":"When the model was deprecated, as @ followed by Unix seconds.","schema":{"type":"string"}},"Sunset":{"description":"When the deprecated model stops accepting requests (HTTP date).","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"projectId":{"type":"string","description":"The project that holds the outputs","isRequired":true,"uniqueKey":"projectId","typeLabel":"string"},"model":{"oneOf":[{"type":"string","maxLength":200,"pattern":"^[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*\\/[a-z0-9]+(?:[.-][a-z0-9]+)*$","isRequired":true,"uniqueKey":"model.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"model.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"model","typeLabel":"string | null"},"modelVersion":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"modelVersion.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"modelVersion.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"modelVersion","typeLabel":"string | null"},"status":{"type":"string","enum":["queued","running","succeeded","partial","failed","cancelled"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"outputs":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].index","typeLabel":"integer"},"status":{"type":"string","enum":["queued","running","succeeded","failed","cancelled"],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"asset":{"oneOf":[{"type":"object","required":["id","mimeType","width","height","durationMs"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.id","typeLabel":"string"},"mimeType":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.mimeType","typeLabel":"string"},"width":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.width","typeLabel":"integer | null"},"height":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"exclusiveMinimum":true,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.height","typeLabel":"integer | null"},"durationMs":{"oneOf":[{"type":"integer","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs.oneOf.0","typeLabel":"integer"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.durationMs","typeLabel":"integer | null"},"resourceUri":{"type":"string","description":"Where this transport's client reads the asset, such as an MCP resource","uniqueKey":"outputs.items.[INDEX].asset.oneOf.0.resourceUri","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].asset","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"outputs.items.[INDEX].error.oneOf.0.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.details.additionalProperties","typeLabel":"any"},"uniqueKey":"outputs.items.[INDEX].error.oneOf.0.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"outputs.items.[INDEX].error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].error","typeLabel":"object | null"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX].message","typeLabel":"string"}},"required":["code","message"],"additionalProperties":false,"uniqueKey":"outputs.items.[INDEX].warnings.items.[INDEX]","typeLabel":"object"},"description":"What the provider ignored, such as an unused reference","uniqueKey":"outputs.items.[INDEX].warnings","typeLabel":"object[]"},"draft":{"type":"object","properties":{"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","description":"When upscaling this output closes","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.expiresAt","typeLabel":"string\u003cdate-time>"},"upscalable":{"type":"boolean","description":"A final can be requested now: unexpired, with no final in progress","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscalable","typeLabel":"boolean"},"upscale":{"oneOf":[{"type":"string","description":"The newest final's state, or null when none was requested","enum":["upscaling","upscaled"],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"The newest final's state, or null when none was requested","isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"outputs.items.[INDEX].draft.upscale","typeLabel":"enum\u003cstring> | null"},"finalResolution":{"type":"string","description":"That final's resolution, one the model's draft control lists","uniqueKey":"outputs.items.[INDEX].draft.finalResolution","typeLabel":"string"},"finalAssetId":{"type":"string","description":"The newest finished final's asset","uniqueKey":"outputs.items.[INDEX].draft.finalAssetId","typeLabel":"string"}},"required":["expiresAt","upscalable","upscale"],"additionalProperties":false,"description":"A 480p Draft output; upscaling it makes a final with the same seed, at a resolution the model's draft control lists","uniqueKey":"outputs.items.[INDEX].draft","typeLabel":"object"}},"required":["index","status","asset","error"],"additionalProperties":false,"uniqueKey":"outputs.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"outputs","typeLabel":"object[]"},"error":{"oneOf":[{"type":"object","required":["code","message","retryable"],"properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.oneOf.0.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.oneOf.0.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.oneOf.0.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.oneOf.0.details","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"billing":{"type":"object","properties":{"mode":{"type":"string","enum":["platform","byok","test"],"isRequired":true,"uniqueKey":"billing.mode","typeLabel":"enum\u003cstring>"},"state":{"oneOf":[{"type":"string","description":"held: an amount is reserved and nothing is charged yet; charged: chargedMicroUsd is the final charge; released: the hold ended with no charge; null: billing never admitted the run, so nothing was held or charged","enum":["held","charged","released"],"isRequired":true,"uniqueKey":"billing.state.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","description":"held: an amount is reserved and nothing is charged yet; charged: chargedMicroUsd is the final charge; released: the hold ended with no charge; null: billing never admitted the run, so nothing was held or charged","isRequired":true,"uniqueKey":"billing.state.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.state","typeLabel":"enum\u003cstring> | null"},"quotedMicroUsd":{"oneOf":[{"type":"integer","description":"Reserved maximum expected charge","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.quotedMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Reserved maximum expected charge","isRequired":true,"uniqueKey":"billing.quotedMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.quotedMicroUsd","typeLabel":"integer | null"},"heldMicroUsd":{"oneOf":[{"type":"integer","description":"While held, the amount reserved now; it is never a charge","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.heldMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"While held, the amount reserved now; it is never a charge","isRequired":true,"uniqueKey":"billing.heldMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.heldMicroUsd","typeLabel":"integer | null"},"chargedMicroUsd":{"oneOf":[{"type":"integer","description":"The final charge once charged, zero once released; it can rarely exceed the quote","maximum":9007199254740991,"minimum":0,"isRequired":true,"uniqueKey":"billing.chargedMicroUsd.oneOf.0","typeLabel":"integer"},{"type":"null","description":"The final charge once charged, zero once released; it can rarely exceed the quote","isRequired":true,"uniqueKey":"billing.chargedMicroUsd.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.chargedMicroUsd","typeLabel":"integer | null"},"hold":{"type":"object","properties":{"state":{"type":"string","enum":["running","ended","needs_attention"],"description":"running: the run has not ended; ended: it ended and the hold is still pending; needs_attention: it has stayed pending 30 minutes after ending, or 24 hours after admission with no end recorded (endedAt then stays null), so ZeroGen is looking into it","isRequired":true,"uniqueKey":"billing.hold.state","typeLabel":"enum\u003cstring>"},"endedAt":{"oneOf":[{"type":"string","description":"When the run ended; null while it runs or when no end was recorded","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"billing.hold.endedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"When the run ended; null while it runs or when no end was recorded","isRequired":true,"uniqueKey":"billing.hold.endedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"billing.hold.endedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["state","endedAt"],"additionalProperties":false,"description":"While held, where the run stands. It reports facts, not what settlement will do","uniqueKey":"billing.hold","typeLabel":"object"}},"required":["mode","state","quotedMicroUsd","heldMicroUsd","chargedMicroUsd"],"additionalProperties":false,"isRequired":true,"uniqueKey":"billing","typeLabel":"object"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"startedAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"startedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"startedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"startedAt","typeLabel":"string\u003cdate-time> | null"},"finishedAt":{"oneOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$","isRequired":true,"uniqueKey":"finishedAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","isRequired":true,"uniqueKey":"finishedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"finishedAt","typeLabel":"string\u003cdate-time> | null"}},"required":["id","projectId","model","modelVersion","status","outputs","error","billing","createdAt","startedAt","finishedAt"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","projectId":"\u003cstring>","model":"\u003cstring>","modelVersion":"\u003cstring>","status":"queued","outputs":[{"index":4503599627370495,"status":"queued","asset":{"id":"\u003cstring>","mimeType":"\u003cstring>","width":4503599627370495,"height":4503599627370495,"durationMs":4503599627370495,"resourceUri":"\u003cstring>"},"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}},"warnings":[{"code":"\u003cstring>","message":"\u003cstring>"}],"draft":{"expiresAt":"2023-11-07T05:31:56Z","upscalable":true,"upscale":"upscaling","finalResolution":"\u003cstring>","finalAssetId":"\u003cstring>"}}],"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}},"billing":{"mode":"platform","state":"held","quotedMicroUsd":4503599627370495,"heldMicroUsd":4503599627370495,"chargedMicroUsd":4503599627370495,"hold":{"state":"running","endedAt":"2023-11-07T05:31:56Z"}},"createdAt":"2023-11-07T05:31:56Z","startedAt":"2023-11-07T05:31:56Z","finishedAt":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"f2d70667-1474-476c-96e8-c9fd06d620c5":{"description":"The request is malformed or invalid: invalid_request, validation_failed, model_unavailable or input_import_failed.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"de1db445-76a7-4ab9-b43f-ba529c824a81":{"description":"invalid_api_key: the key is missing, revoked or expired.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"WWW-Authenticate":{"description":"Bearer realm=\"ZeroGen API\".","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"7daf62d0-26ab-4c78-8470-297c3bd93305":{"description":"insufficient_balance or spend_limit_reached: the available balance or a spend limit cannot cover the quote. cost_limit_exceeded: the quote is above maxCostMicroUsd.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"f38ade0c-e1a2-4232-ba34-a2e9c1dc96bb":{"description":"permission_denied: the key lacks the scope this endpoint needs, the request came from a browser, or the API isn't enabled for the organization.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"e6cdd0e5-8827-4716-ab40-f950e2031378":{"description":"not_found: no such resource for this caller, including a projectId the caller can't use.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"1364c0c1-86f7-4d75-8050-af4e2d4a41e7":{"description":"idempotency_conflict: the Idempotency-Key was used for a different request. idempotency_in_progress: the first request with this key hasn't finished. invalid_state: the request can't go ahead as things stand, such as a run that needs a person's approval in ZeroGen.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"c07b3930-e9fa-4a52-aa4c-f445e4a654fb":{"description":"The request body is larger than 128 KB.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"b456f58e-5290-4428-a962-81feaa22f3bb":{"description":"Send the body as application/json.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"0442a31c-db31-452c-9c73-3f94d746f3b9":{"description":"rate_limited: the key or its owner is over the rate limit, or the organization is at its running cap. Retry after Retry-After seconds.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"44435135-bd11-4a0b-b3f3-aa656ebcf464":{"description":"internal: something went wrong. Retry.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"2d31df8a-a206-4025-b11d-4d472a84cc10":{"description":"unavailable or pricing_unavailable: API keys, billing or pricing can't be reached right now. Retry.","headers":{"Request-Id":{"description":"Identifies the request; quote it when contacting support.","schema":{"type":"string"}},"RateLimit-Limit":{"description":"Requests the key may make in the current window.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the current window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,79}$","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"retryable":{"type":"boolean","isRequired":true,"uniqueKey":"error.retryable","typeLabel":"boolean"},"param":{"type":"string","uniqueKey":"error.param","typeLabel":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{}],"uniqueKey":"error.details.additionalProperties","typeLabel":"any"},"uniqueKey":"error.details","typeLabel":"object"}},"required":["code","message","retryable"],"additionalProperties":false,"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","retryable":true,"param":"\u003cstring>","details":{}}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"3d061274-4ea1-4ae6-a6d7-c8c28192c3d0":{"bearerAuth":{"type":"http","scheme":"bearer","description":"A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"a794a74a-a9e4-45a3-bf3c-b17669c29f5b":{"url":"https://api.zerogen.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"A ZeroGen API key: zg_ for a live key, zg_test_ for a test key.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"zero-gen","siteName":"ZeroGen API","title":"Create a run - ZeroGen API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-26T17:27:47.883Z","originalFileLocation":"api-reference/runs/create-a-run.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=\"Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes. Needs the generations:create scope.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ZeroGen 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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_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/zero-gen/ben01azdM0Av99iT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a run - ZeroGen API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes. Needs the generations:create scope.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ZeroGen API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.zerogen.com/api-reference/runs/create-a-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zero-gen.mintlify.app/_mintlify/api/og/v2?division=Runs\u0026amp;title=Create+a+run\u0026amp;description=Validates%2C+prices%2C+reserves+and+starts+one+run+in+a+single+call.+Send+%60Prefer%3A+wait%3DN%60+to+hold+the+response+until+it+ends.+Nothing+is+charged+unless+every+check\u0026amp;theme=faa3a38b66501c3fd9e9fb87\u0026amp;signature=f409973996b1fc323351bf826d9d1fa5c083616ec34fee6a50872f56ec36811c\">\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 a run - ZeroGen API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes. Needs the generations:create scope.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zero-gen.mintlify.app/_mintlify/api/og/v2?division=Runs\u0026amp;title=Create+a+run\u0026amp;description=Validates%2C+prices%2C+reserves+and+starts+one+run+in+a+single+call.+Send+%60Prefer%3A+wait%3DN%60+to+hold+the+response+until+it+ends.+Nothing+is+charged+unless+every+check\u0026amp;theme=faa3a38b66501c3fd9e9fb87\u0026amp;signature=f409973996b1fc323351bf826d9d1fa5c083616ec34fee6a50872f56ec36811c\">\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/zero-gen/ben01azdM0Av99iT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ZeroGen API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#18181B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.zerogen.com/api-reference/runs/create-a-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/runs/create-a-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.zerogen.com/#organization\",\"name\":\"ZeroGen API\",\"url\":\"https://docs.zerogen.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zero-gen/W2GmhRNTfZqjZw9S/logo/light.svg?fit=max\u0026auto=format\u0026n=W2GmhRNTfZqjZw9S\u0026q=85\u0026s=35d09db4e90566e79f5af1c3d8ffb4be\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.zerogen.com#website\",\"name\":\"ZeroGen API\",\"url\":\"https://docs.zerogen.com\",\"publisher\":{\"@id\":\"https://docs.zerogen.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.zerogen.com/api-reference/runs/create-a-run#webpage\",\"url\":\"https://docs.zerogen.com/api-reference/runs/create-a-run\",\"name\":\"Create a run\",\"description\":\"Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes. Needs the generations:create scope.\",\"dateModified\":\"2026-10-26T17:27:47.883Z\",\"isPartOf\":{\"@id\":\"https://docs.zerogen.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.zerogen.com/api-reference/runs/create-a-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.zerogen.com/api-reference/runs/create-a-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.zerogen.com/api-reference/account/read-the-calling-key\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Runs\",\"item\":\"https://docs.zerogen.com/api-reference/runs/quote-a-run\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Create a run\",\"item\":\"https://docs.zerogen.com/api-reference/runs/create-a-run\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.zerogen.com/api-reference/runs/create-a-run#apireference\",\"headline\":\"Create a run\",\"name\":\"Create a run\",\"description\":\"Validates, prices, reserves and starts one run in a single call. Send Prefer: wait=N to hold the response until it ends. Nothing is charged unless every check passes. Needs the generations:create scope.\",\"url\":\"https://docs.zerogen.com/api-reference/runs/create-a-run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.zerogen.com/api-reference/runs/create-a-run#webpage\"},\"dateModified\":\"2026-10-26T17:27:47.883Z\",\"publisher\":{\"@id\":\"https://docs.zerogen.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.zerogen.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ZeroGen API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"ZeroGen API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Overview","href":"/api-reference/overview"}]},{"group":"Endpoints","pages":[{"group":"Account","pages":[{"title":"Read the calling key","deprecated":null,"version":null,"openapi":"/openapi.json get /me","href":"/api-reference/account/read-the-calling-key"},{"title":"Read the organization's balance","deprecated":null,"version":null,"openapi":"/openapi.json get /balance","href":"/api-reference/account/read-the-organizations-balance"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/openapi.json get /models","href":"/api-reference/models/list-models"},{"title":"Read a model","deprecated":null,"version":null,"openapi":"/openapi.json get /models/{vendor}/{model}/{operation}","href":"/api-reference/models/read-a-model"}]},{"group":"Runs","pages":[{"title":"Quote a run","deprecated":null,"version":null,"openapi":"/openapi.json post /runs/quote","href":"/api-reference/runs/quote-a-run"},{"title":"List runs","description":"The calling key owner's runs, newest first.\n\nNeeds the `generations:read` scope.","deprecated":null,"version":null,"openapi":"/openapi.json get /runs","href":"/api-reference/runs/list-runs"},{"title":"Create a run","deprecated":null,"version":null,"openapi":"/openapi.json post /runs","href":"/api-reference/runs/create-a-run"},{"title":"Read a run","description":"One run and each output's status, asset and error. Send `Prefer: wait=N` to hold the response until it ends. Reads never start or repeat work.\n\nNeeds the `generations:read` scope.","deprecated":null,"version":null,"openapi":"/openapi.json get /runs/{id}","href":"/api-reference/runs/read-a-run"},{"title":"Cancel a run","deprecated":null,"version":null,"openapi":"/openapi.json post /runs/{id}/cancel","href":"/api-reference/runs/cancel-a-run"}]},{"group":"Uploads","pages":[{"title":"Create an upload","deprecated":null,"version":null,"openapi":"/openapi.json post /uploads","href":"/api-reference/uploads/create-an-upload"},{"title":"Read an upload","deprecated":null,"version":null,"openapi":"/openapi.json get /uploads/{id}","href":"/api-reference/uploads/read-an-upload"},{"title":"Complete an upload","deprecated":null,"version":null,"openapi":"/openapi.json post /uploads/{id}/complete","href":"/api-reference/uploads/complete-an-upload"}]},{"group":"Projects","pages":[{"title":"List projects","deprecated":null,"version":null,"openapi":"/openapi.json get /projects","href":"/api-reference/projects/list-projects"}]},{"group":"Assets","pages":[{"title":"Search assets","deprecated":null,"version":null,"openapi":"/openapi.json get /assets","href":"/api-reference/assets/search-assets"},{"title":"Read an asset","deprecated":null,"version":null,"openapi":"/openapi.json get /assets/{assetId}","href":"/api-reference/assets/read-an-asset"},{"title":"Read an asset's lineage","deprecated":null,"version":null,"openapi":"/openapi.json get /assets/{assetId}/lineage","href":"/api-reference/assets/read-an-assets-lineage"},{"title":"Update an asset","deprecated":null,"version":null,"openapi":"/openapi.json patch /projects/{projectId}/assets/{assetId}","href":"/api-reference/assets/update-an-asset"}]},{"group":"Labels","pages":[{"title":"Add a label to assets","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/labels/{labelId}/assets","href":"/api-reference/labels/add-a-label-to-assets"},{"title":"Remove a label from assets","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/labels/{labelId}/assets/remove","href":"/api-reference/labels/remove-a-label-from-assets"},{"title":"List labels","deprecated":null,"version":null,"openapi":"/openapi.json get /labels","href":"/api-reference/labels/list-labels"},{"title":"Create a label","deprecated":null,"version":null,"openapi":"/openapi.json post /labels","href":"/api-reference/labels/create-a-label"},{"title":"Update a label","deprecated":null,"version":null,"openapi":"/openapi.json put /labels/{labelId}","href":"/api-reference/labels/update-a-label"},{"title":"Archive a label","deprecated":null,"version":null,"openapi":"/openapi.json post /labels/{labelId}/archive","href":"/api-reference/labels/archive-a-label"},{"title":"Restore a label","deprecated":null,"version":null,"openapi":"/openapi.json post /labels/{labelId}/restore","href":"/api-reference/labels/restore-a-label"}]},{"group":"Folders","pages":[{"title":"List folders","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/folders","href":"/api-reference/folders/list-folders"},{"title":"Create a folder","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/folders","href":"/api-reference/folders/create-a-folder"},{"title":"Update a folder","deprecated":null,"version":null,"openapi":"/openapi.json patch /projects/{projectId}/folders/{folderId}","href":"/api-reference/folders/update-a-folder"},{"title":"Add assets to a folder","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/folders/{folderId}/assets","href":"/api-reference/folders/add-assets-to-a-folder"},{"title":"Move assets to a folder","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/folders/{folderId}/assets/move","href":"/api-reference/folders/move-assets-to-a-folder"},{"title":"Remove assets from a folder","deprecated":null,"version":null,"openapi":"/openapi.json post /projects/{projectId}/folders/{folderId}/assets/remove","href":"/api-reference/folders/remove-assets-from-a-folder"}]},{"group":"Naming presets","pages":[{"title":"List naming presets","deprecated":null,"version":null,"openapi":"/openapi.json get /projects/{projectId}/naming-presets","href":"/api-reference/naming-presets/list-naming-presets"}]},{"group":"Skills","pages":[{"title":"List skills","deprecated":null,"version":null,"openapi":"/openapi.json get /skills","href":"/api-reference/skills/list-skills"},{"title":"Read a skill","deprecated":null,"version":null,"openapi":"/openapi.json get /skills/{skillId}","href":"/api-reference/skills/read-a-skill"}]}]}]}]},"title":"Create a run - ZeroGen API","buildId":"dpl_G8u2B2Ji9qJYF9umedjv293TxycS","deploymentId":"dpl_G8u2B2Ji9qJYF9umedjv293TxycS","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-S3ptrr-V.js","utils-CUxEJy9u.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DavhVrxy.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B1sOUY6E.js","snippetPresets-C-RLYOrF.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Duz18EdI.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DPsbCc6D.js","shallow-B1dlhlOw.js","getApiPlaygroundDisplay-DvOu-BhE.js","CodeSnippet-By8wd64X.js","CodeSnippets-BxVv6TjI.js","Page-BGh0lBck.js","getPastedJson-DOAt9xJn.js","icon-BYg-qtQ2.js","MethodPill-Dtah8ZSz.js","DuplicateIcon-guWfDmh1.js","createIcon-pTGhj_hk.js","DynamicMarkdown-DpsHMHVL.js","SectionHeading-BbutQCjq.js","axios-vUo_bRtp.js","Markdown-DZ-stgDu.js","clsx-Dfme4k4V.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CPNs0ebX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-3JVAA-i3.js"]}