Возвращает текущее состояние задачи. Запрос не ходит к провайдеру — отдаёт сохранённое состояние, поэтому он дешёвый и безопасный для частого опроса.Здесь же лежит результат — в поле resultJson у успешно завершённой задачи.
Параметры, повлиявшие на цену: длительность, разрешение
inputParams
object
Полный исходный объект input, каким он был при создании
resultJson
string
Результат в виде JSON-строки
failCode
string | null
Код ошибки генерации. null, если задача не завершилась ошибкой
failMsg
string | null
Текст ошибки генерации. null, если задача не завершилась ошибкой
providerDetails
object
Дополнительные данные провайдера
createTime
integer
Момент создания в миллисекундах Unix
failCode — непрозрачный внутренний код. Логируйте его и показывайте пользователю failMsg; не стройте на нём ветвление: набор значений не зафиксирован в контракте.
Фильтр status в GET /api/v1/async/media/tasks принимает длинную форму: pending, processing, completed, failed, cancelled. Это разные пространства имён, и путать их — самая частая ошибка интеграции: фильтр status=completed возвращает задачи, у которых state равен success.
Для обычных генераций внутри resultJson лежит ровно {"resultUrls": ["https://…", …]}.Для музыкальных задач объект богаче — там есть tracks с дорожками:
Ключ трека
Описание
id
Идентификатор дорожки — он нужен для запроса таймкодов слов
audio_url
Ссылка на аудио
title, tags, duration
Метаданные трека
model_name, prompt
Чем и из чего сделано
image_url, source_image_url
Обложка и исходное изображение
Ссылки в resultUrls всегда ведут на наш CDN — адреса провайдера наружу не отдаются.
Если задача завершилась неудачей, failCode и failMsg заполняются, остальные поля остаются как были. Причина может быть в промпте, в параметрах, во входном файле или на стороне провайдера.
Задача чужого аккаунта отвечает 404, а не 403. Не стройте логику на различении этих двух случаев — различить их невозможно, и в этом смысл такого поведения.
{"docsConfig":{"theme":"luma","$schema":"https://mintlify.com/docs.json","name":"Документация SpeShu.AI","colors":{"primary":"#ff7819","light":"#ff9038","dark":"#ff7819"},"logo":{"light":"https://mintcdn.com/speshu/HiupqL5TwnvMFufM/logo/speshu_logo.png?fit=max\u0026auto=format\u0026n=HiupqL5TwnvMFufM\u0026q=85\u0026s=fd0fe3cc5f642899ca9d4e8bdee6a0f0","dark":"https://mintcdn.com/speshu/HiupqL5TwnvMFufM/logo/speshu_logo.png?fit=max\u0026auto=format\u0026n=HiupqL5TwnvMFufM\u0026q=85\u0026s=fd0fe3cc5f642899ca9d4e8bdee6a0f0"},"favicon":"https://mintcdn.com/speshu/4vy74SrUrHtVMEav/favicon.svg?fit=max\u0026auto=format\u0026n=4vy74SrUrHtVMEav\u0026q=85\u0026s=3fe1d515b10b46d55add95c515686b24","api":{"mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://speshu.ai"}},"appearance":{"default":"light"},"navbar":{"links":[{"href":"/support","label":"Поддержка"}],"primary":{"type":"button","label":"Профиль","href":"https://speshu.ai/profile"}},"footer":{"links":[{"items":[{"label":"Сотрудничество","href":"mailto:info@speshu.ai"},{"label":"Написать в ТГ","href":"https://t.me/sprt_speshu_ai"},{"label":"Клуб AI-Профи","href":"https://t.me/+9Fkgdpnm3axlN2Ji"}]}]},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Модели","icon":"microchip","href":"/api-reference/media/models"},{"anchor":"Каталог","icon":"list","href":"/models"},{"anchor":"Профиль","icon":"gauge","href":"https://speshu.ai/profile"},{"anchor":"Поддержка","icon":"headset","href":"/support"}]},"languages":[{"language":"ru","href":""}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"speshu","hasAudioNarration":false,"actualSubdomain":"speshu","customDomains":["speshu.ai"],"gitSource":{"type":"github","owner":"laoboost","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad74369dcf1b2c01a0bc747","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"ru","tag":"Руководства","count":41},{"language":"ru","tag":"API Reference","count":23},{"language":"ru","tag":"Документация","count":13},{"language":"ru","tag":"Фреймворки","count":12},{"language":"ru","tag":"Текстовая генерация","count":7},{"language":"ru","tag":"Агенты и редакторы","count":7},{"language":"ru","tag":"Медиа","count":6},{"language":"ru","tag":"О сервисе","count":6},{"language":"ru","tag":"Возможности моделей","count":6},{"language":"ru","tag":"Начало","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/media/status","slug":"/api-reference/media/status","pageMetadata":{"title":"Статус задачи","description":"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат","openapi":"api-reference/openapi.json GET /api/v1/async/media/tasks/{task_id}","icon":"magnifying-glass","href":"/api-reference/media/status"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"GET /api/v1/async/media/tasks/\", \" — состояние задачи и её результат\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Heading,Note,Table,Warning}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Возвращает текущее состояние задачи. Запрос не ходит к провайдеру — отдаёт сохранённое состояние, поэтому он дешёвый и безопасный для частого опроса.`}),`\n`,_jsxs(_components.p,{children:[`Здесь же лежит результат — в поле `,_jsx(_components.code,{children:`resultJson`}),` у успешно завершённой задачи.`]}),`\n`,_jsx(Heading,{level:`2`,id:`объект-задачи`,children:`Объект задачи`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Поле`}),_jsx(_components.th,{children:`Тип`}),_jsx(_components.th,{children:`Описание`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`taskId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Идентификатор задачи`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`providerTaskId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Идентификатор задачи у провайдера`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sessionId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Медиа-сессия, если задана при создании`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`model`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Идентификатор модели, с которой создана задача`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.td,{children:`string`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`waiting`}),`, `,_jsx(_components.code,{children:`success`}),` или `,_jsx(_components.code,{children:`fail`}),` — см. ниже`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`prompt`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Промпт задачи`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`params`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Параметры, повлиявшие на цену: длительность, разрешение`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`inputParams`})}),_jsx(_components.td,{children:`object`}),_jsxs(_components.td,{children:[`Полный исходный объект `,_jsx(_components.code,{children:`input`}),`, каким он был при создании`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resultJson`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Результат в виде JSON-строки`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failCode`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Код ошибки генерации. `,_jsx(_components.code,{children:`null`}),`, если задача не завершилась ошибкой`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`failMsg`})}),_jsx(_components.td,{children:`string | null`}),_jsxs(_components.td,{children:[`Текст ошибки генерации. `,_jsx(_components.code,{children:`null`}),`, если задача не завершилась ошибкой`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`providerDetails`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{children:`Дополнительные данные провайдера`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`createTime`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`Момент создания в миллисекундах Unix`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`failCode`}),` — непрозрачный внутренний код. Логируйте его и показывайте пользователю `,_jsx(_components.code,{children:`failMsg`}),`; не стройте на нём ветвление: набор значений не зафиксирован в контракте.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`состояния`,children:`Состояния`}),`\n`,_jsxs(_components.p,{children:[`Поле `,_jsx(_components.code,{children:`state`}),` принимает `,_jsx(_components.strong,{children:`только три значения`}),`:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:_jsx(_components.code,{children:`state`})}),_jsx(_components.th,{children:`Что происходит`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`waiting`})}),_jsx(_components.td,{children:`Задача создана или выполняется`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`success`})}),_jsx(_components.td,{children:`Задача завершена успешно`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fail`})}),_jsx(_components.td,{children:`Задача завершилась ошибкой или была отменена`})]})]})]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Фильтр `,_jsx(_components.code,{children:`status`}),` в `,_jsx(_components.code,{children:`GET /api/v1/async/media/tasks`}),` принимает `,_jsx(_components.strong,{children:`длинную`}),` форму: `,_jsx(_components.code,{children:`pending`}),`, `,_jsx(_components.code,{children:`processing`}),`, `,_jsx(_components.code,{children:`completed`}),`, `,_jsx(_components.code,{children:`failed`}),`, `,_jsx(_components.code,{children:`cancelled`}),`. Это разные пространства имён, и путать их — самая частая ошибка интеграции: фильтр `,_jsx(_components.code,{children:`status=completed`}),` возвращает задачи, у которых `,_jsx(_components.code,{children:`state`}),` равен `,_jsx(_components.code,{children:`success`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Подробнее — на странице `,_jsx(_components.a,{href:`/api-reference/media/list`,children:`Список задач`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`разбор-результата`,children:`Разбор результата`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`resultJson`}),` — это `,_jsx(_components.strong,{children:`строка`}),`, а не объект. Её нужно распарсить.`]}),`\n`,_jsx(CodeBlock,{filename:`Python`,numberOfLines:`12`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`12`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` os`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`task `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.get(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://speshu.ai/api/v1/async/media/tasks/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`TASK_ID`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Authorization\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bearer `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`os.environ[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'SPESHU_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`30`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` task[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"state\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`==`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` urls `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json.loads(task[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resultJson\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resultUrls\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Для обычных генераций внутри `,_jsx(_components.code,{children:`resultJson`}),` лежит ровно `,_jsx(_components.code,{children:`{\"resultUrls\": [\"https://…\", …]}`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Для музыкальных задач объект богаче — там есть `,_jsx(_components.code,{children:`tracks`}),` с дорожками:`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Ключ трека`}),_jsx(_components.th,{children:`Описание`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`id`})}),_jsx(_components.td,{children:`Идентификатор дорожки — он нужен для запроса таймкодов слов`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`audio_url`})}),_jsx(_components.td,{children:`Ссылка на аудио`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`title`}),`, `,_jsx(_components.code,{children:`tags`}),`, `,_jsx(_components.code,{children:`duration`})]}),_jsx(_components.td,{children:`Метаданные трека`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`model_name`}),`, `,_jsx(_components.code,{children:`prompt`})]}),_jsx(_components.td,{children:`Чем и из чего сделано`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`image_url`}),`, `,_jsx(_components.code,{children:`source_image_url`})]}),_jsx(_components.td,{children:`Обложка и исходное изображение`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`Ссылки в `,_jsx(_components.code,{children:`resultUrls`}),` всегда ведут на наш CDN — адреса провайдера наружу не отдаются.`]}),`\n`,_jsx(Heading,{level:`2`,id:`ошибка-генерации`,children:`Ошибка генерации`}),`\n`,_jsxs(_components.p,{children:[`Если задача завершилась неудачей, `,_jsx(_components.code,{children:`failCode`}),` и `,_jsx(_components.code,{children:`failMsg`}),` заполняются, остальные поля остаются как были. Причина может быть в промпте, в параметрах, во входном файле или на стороне провайдера.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Задача чужого аккаунта отвечает `,_jsx(_components.code,{children:`404`}),`, а не `,_jsx(_components.code,{children:`403`}),`. Не стройте логику на различении этих двух случаев — различить их невозможно, и в этом смысл такого поведения.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`скачать-результат`,children:`Скачать результат`}),`\n`,_jsxs(_components.p,{children:[`Готовые файлы можно забрать одним запросом: `,_jsx(_components.a,{href:`/api-reference/media/tasks`,children:`скачивание результата`}),` отдаёт сам файл или ZIP-архив, если результатов несколько.`]}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Создать задачу`,icon:`plus`,href:`/api-reference/media/create`,children:_jsx(_components.p,{children:`Запуск генерации`})}),_jsx(Card,{title:`Список задач`,icon:`list`,href:`/api-reference/media/list`,children:_jsx(_components.p,{children:`Фильтры и пагинация`})}),_jsx(Card,{title:`Жизненный цикл задачи`,icon:`rotate`,href:`/api-reference/media/tasks`,children:_jsx(_components.p,{children:`Скачать, архивировать, удалить`})}),_jsx(Card,{title:`Ошибки`,icon:`triangle-exclamation`,href:`/errors`,children:_jsx(_components.p,{children:`Коды и что с ними делать`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Статус задачи","description":"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат","openapi":"api-reference/openapi.json GET /api/v1/async/media/tasks/{task_id}","icon":"magnifying-glass","href":"/api-reference/media/status"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Объект задачи","slug":"объект-задачи","depth":2,"children":[]},{"title":"Состояния","slug":"состояния","depth":2,"children":[]},{"title":"Разбор результата","slug":"разбор-результата","depth":2,"children":[]},{"title":"Ошибка генерации","slug":"ошибка-генерации","depth":2,"children":[]},{"title":"Скачать результат","slug":"скачать-результат","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Медиа"],"operationId":"getMediaTask","summary":"Статус задачи","description":"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат","responses":{"200":"ce6fee4e-aae3-4730-b4d5-8366e29c6c42","400":"d68f922e-87c5-4f7c-808a-8131f2feee85","401":"ba1addd1-6619-4e2d-80fb-000333347226","404":"d5f61a9a-ecb7-4225-897a-6c800ad7a95b","500":"95977d41-e101-44ce-97bb-dd95a8eac753"},"method":"get","type":"path","servers":["8a2807ef-ac4b-47e6-8d72-307eede96316"],"security":["e2ba089c-3a25-43cf-af05-e084bb9608e5"],"path":"/api/v1/async/media/tasks/{task_id}","baseUrlOptions":["https://speshu.ai"],"title":"Статус задачи","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"155aedb2-2449-4ec7-ae96-42eee4f8a584":{"name":"task_id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Идентификатор задачи из ответа на создание.","uniqueKey":"","typeLabel":"string"},"description":"Идентификатор задачи из ответа на создание."}},"responses":{"ce6fee4e-aae3-4730-b4d5-8366e29c6c42":{"description":"Состояние задачи.","content":{"application/json":{"schema":{"type":"object","required":["code","msg"],"properties":{"code":{"type":"integer","examples":[200],"isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","examples":["success"],"isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"type":"object","properties":{"taskId":{"type":"string","isRequired":true,"uniqueKey":"data.taskId","typeLabel":"string"},"model":{"type":"string","description":"Идентификатор модели, с которой была создана задача.","isRequired":true,"uniqueKey":"data.model","typeLabel":"string"},"state":{"type":"string","enum":["waiting","success","fail"],"description":"`waiting` — задача в работе, `success` — завершена, `fail` — завершилась ошибкой или отменена.","isRequired":true,"uniqueKey":"data.state","typeLabel":"enum\u003cstring>"},"createTime":{"type":"integer","description":"Момент создания в миллисекундах Unix.","isRequired":true,"uniqueKey":"data.createTime","typeLabel":"integer"},"providerTaskId":{"type":"string","uniqueKey":"data.providerTaskId","typeLabel":"string"},"sessionId":{"type":"string","uniqueKey":"data.sessionId","typeLabel":"string"},"prompt":{"type":"string","uniqueKey":"data.prompt","typeLabel":"string"},"params":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"data.params.additionalProperties","typeLabel":"string"},"description":"Параметры, повлиявшие на цену: длительность, разрешение и подобные.","uniqueKey":"data.params","typeLabel":"object"},"inputParams":{"type":"object","additionalProperties":true,"description":"Полный набор входных параметров задачи.","uniqueKey":"data.inputParams","typeLabel":"object"},"resultJson":{"type":"string","description":"Результат в виде JSON-строки — её нужно распарсить. Для обычных задач: `{\"resultUrls\": [...]}`. Для музыкальных: объект с `tracks`.","uniqueKey":"data.resultJson","typeLabel":"string"},"failCode":{"oneOf":[{"type":"string","description":"Код ошибки генерации. `null`, если задача не завершилась ошибкой.","uniqueKey":"data.failCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Код ошибки генерации. `null`, если задача не завершилась ошибкой.","uniqueKey":"data.failCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.failCode","typeLabel":"string | null"},"failMsg":{"oneOf":[{"type":"string","description":"Текст ошибки генерации. `null`, если задача не завершилась ошибкой.","uniqueKey":"data.failMsg.oneOf.0","typeLabel":"string"},{"type":"null","description":"Текст ошибки генерации. `null`, если задача не завершилась ошибкой.","uniqueKey":"data.failMsg.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.failMsg","typeLabel":"string | null"},"providerDetails":{"type":"object","additionalProperties":true,"uniqueKey":"data.providerDetails","typeLabel":"object"}},"required":["taskId","model","state","createTime"],"uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":200,"msg":"success","data":{"taskId":"\u003cstring>","model":"\u003cstring>","state":"waiting","createTime":123,"providerTaskId":"\u003cstring>","sessionId":"\u003cstring>","prompt":"\u003cstring>","params":{},"inputParams":{},"resultJson":"\u003cstring>","failCode":"\u003cstring>","failMsg":"\u003cstring>","providerDetails":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"d68f922e-87c5-4f7c-808a-8131f2feee85":{"description":"Ошибка медиа-эндпоинта.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP-статус, продублированный в теле.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"}},"required":["code","msg"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"ba1addd1-6619-4e2d-80fb-000333347226":{"description":"Ошибка в формате OpenAI.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"type":{"type":"string","examples":["invalid_request_error"],"description":"`authentication_error` при 401, `rate_limit_error` при 429, `permission_error` при 403, в остальных случаях `invalid_request_error`, `api_error` или `internal_error`.","isRequired":true,"uniqueKey":"error.type","typeLabel":"string"},"param":{"oneOf":[{"type":"string","uniqueKey":"error.param.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"error.param.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.param","typeLabel":"string | null"},"code":{"oneOf":[{"type":"string","examples":["invalid_request"],"description":"Машиночитаемый код: `invalid_api_key`, `unauthorized`, `insufficient_quota`, `rate_limit_exceeded`, `token_limit_exceeded`, `content_too_large`, `limit_exceeded`, `model_not_found`, `no_providers`, `service_unavailable`, `provider_error`, `invalid_request`, `context_length_exceeded`, `internal_error`.","uniqueKey":"error.code.oneOf.0","typeLabel":"string"},{"type":"null","examples":["invalid_request"],"description":"Машиночитаемый код: `invalid_api_key`, `unauthorized`, `insufficient_quota`, `rate_limit_exceeded`, `token_limit_exceeded`, `content_too_large`, `limit_exceeded`, `model_not_found`, `no_providers`, `service_unavailable`, `provider_error`, `invalid_request`, `context_length_exceeded`, `internal_error`.","uniqueKey":"error.code.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.code","typeLabel":"string | null"}},"required":["message","type"],"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","type":"invalid_request_error","param":"\u003cstring>","code":"invalid_request"}}}},"exampleType":"generated"}},"exampleType":"generated"},"d5f61a9a-ecb7-4225-897a-6c800ad7a95b":{"description":"Ошибка медиа-эндпоинта.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP-статус, продублированный в теле.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"}},"required":["code","msg"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"95977d41-e101-44ce-97bb-dd95a8eac753":{"description":"Ошибка медиа-эндпоинта.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"HTTP-статус, продублированный в теле.","isRequired":true,"uniqueKey":"code","typeLabel":"integer"},"msg":{"type":"string","isRequired":true,"uniqueKey":"msg","typeLabel":"string"},"data":{"oneOf":[{"type":"object","uniqueKey":"data.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"data.oneOf.1","typeLabel":"null"}],"uniqueKey":"data","typeLabel":"object | null"}},"required":["code","msg"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"code":123,"msg":"\u003cstring>","data":{}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"e2ba089c-3a25-43cf-af05-e084bb9608e5":{"BearerAuth":{"type":"http","scheme":"bearer","description":"API-ключ в формате `sk-...`. Альтернативно — заголовок `X-Api-Key: sk-...` (совместимо с Anthropic SDK).","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"8a2807ef-ac4b-47e6-8d72-307eede96316":{"url":"https://speshu.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API-ключ в формате `sk-...`. Альтернативно — заголовок `X-Api-Key: sk-...` (совместимо с Anthropic SDK).","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API-ключ в формате `sk-...`. Альтернативно — заголовок `X-Api-Key: sk-...` (совместимо с Anthropic SDK).","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"speshu","siteName":"Документация SpeShu.AI","title":"Статус задачи - Документация SpeShu.AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"ru":{"href":"/api-reference/media/status","matchLevel":0}}},"lastModified":"2026-10-02T04:29:21.549Z","originalFileLocation":"api-reference/media/status.mdx","locale":"ru"},"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=\"light\"}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=\"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат\">\u003cmeta data-mint-head name=\"application-name\" content=\"Документация SpeShu.AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_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=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Статус задачи - Документация SpeShu.AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Документация SpeShu.AI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://speshu.ai/docs/api-reference/media/status\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://speshu.mintlify.site/docs/_mintlify/api/og/v2?division=%D0%9C%D0%B5%D0%B4%D0%B8%D0%B0\u0026amp;title=%D0%A1%D1%82%D0%B0%D1%82%D1%83%D1%81+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8\u0026amp;description=GET+%2Fapi%2Fv1%2Fasync%2Fmedia%2Ftasks%2F%7Btask_id%7D+%E2%80%94+%D1%81%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D0%B5+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8+%D0%B8+%D0%B5%D1%91+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82\u0026amp;theme=e30006b63b476fd6b922259f\u0026amp;signature=733d222de1318ed30b07227fd3a871b4ba98da7bac4bb5e0dc38b1b81eaf6353\">\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=\"Статус задачи - Документация SpeShu.AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://speshu.mintlify.site/docs/_mintlify/api/og/v2?division=%D0%9C%D0%B5%D0%B4%D0%B8%D0%B0\u0026amp;title=%D0%A1%D1%82%D0%B0%D1%82%D1%83%D1%81+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8\u0026amp;description=GET+%2Fapi%2Fv1%2Fasync%2Fmedia%2Ftasks%2F%7Btask_id%7D+%E2%80%94+%D1%81%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D0%B5+%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8+%D0%B8+%D0%B5%D1%91+%D1%80%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82\u0026amp;theme=e30006b63b476fd6b922259f\u0026amp;signature=733d222de1318ed30b07227fd3a871b4ba98da7bac4bb5e0dc38b1b81eaf6353\">\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=\"/docs/mintlify-assets/_mintlify/favicons/speshu/h8uCrMo0u7Pj0sRw/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Документация SpeShu.AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff7819\">\u003clink data-mint-head rel=\"canonical\" href=\"https://speshu.ai/docs/api-reference/media/status\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/media/status.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://speshu.ai/#organization\",\"name\":\"Документация SpeShu.AI\",\"url\":\"https://speshu.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/speshu/HiupqL5TwnvMFufM/logo/speshu_logo.png?fit=max\u0026auto=format\u0026n=HiupqL5TwnvMFufM\u0026q=85\u0026s=fd0fe3cc5f642899ca9d4e8bdee6a0f0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://speshu.ai/docs#website\",\"name\":\"Документация SpeShu.AI\",\"url\":\"https://speshu.ai/docs\",\"publisher\":{\"@id\":\"https://speshu.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://speshu.ai/docs/api-reference/media/status#webpage\",\"url\":\"https://speshu.ai/docs/api-reference/media/status\",\"name\":\"Статус задачи\",\"description\":\"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат\",\"dateModified\":\"2026-10-02T04:29:21.549Z\",\"isPartOf\":{\"@id\":\"https://speshu.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://speshu.ai/docs/api-reference/media/status#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://speshu.ai/docs/api-reference/media/status#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Медиа\",\"item\":\"https://speshu.ai/docs/api-reference/media/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Статус задачи\",\"item\":\"https://speshu.ai/docs/api-reference/media/status\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://speshu.ai/docs/api-reference/media/status#apireference\",\"headline\":\"Статус задачи\",\"name\":\"Статус задачи\",\"description\":\"GET /api/v1/async/media/tasks/{task_id} — состояние задачи и её результат\",\"url\":\"https://speshu.ai/docs/api-reference/media/status\",\"mainEntityOfPage\":{\"@id\":\"https://speshu.ai/docs/api-reference/media/status#webpage\"},\"dateModified\":\"2026-10-02T04:29:21.549Z\",\"publisher\":{\"@id\":\"https://speshu.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://speshu.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Документация SpeShu.AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Документация SpeShu.AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/media/status.md","siteName":"Документация SpeShu.AI","nav":{"global":{"anchors":[{"anchor":"Модели","icon":"microchip","href":"/api-reference/media/models"},{"anchor":"Каталог","icon":"list","href":"/models"},{"anchor":"Профиль","icon":"gauge","href":"https://speshu.ai/profile"},{"anchor":"Поддержка","icon":"headset","href":"/support"}]},"languages":[{"language":"ru","tabs":[{"tab":"Документация","pages":[{"title":"Документация","href":""}]},{"tab":"Руководства","pages":[{"title":"Руководства","href":"/gaidy/getting-started"}]},{"tab":"API Reference","groups":[{"group":"Текстовая генерация","pages":[{"title":"Введение в API","icon":"book","href":"/api-reference/introduction"},{"title":"Запрос чату","openapi":"api-reference/openapi.json POST /api/v1/chat/completions","playground":"interactive","icon":"message","href":"/api-reference/chat/completions"},{"title":"Responses","openapi":"api-reference/openapi.json POST /api/v1/responses","icon":"list","href":"/api-reference/responses/create"},{"title":"Anthropic Messages","openapi":"api-reference/openapi.json POST /api/v1/messages","icon":"a","href":"/api-reference/messages/create"},{"title":"Оценка решений","openapi":"api-reference/openapi.json POST /api/v1/decisions","playground":"interactive","icon":"scale-balanced","href":"/api-reference/decisions/create"},{"title":"Эмбеддинги","openapi":"api-reference/openapi.json POST /api/v1/embeddings","playground":"interactive","icon":"circle-nodes","href":"/api-reference/embeddings/create"},{"title":"Ранжирование","openapi":"api-reference/openapi.json POST /api/v1/rerank","playground":"interactive","icon":"arrow-down-short-wide","href":"/api-reference/rerank/create"}]},{"group":"Инструменты","pages":[{"title":"Поиск в интернете","openapi":"api-reference/openapi.json POST /api/v1/tools/search","playground":"interactive","icon":"magnifying-glass","href":"/api-reference/tools/search"},{"title":"Загрузка страницы","openapi":"api-reference/openapi.json POST /api/v1/tools/fetch","playground":"interactive","icon":"file-lines","href":"/api-reference/tools/fetch"}]},{"group":"Аудио","pages":[{"title":"Синтез речи","openapi":"api-reference/openapi.json POST /api/v1/audio/speech","playground":"interactive","icon":"volume-high","href":"/api-reference/audio/speech"},{"title":"Распознавание речи","openapi":"api-reference/openapi.json POST /api/v1/audio/transcriptions","playground":"interactive","icon":"microphone","href":"/api-reference/audio/transcriptions"}]},{"group":"Медиа","pages":[{"title":"Создать задачу","description":"POST /api/v1/async/media/tasks — запуск генерации изображения, видео, аудио или музыки","openapi":"api-reference/openapi.json POST /api/v1/async/media/tasks","playground":"interactive","icon":"plus","href":"/api-reference/media/create"},{"title":"Статус задачи","openapi":"api-reference/openapi.json GET /api/v1/async/media/tasks/{task_id}","icon":"magnifying-glass","href":"/api-reference/media/status"},{"title":"Список задач","description":"GET /api/v1/async/media/tasks — фильтры, пагинация и порядок выдачи","openapi":"api-reference/openapi.json GET /api/v1/async/media/tasks","icon":"list","href":"/api-reference/media/list"},{"title":"Жизненный цикл задачи","openapi":"/api-reference/openapi.json","icon":"rotate","href":"/api-reference/media/tasks"},{"title":"Медиа-сессии","icon":"folder","href":"/api-reference/media/sessions"},{"title":"Каталог медиа-моделей","openapi":"api-reference/openapi.json GET /api/v1/media/models","icon":"microchip","href":"/api-reference/media/models"}]},{"group":"Хранилище","pages":[{"title":"Загрузить файл","openapi":"api-reference/openapi.json POST /api/v1/storage/upload","playground":"interactive","icon":"upload","href":"/api-reference/storage/upload"},{"title":"Список файлов","openapi":"api-reference/openapi.json GET /api/v1/storage","playground":"interactive","icon":"list","href":"/api-reference/storage/list"},{"title":"Метаданные файла","openapi":"api-reference/openapi.json GET /api/v1/storage/{id}","playground":"interactive","icon":"magnifying-glass","href":"/api-reference/storage/get"},{"title":"Удалить файл","openapi":"api-reference/openapi.json DELETE /api/v1/storage/{id}","icon":"trash","href":"/api-reference/storage/delete"}]},{"group":"Модели и баланс","pages":[{"title":"Каталог моделей","openapi":"api-reference/openapi.json GET /api/v1/models","playground":"interactive","icon":"microchip","href":"/api-reference/models/list"},{"title":"Баланс","openapi":"api-reference/openapi.json GET /api/v1/balance","playground":"interactive","icon":"wallet","href":"/api-reference/other/balance"}]}]}]}]},"basePath":"","title":"Статус задачи - Документация SpeShu.AI","buildId":"dpl_2AK98Hxhwu4fUXpx9atbv41cC328","deploymentId":"dpl_2AK98Hxhwu4fUXpx9atbv41cC328","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-EBSrFTg1.js","utils-Y_7TcRh4.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D1wvvkPH.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-aT0ty6oN.js","snippetPresets-DoNRuyJc.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","Page-DCFaZE46.js","ApiExamples-CXRajFpn.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BAyOsINj.js","shallow-CIcHqV1v.js","getApiPlaygroundDisplay-C5igZwEf.js","CodeSnippet-BFWnQLNh.js","CodeSnippets-Cx2mFgZW.js","getPastedJson-BOy09PZp.js","icon-BwmYtB6R.js","MethodPill-DAIhq-iu.js","DuplicateIcon-DFM8Q3ph.js","createIcon-0UdvzB4Z.js","DynamicMarkdown-DYYZTGpa.js","SectionHeading-BFCDRUuH.js","axios-vUo_bRtp.js","Markdown-C6TcKjiR.js","clsx-Y_UC780V.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-PCbBHBTv.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-D4q_oRML.js"]}