Upload a file to Fanify Hub once and reference it by its sha256 hash.
A Fanify Hub file is identified by its SHA-256 hash. In a generation’s input, reference it as sha256:<64 hexadecimal characters>: this is the recommended form for every model field with the URI format.
Check before uploading
Compute the file’s hash, then ask the Hub whether it already has it. This route requires no authentication.
duration_seconds is the duration of a video or audio file, measured by the Hub from its headers (MP4, MOV, WebM with a duration, WAV, MP3; 3 decimals). It is null for an image or a file whose duration cannot be read. A model priced on the duration of an input file is billed on this value (Models and pricing). Generation outputs carry it too when it is known.The multipart field must be named file. The maximum size is 1 GiB by default. It can be lower depending on the service configuration. Uploading content you already sent creates no duplicate: the response is the same (same sha256, kindupload) and the file’s lifetime is extended. Check with HEAD first to avoid a needless upload.url is the file’s download link. It is still accepted in an input, but prefer sha256:<hash>.
If the Hub does not have a referenced file, the submission returns 422 missing_resource and creates no generation. The missing property lists the hashes to supply:
Upload these files with POST /api/v1/hub/files, then resubmit the same request with the same Idempotency-Key.A public URL from another site is still accepted and forwarded as is to the provider, without going through the Hub, except in the input field whose duration sets the price of a model: the Hub never downloads that URL, so it cannot know its duration and answers 422 input_duration_unavailable. A legacy Hub file URL without a hash (/api/v1/hub/files/<token>) is rejected with 400 invalid_input: reference the file as sha256:<hash>.
An uploaded file expires 7 days by default after its last use: every generation that references it extends its expiry. Generated outputs expire after 7 days by default. The effective values remain available in expires_at and can vary with the service configuration. An expired download returns 410 file_expired.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Fanify","colors":{"primary":"#4972F3","light":"#D925D2","dark":"#D925D2"},"logo":{"light":"https://mintcdn.com/saufrasoft/y8Uptj2HlX4eg8dh/logo/fanify-colored-transparent-1024px.png?fit=max\u0026auto=format\u0026n=y8Uptj2HlX4eg8dh\u0026q=85\u0026s=174c21d6d91fcf57271890b1f3e57e6a","dark":"https://mintcdn.com/saufrasoft/y8Uptj2HlX4eg8dh/logo/fanify-colored-transparent-1024px.png?fit=max\u0026auto=format\u0026n=y8Uptj2HlX4eg8dh\u0026q=85\u0026s=174c21d6d91fcf57271890b1f3e57e6a"},"favicon":"https://mintcdn.com/saufrasoft/y8Uptj2HlX4eg8dh/logo/favicon.ico?fit=max\u0026auto=format\u0026n=y8Uptj2HlX4eg8dh\u0026q=85\u0026s=9bea3adf79a19604764594f2ac9abbab","navbar":{"links":[{"href":"https://fanifyai.com/","label":"Website"},{"href":"https://fanifyai.com/contact","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://fanifyai.com/console"}},"footer":{"socials":{"discord":"https://discord.gg/kW93Ug4wTJ"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"fr","href":"fr/basics/introduction"},{"language":"en","href":"en/hub/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"saufrasoft","hasAudioNarration":false,"actualSubdomain":"saufrasoft","customDomains":["docs.fanifyai.com"],"gitSource":{"type":"github","owner":"saufras0ft","repo":"fanify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b025ff116b5d194c012a1b5","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"fr","tag":"Avancé","count":291},{"language":"fr","tag":"Stratégies","count":268},{"language":"fr","tag":"Conditions","count":228},{"language":"fr","tag":"Actions","count":39},{"language":"fr","tag":"Fanify Hub","count":39},{"language":"en","tag":"Fanify Hub","count":34},{"language":"fr","tag":"Messages","count":28},{"language":"fr","tag":"Compte du fan","count":28},{"language":"fr","tag":"Style de vie","count":27},{"language":"fr","tag":"Basique","count":27},{"language":"en","tag":"API reference","count":23},{"language":"fr","tag":"Référence API","count":23},{"language":"en","tag":"API","count":9},{"language":"en","tag":"Files","count":5},{"language":"en","tag":"Generations","count":4},{"language":"en","tag":"API keys","count":3},{"language":"en","tag":"Webhooks","count":3},{"language":"en","tag":"Models","count":2},{"language":"en","tag":"Account","count":1},{"language":"en","tag":"Chat","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":".faq-tag{display:inline-block;padding:2px 8px;font-size:10px;font-weight:500;letter-spacing:0.02em;border-radius:6px;background:rgba(73, 114, 243, 0.08);color:#4972F3;border:1px solid rgba(73, 114, 243, 0.15);transition:background 0.15s ease, border-color 0.15s ease}.dark .faq-tag{background:rgba(217, 37, 210, 0.12);color:#D925D2;border-color:rgba(217, 37, 210, 0.25)}.hub-agent-card [data-component-part=\"card-content-container\"]{padding-block:0.75rem}.hub-agent-card [data-component-part=\"card-cta\"]{margin-top:0.5rem}"}]}
{"page":{"pagePath":"en/hub/files","slug":"/en/hub/files","pageMetadata":{"title":"Files","description":"Upload a file to Fanify Hub once and reference it by its sha256 hash.","href":"/en/hub/files"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload a file to Fanify Hub once and reference it by its sha256 hash.\"\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`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`A Fanify Hub file is identified by its SHA-256 hash. In a generation’s `,_jsx(_components.code,{children:`input`}),`, reference it as `,_jsx(_components.code,{children:`sha256:\u003c64 hexadecimal characters>`}),`: this is the recommended form for every model field with the URI format.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-before-uploading`,children:`Check before uploading`}),`\n`,_jsx(_components.p,{children:`Compute the file’s hash, then ask the Hub whether it already has it. This route requires no authentication.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`HASH`}),_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:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sha256sum`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` reference.png`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` cut`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`' '`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -f1`}),_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\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -I`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://fanifyai.com/api/v1/hub/files/sha256/`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$HASH`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`200`}),`: the Hub has the file, send nothing and use `,_jsx(_components.code,{children:`sha256:$HASH`}),` directly. `,_jsx(_components.code,{children:`410 file_expired`}),`: upload the file.`]}),`\n`,_jsx(Heading,{level:`2`,id:`upload-a-file`,children:`Upload a file`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://fanifyai.com/api/v1/hub/files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$FANIFY_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -F`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"file=@reference.png;type=image/png\"`})]}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://fanifyai.com/api/v1/hub/files/sha256/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sha256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"size\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`812345`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"media_type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image/png\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-09-14T10:00:00Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"kind\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"upload\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"duration_seconds\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`duration_seconds`}),` is the duration of a video or audio file, measured by the Hub from its headers (MP4, MOV, WebM with a duration, WAV, MP3; 3 decimals). It is `,_jsx(_components.code,{children:`null`}),` for an image or a file whose duration cannot be read. A model priced on the duration of an input file is billed on this value (`,_jsx(_components.a,{href:`/en/hub/models-and-pricing#input-duration-pricing`,children:`Models and pricing`}),`). Generation outputs carry it too when it is known.`]}),`\n`,_jsxs(_components.p,{children:[`The multipart field must be named `,_jsx(_components.code,{children:`file`}),`. The maximum size is `,_jsx(_components.strong,{children:`1 GiB by default`}),`. It can be lower depending on the service configuration. Uploading content you already sent creates no duplicate: the response is the same (same `,_jsx(_components.code,{children:`sha256`}),`, `,_jsx(_components.code,{children:`kind`}),` `,_jsx(_components.code,{children:`upload`}),`) and the file’s lifetime is extended. Check with `,_jsx(_components.code,{children:`HEAD`}),` first to avoid a needless upload.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`url`}),` is the file’s download link. It is still accepted in an `,_jsx(_components.code,{children:`input`}),`, but prefer `,_jsx(_components.code,{children:`sha256:\u003chash>`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`reference-a-file-in-a-generation`,children:`Reference a file in a generation`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nano-banana-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"a cat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"image_input\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`If the Hub does not have a referenced file, the submission returns `,_jsx(_components.code,{children:`422 missing_resource`}),` and creates no generation. The `,_jsx(_components.code,{children:`missing`}),` property lists the hashes to supply:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`json`,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:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`7`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://fanifyai.com/docs/hub/errors#missing_resource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Missing resource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`422`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"missing_resource\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missing\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"sha256\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Upload these files with `,_jsx(_components.code,{children:`POST /api/v1/hub/files`}),`, then resubmit the same request with the same `,_jsx(_components.code,{children:`Idempotency-Key`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A public URL from another site is still accepted and forwarded as is to the provider, without going through the Hub, except in the input field whose duration sets the price of a model: the Hub never downloads that URL, so it cannot know its duration and answers `,_jsx(_components.a,{href:`/en/hub/errors#input_duration_unavailable`,children:_jsx(_components.code,{children:`422 input_duration_unavailable`})}),`. A legacy Hub file URL without a hash (`,_jsx(_components.code,{children:`/api/v1/hub/files/\u003ctoken>`}),`) is rejected with `,_jsx(_components.code,{children:`400 invalid_input`}),`: reference the file as `,_jsx(_components.code,{children:`sha256:\u003chash>`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`accepted-types`,children:`Accepted types`}),`\n`,_jsxs(_components.p,{children:[`Images: `,_jsx(_components.code,{children:`image/png`}),`, `,_jsx(_components.code,{children:`image/jpeg`}),`, `,_jsx(_components.code,{children:`image/webp`}),`, `,_jsx(_components.code,{children:`image/gif`}),`, `,_jsx(_components.code,{children:`image/bmp`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Video: `,_jsx(_components.code,{children:`video/mp4`}),`, `,_jsx(_components.code,{children:`video/webm`}),`, `,_jsx(_components.code,{children:`video/quicktime`}),`, `,_jsx(_components.code,{children:`video/x-matroska`}),`, `,_jsx(_components.code,{children:`video/x-msvideo`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Audio and documents: `,_jsx(_components.code,{children:`audio/mpeg`}),`, `,_jsx(_components.code,{children:`audio/wav`}),`, `,_jsx(_components.code,{children:`audio/ogg`}),`, `,_jsx(_components.code,{children:`audio/flac`}),`, `,_jsx(_components.code,{children:`audio/mp4`}),`, `,_jsx(_components.code,{children:`audio/aac`}),`, `,_jsx(_components.code,{children:`application/pdf`}),`, `,_jsx(_components.code,{children:`application/octet-stream`}),`.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`An uploaded file expires `,_jsx(_components.strong,{children:`7 days by default after its last use`}),`: every generation that references it extends its expiry. Generated outputs expire after `,_jsx(_components.strong,{children:`7 days by default`}),`. The effective values remain available in `,_jsx(_components.code,{children:`expires_at`}),` and can vary with the service configuration. An expired download returns `,_jsx(_components.code,{children:`410 file_expired`}),`.`]})})]})}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":"Files","description":"Upload a file to Fanify Hub once and reference it by its sha256 hash.","href":"/en/hub/files"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Check before uploading","slug":"check-before-uploading","depth":2,"children":[]},{"title":"Upload a file","slug":"upload-a-file","depth":2,"children":[]},{"title":"Reference a file in a generation","slug":"reference-a-file-in-a-generation","depth":2,"children":[]},{"title":"Accepted types","slug":"accepted-types","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"saufrasoft","siteName":"Fanify","title":"Files - Fanify","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"fr":{"href":"/fr/hub/files","matchLevel":1},"en":{"href":"/en/hub/files","matchLevel":0}}},"lastModified":"2026-11-22T03:22:37.663Z","originalFileLocation":"en/hub/files.mdx","locale":"en"},"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=\"Upload a file to Fanify Hub once and reference it by its sha256 hash.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Fanify\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_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/saufrasoft/c9PH6pWdD6oy3Fby/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Files - Fanify\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a file to Fanify Hub once and reference it by its sha256 hash.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Fanify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.fanifyai.com/en/hub/files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://saufrasoft.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Files\u0026amp;description=Upload+a+file+to+Fanify+Hub+once+and+reference+it+by+its+sha256+hash.\u0026amp;theme=ed68368754f814efe51b074f\u0026amp;signature=738431eff6bac33a6b326f22f4e2c59472c728f954271730f0032adc473d1c5c\">\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=\"Files - Fanify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a file to Fanify Hub once and reference it by its sha256 hash.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://saufrasoft.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Files\u0026amp;description=Upload+a+file+to+Fanify+Hub+once+and+reference+it+by+its+sha256+hash.\u0026amp;theme=ed68368754f814efe51b074f\u0026amp;signature=738431eff6bac33a6b326f22f4e2c59472c728f954271730f0032adc473d1c5c\">\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/saufrasoft/c9PH6pWdD6oy3Fby/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Fanify\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4972F3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.fanifyai.com/en/hub/files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/hub/files.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.fanifyai.com/en/hub/files\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"fr\" href=\"https://docs.fanifyai.com/fr/hub/files\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.fanifyai.com/fr/hub/files\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.fanifyai.com/#organization\",\"name\":\"Fanify\",\"url\":\"https://docs.fanifyai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/saufrasoft/y8Uptj2HlX4eg8dh/logo/fanify-colored-transparent-1024px.png?fit=max\u0026auto=format\u0026n=y8Uptj2HlX4eg8dh\u0026q=85\u0026s=174c21d6d91fcf57271890b1f3e57e6a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.fanifyai.com#website\",\"name\":\"Fanify\",\"url\":\"https://docs.fanifyai.com\",\"publisher\":{\"@id\":\"https://docs.fanifyai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.fanifyai.com/en/hub/files#webpage\",\"url\":\"https://docs.fanifyai.com/en/hub/files\",\"name\":\"Files\",\"description\":\"Upload a file to Fanify Hub once and reference it by its sha256 hash.\",\"dateModified\":\"2026-11-22T03:22:37.663Z\",\"isPartOf\":{\"@id\":\"https://docs.fanifyai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.fanifyai.com/en/hub/files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.fanifyai.com/en/hub/files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API\",\"item\":\"https://docs.fanifyai.com/en/hub/authentication\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Files\",\"item\":\"https://docs.fanifyai.com/en/hub/files\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.fanifyai.com/en/hub/files#article\",\"headline\":\"Files\",\"name\":\"Files\",\"description\":\"Upload a file to Fanify Hub once and reference it by its sha256 hash.\",\"url\":\"https://docs.fanifyai.com/en/hub/files\",\"mainEntityOfPage\":{\"@id\":\"https://docs.fanifyai.com/en/hub/files#webpage\"},\"dateModified\":\"2026-11-22T03:22:37.663Z\",\"publisher\":{\"@id\":\"https://docs.fanifyai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.fanifyai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Fanify\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Fanify\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/en/hub/files.md","siteName":"Fanify","nav":{"global":null,"languages":[{"language":"fr","pages":[{"title":"fr","href":"/fr/hub/files"}]},{"language":"en","tabs":[{"tab":"Fanify Hub","icon":"wand-magic-sparkles","pages":[{"title":"Overview","href":"/en/hub/overview"},{"title":"Use Fanify Hub with an AI","href":"/en/hub/agent-skill"},{"group":"API","icon":"plug","expanded":false,"pages":[{"title":"Authentication","href":"/en/hub/authentication"},{"title":"Models and pricing","href":"/en/hub/models-and-pricing"},{"title":"Generations","href":"/en/hub/generations"},{"title":"Decisions","href":"/en/hub/decisions"},{"title":"Embeddings","href":"/en/hub/embeddings"},{"title":"Transcriptions","description":"Transcribe audio files to text, with optional timestamps, through an OpenAI-compatible route.","href":"/en/hub/transcriptions"},{"title":"Files","href":"/en/hub/files"},{"title":"Webhooks","description":"Receive status changes for Fanify Hub generations.","href":"/en/hub/webhooks"},{"title":"Errors","href":"/en/hub/errors"}]},{"group":"API reference","icon":"code","expanded":false,"pages":[{"group":"Chat","pages":[{"title":"Chat Completion","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/chat/completions","href":"/hub/reference-en/chat/chat-completion"}]},{"group":"Decisions","pages":[{"title":"Decision","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/decisions","href":"/hub/reference-en/decisions/decision"}]},{"group":"Embeddings","pages":[{"title":"Embeddings","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/embeddings","href":"/hub/reference-en/embeddings/embeddings"}]},{"group":"Transcriptions","pages":[{"title":"Transcription","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/audio/transcriptions","href":"/hub/reference-en/transcriptions/transcription"}]},{"group":"Files","pages":[{"title":"List files","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/files","href":"/hub/reference-en/files/list-files"},{"title":"Upload file","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/files","href":"/hub/reference-en/files/upload-file"},{"title":"Download file by hash","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/files/sha256/{hash}","href":"/hub/reference-en/files/download-file-by-hash"},{"title":"Delete file","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json delete /api/v1/hub/files/sha256/{hash}","href":"/hub/reference-en/files/delete-file"},{"title":"Probe file by hash","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json head /api/v1/hub/files/sha256/{hash}","href":"/hub/reference-en/files/probe-file-by-hash"}]},{"group":"Generations","pages":[{"title":"List generations","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/generations","href":"/hub/reference-en/generations/list-generations"},{"title":"Create generation","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/generations","href":"/hub/reference-en/generations/create-generation"},{"title":"Get generation","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/generations/{id}","href":"/hub/reference-en/generations/get-generation"},{"title":"Cancel generation","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/generations/{id}/cancel","href":"/hub/reference-en/generations/cancel-generation"}]},{"group":"API keys","pages":[{"title":"List API keys","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/keys","href":"/hub/reference-en/api-keys/list-api-keys"},{"title":"Create API key","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/keys","href":"/hub/reference-en/api-keys/create-api-key"},{"title":"Revoke API key","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json delete /api/v1/hub/keys/{id}","href":"/hub/reference-en/api-keys/revoke-api-key"}]},{"group":"Account","pages":[{"title":"Get account","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/me","href":"/hub/reference-en/account/get-account"}]},{"group":"Models","pages":[{"title":"List models","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/models","href":"/hub/reference-en/models/list-models"},{"title":"Estimate price","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/models/{id}/pricing","href":"/hub/reference-en/models/estimate-price"}]},{"group":"Webhooks","pages":[{"title":"List webhooks","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/webhooks","href":"/hub/reference-en/webhooks/list-webhooks"},{"title":"Create webhook","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json post /api/v1/hub/webhooks","href":"/hub/reference-en/webhooks/create-webhook"},{"title":"Delete webhook","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json delete /api/v1/hub/webhooks/{id}","href":"/hub/reference-en/webhooks/delete-webhook"}]},{"group":"Reference","pages":[{"title":"OpenAPI document","deprecated":null,"version":null,"openapi":"/hub/openapi/hub.json get /api/v1/hub/openapi.json","href":"/hub/reference-en/reference/openapi-document"}]}]}]}]}]},"basePath":"","title":"Files - Fanify","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":[],"chunks":[]}