How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.
Five API takes input files as URLs. There is no upload endpoint: host the file somewhere public, for example in your own object storage, and pass its HTTPS URL in the request.
Five API checks every input URL when you create the task, before any credit is held. A URL that breaks a rule answers 400 url_not_allowed with the field in param.
HTTPS only.http:// URLs are rejected.
Public host. The host name must resolve, through public DNS, to a public IP address. Private, loopback, link-local, carrier-grade NAT, cloud metadata and other reserved ranges are rejected.
Answers HEAD. Five API sends a HEAD request to the URL. It must answer 2xx, after at most 3 redirects; each redirect target is checked again.
Within the size limit. The Content-Length must not exceed the limit of the model (see below).
The same host rules apply to webhook_url.
Presigned URLs from S3, Google Cloud Storage, Azure Blob Storage, Cloudflare R2 and similar services work well. Keep them valid for at least an hour: a task downloads its input files after it is created, while it is queued.
The URL check at creation can’t see everything inside a file. If a file turns out to be unusable during processing, the task fails and its credits are released:
input_fetch_failed (retryable): the file could not be downloaded or processed, for example because a presigned URL expired.
input_invalid (not retryable): the file was downloaded but its format, dimensions or length do not fit the model.
The host resolves to a private or reserved address
Use a publicly hosted file; internal hosts and DNS overrides are not reachable
The server doesn’t answer HEAD, or answers without Content-Length
Host the file on object storage or a CDN that supports HEAD
More than 3 redirects
Pass the final URL
The file is larger than the model’s limit
Compress or resize it, or choose a model with a higher limit
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Five API","description":"Five API generates AI videos from text, images, reference assets and clips through one REST API: pick a model, create a task, and receive the MP4 by webhook or polling.","colors":{"primary":"#4F46E5","light":"#818CF8","dark":"#4338CA"},"logo":{"light":"https://mintcdn.com/i2v/KgjMBxZ5eIs4maZs/logo/light.svg?fit=max\u0026auto=format\u0026n=KgjMBxZ5eIs4maZs\u0026q=85\u0026s=817eb9e9373c296b1e9e260b8be26b83","dark":"https://mintcdn.com/i2v/KgjMBxZ5eIs4maZs/logo/dark.svg?fit=max\u0026auto=format\u0026n=KgjMBxZ5eIs4maZs\u0026q=85\u0026s=953eeaf693a62c8e68149421ab01a708"},"favicon":"https://mintcdn.com/i2v/KgjMBxZ5eIs4maZs/favicon.svg?fit=max\u0026auto=format\u0026n=KgjMBxZ5eIs4maZs\u0026q=85\u0026s=43cb28fb3c9f167cf6eb331824c0b41c","api":{"playground":{"display":"interactive"},"examples":{"defaults":"all","languages":["bash","python","javascript","go","java","php"],"prefill":true}},"navbar":{"links":[{"href":"mailto:support@fiveapi.ai","label":"Support"}],"primary":{"type":"button","label":"Get API key","href":"https://fiveapi.ai"}},"footer":{"socials":{"website":"https://fiveapi.ai"},"links":[{"header":"Five API","items":[{"label":"Website and console","href":"https://fiveapi.ai"}]},{"header":"Support","items":[{"label":"support@fiveapi.ai","href":"mailto:support@fiveapi.ai"}]}]},"search":{"prompt":"Search the Five API docs..."},"seo":{"indexing":"navigable"},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode","download-spec"],"display":"header"},"markdown":{"instructions":["Five API is a video generation REST API. Base URL: https://api.fiveapi.ai. Authenticate with the header Authorization: Bearer \u003cAPI key>; read the key from the FIVEAPI_API_KEY environment variable and never hard-code it.","Every generation is an asynchronous task: POST /v1/{brand}/{version}/{task} returns a queued task, then poll GET /v1/tasks/{task_id} or receive a signed webhook, and download output.video.url before expires_at (7 days).","The OpenAPI spec is at https://docs.fiveapi.ai/api-reference/openapi.yaml. An installable agent skill: npx skills add https://docs.fiveapi.ai"]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"i2v","hasAudioNarration":false,"actualSubdomain":"i2v","customDomains":["testweb2-docs-openapi.test765.com"],"gitSource":{"type":"github","owner":"billions-x","repo":"openapi-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae1570a0dad34c367901cb8"},"chroma":{"latestBuiltDeploymentHistoryId":"6ae15c642f9b16126877fc9c","collectionId":"272cfea9-65cb-4404-a158-a3aec1fcfe27","liveDeploymentHistoryId":"6ae15c642f9b16126877fc9c","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae1e60b5ca9b4a2f4636860","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Documentation","count":20},{"language":"default","tag":"API reference","count":18},{"language":"default","tag":"Core concepts","count":7},{"language":"default","tag":"Guides","count":6},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"Tasks","count":3},{"language":"default","tag":"Video Fast 1.0","count":3},{"language":"default","tag":"Wan 3.0 Spark","count":3},{"language":"default","tag":"Build with AI","count":2},{"language":"default","tag":"Account","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"concepts/input-files","slug":"/concepts/input-files","pageMetadata":{"title":"Input files","description":"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.","href":"/concepts/input-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: \"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\"\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={code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Five API takes input files as `,_jsx(_components.strong,{children:`URLs`}),`. There is no upload endpoint: host the file somewhere public, for example in your own object storage, and pass its HTTPS URL in the request.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Used by`}),_jsx(_components.th,{children:`What it points to`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url`})}),_jsx(_components.td,{children:`image to video`}),_jsx(_components.td,{children:`The image to animate`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`reference_images`}),`, `,_jsx(_components.code,{children:`reference_videos`}),`, `,_jsx(_components.code,{children:`reference_audios`})]}),_jsx(_components.td,{children:`reference to video`}),_jsx(_components.td,{children:`Arrays of asset URLs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`video_url`})}),_jsx(_components.td,{children:`video extend`}),_jsx(_components.td,{children:`The clip to continue`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`url-policy`,children:`URL policy`}),`\n`,_jsxs(_components.p,{children:[`Five API checks every input URL `,_jsx(_components.strong,{children:`when you create the task`}),`, before any credit is held. A URL that breaks a rule answers `,_jsx(_components.code,{children:`400 url_not_allowed`}),` with the field in `,_jsx(_components.code,{children:`param`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`HTTPS only.`}),` `,_jsx(_components.code,{children:`http://`}),` URLs are rejected.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Public host.`}),` The host name must resolve, through public DNS, to a public IP address. Private, loopback, link-local, carrier-grade NAT, cloud metadata and other reserved ranges are rejected.`]}),`\n`,_jsxs(_components.li,{children:[_jsxs(_components.strong,{children:[`Answers `,_jsx(_components.code,{children:`HEAD`}),`.`]}),` Five API sends a `,_jsx(_components.code,{children:`HEAD`}),` request to the URL. It must answer `,_jsx(_components.code,{children:`2xx`}),`, after at most 3 redirects; each redirect target is checked again.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Within the size limit.`}),` The `,_jsx(_components.code,{children:`Content-Length`}),` must not exceed the limit of the model (see below).`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The same host rules apply to `,_jsx(_components.code,{children:`webhook_url`}),`.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Presigned URLs from S3, Google Cloud Storage, Azure Blob Storage, Cloudflare R2 and similar services work well. Keep them valid for at least an hour: a task downloads its input files after it is created, while it is queued.`})}),`\n`,_jsx(Heading,{level:`2`,id:`limits-per-model`,children:`Limits per model`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Model`}),_jsx(_components.th,{children:`Input`}),_jsx(_components.th,{children:`Formats and limits`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video Fast 1.0, image to video`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url`})}),_jsx(_components.td,{children:`JPG, PNG or WebP; shorter side at least 300 px; aspect ratio between 0.4 and 2.5; at most 30 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Wan 3.0 Spark and Prime Spark, image to video`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`image_url`})}),_jsx(_components.td,{children:`JPG, PNG or WebP; 360–2,000 px per side; at most 20 MB`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video Fast 1.0, reference to video`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_images`})}),_jsx(_components.td,{children:`Up to 9 images: JPG, PNG or WebP; 256–5,760 px; at most 30 MB each`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_videos`})}),_jsx(_components.td,{children:`Up to 3 clips: 2–15 seconds and at most 50 MB each`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_audios`})}),_jsx(_components.td,{children:`Up to 3 files: at most 15 MB each; send them together with an image or a video`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Wan 3.0 Spark, reference to video`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_images`})}),_jsx(_components.td,{children:`Up to 10 images: JPG, PNG or WebP; at most 20 MB each`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_videos`})}),_jsx(_components.td,{children:`Up to 5 clips: at most 100 MB each`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{}),_jsx(_components.td,{children:_jsx(_components.code,{children:`reference_audios`})}),_jsx(_components.td,{children:`Up to 5 files: at most 15 MB each`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Video Fast Extend 1.1`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`video_url`})}),_jsx(_components.td,{children:`MP4 or MOV; 360–2,000 px per side; 2–30 seconds after the optional window; at most 500 MB`})]})]})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GET /v1/models/{brand}/{version}/{task}`}),` returns each model’s limits in `,_jsx(_components.code,{children:`input_schema`}),`, including `,_jsx(_components.code,{children:`x-max-input-bytes`}),`, the largest accepted file.`]}),`\n`,_jsx(Heading,{level:`2`,id:`when-an-input-fails-later`,children:`When an input fails later`}),`\n`,_jsx(_components.p,{children:`The URL check at creation can’t see everything inside a file. If a file turns out to be unusable during processing, the task fails and its credits are released:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`input_fetch_failed`}),` (retryable): the file could not be downloaded or processed, for example because a presigned URL expired.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`input_invalid`}),` (not retryable): the file was downloaded but its format, dimensions or length do not fit the model.`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`2`,id:`troubleshooting-url_not_allowed`,children:[`Troubleshooting `,_jsx(_components.code,{children:`url_not_allowed`})]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Cause`}),_jsx(_components.th,{children:`Fix`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The URL uses `,_jsx(_components.code,{children:`http`})]}),_jsxs(_components.td,{children:[`Serve it over `,_jsx(_components.code,{children:`https`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The host resolves to a private or reserved address`}),_jsx(_components.td,{children:`Use a publicly hosted file; internal hosts and DNS overrides are not reachable`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[`The server doesn’t answer `,_jsx(_components.code,{children:`HEAD`}),`, or answers without `,_jsx(_components.code,{children:`Content-Length`})]}),_jsxs(_components.td,{children:[`Host the file on object storage or a CDN that supports `,_jsx(_components.code,{children:`HEAD`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`More than 3 redirects`}),_jsx(_components.td,{children:`Pass the final URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`The file is larger than the model’s limit`}),_jsx(_components.td,{children:`Compress or resize it, or choose a model with a higher limit`})]})]})]})]})}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":"Input files","description":"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.","href":"/concepts/input-files"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"URL policy","slug":"url-policy","depth":2,"children":[]},{"title":"Limits per model","slug":"limits-per-model","depth":2,"children":[]},{"title":"When an input fails later","slug":"when-an-input-fails-later","depth":2,"children":[]},{"title":"Troubleshooting url_not_allowed","slug":"troubleshooting-url_not_allowed","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"i2v","siteName":"Five API","title":"Input files - Five API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-28T12:09:52.289Z","originalFileLocation":"concepts/input-files.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Five API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_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/i2v/sgHTaltpoqdqdsUg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Input files - Five API\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Five API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://testweb2-docs-openapi.test765.com/concepts/input-files\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://i2v.mintlify.app/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Input+files\u0026amp;description=How+to+pass+images%2C+videos+and+audio+to+Five+API%3A+public+HTTPS+URLs%2C+the+URL+policy+and+the+limits+of+each+model.\u0026amp;theme=9d2dc752b2506fd259767f0d\u0026amp;signature=f2653b22284f64c2723e6e23ee4f2b9ea3eda78e3073a125fe43af932bca3494\">\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=\"Input files - Five API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://i2v.mintlify.app/_mintlify/api/og/v2?division=Core+concepts\u0026amp;title=Input+files\u0026amp;description=How+to+pass+images%2C+videos+and+audio+to+Five+API%3A+public+HTTPS+URLs%2C+the+URL+policy+and+the+limits+of+each+model.\u0026amp;theme=9d2dc752b2506fd259767f0d\u0026amp;signature=f2653b22284f64c2723e6e23ee4f2b9ea3eda78e3073a125fe43af932bca3494\">\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/i2v/sgHTaltpoqdqdsUg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Five API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4F46E5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://testweb2-docs-openapi.test765.com/concepts/input-files\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/concepts/input-files.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://testweb2-docs-openapi.test765.com/#organization\",\"name\":\"Five API\",\"url\":\"https://testweb2-docs-openapi.test765.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/i2v/KgjMBxZ5eIs4maZs/logo/light.svg?fit=max\u0026auto=format\u0026n=KgjMBxZ5eIs4maZs\u0026q=85\u0026s=817eb9e9373c296b1e9e260b8be26b83\"}},{\"@type\":\"WebSite\",\"@id\":\"https://testweb2-docs-openapi.test765.com#website\",\"name\":\"Five API\",\"url\":\"https://testweb2-docs-openapi.test765.com\",\"publisher\":{\"@id\":\"https://testweb2-docs-openapi.test765.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files#webpage\",\"url\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files\",\"name\":\"Input files\",\"description\":\"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\",\"dateModified\":\"2026-10-28T12:09:52.289Z\",\"isPartOf\":{\"@id\":\"https://testweb2-docs-openapi.test765.com#website\"},\"breadcrumb\":{\"@id\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Core concepts\",\"item\":\"https://testweb2-docs-openapi.test765.com/concepts/models\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Input files\",\"item\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files#article\",\"headline\":\"Input files\",\"name\":\"Input files\",\"description\":\"How to pass images, videos and audio to Five API: public HTTPS URLs, the URL policy and the limits of each model.\",\"url\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files\",\"mainEntityOfPage\":{\"@id\":\"https://testweb2-docs-openapi.test765.com/concepts/input-files#webpage\"},\"dateModified\":\"2026-10-28T12:09:52.289Z\",\"publisher\":{\"@id\":\"https://testweb2-docs-openapi.test765.com/#organization\"},\"isPartOf\":{\"@id\":\"https://testweb2-docs-openapi.test765.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Five API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Five API","nav":{"global":null,"tabs":[{"tab":"Documentation","icon":"book-open","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":""},{"title":"Quickstart","href":"/quickstart"},{"title":"Authentication","href":"/authentication"},{"title":"Credits and pricing","href":"/pricing"}]},{"group":"Core concepts","pages":[{"title":"Models","href":"/concepts/models"},{"title":"Tasks","href":"/concepts/tasks"},{"title":"Webhooks","href":"/concepts/webhooks"},{"title":"Errors","href":"/concepts/errors"},{"title":"Rate limits","href":"/concepts/rate-limits"},{"title":"Idempotency","description":"Retry task creation safely with the Idempotency-Key header, so a retry never creates or charges a second task.","href":"/concepts/idempotency"},{"title":"Input files","href":"/concepts/input-files"}]},{"group":"Guides","pages":[{"title":"Text to video","description":"Generate a video from a written description, with optional synchronized audio.","href":"/guides/text-to-video"},{"title":"Image to video","href":"/guides/image-to-video"},{"title":"Reference to video","href":"/guides/reference-to-video"},{"title":"Video extend","href":"/guides/video-extend"},{"title":"Production checklist","href":"/guides/production-checklist"},{"title":"Troubleshooting","href":"/guides/troubleshooting"}]},{"group":"Build with AI","pages":[{"title":"Agent skills","href":"/ai-tools/agent-skills"},{"title":"Docs for AI assistants","href":"/ai-tools/ai-assistants"}]},{"group":"Resources","pages":[{"title":"Changelog","href":"/changelog"}]}]},{"tab":"API reference","icon":"square-terminal","pages":[{"title":"API reference","href":"/api-reference/introduction"}]}]},"title":"Input files - Five API","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}