| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /:user_id/:repository/commit/:name(/*path) |
| route-controller | commit |
| route-action | show |
| fetch-nonce | v2:a0cd6a2a-6101-6501-d3fb-0440763184ef |
| current-catalog-service-hash | f3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb |
| request-id | 8016:ACF4A:12DBA1:19C308:6AED7180 |
| html-safe-nonce | 6f2f2d5b294185fc62da3aa08978586076fe288cfc507b926c6ee712da9303f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDE2OkFDRjRBOjEyREJBMToxOUMzMDg6NkFFRDcxODAiLCJ2aXNpdG9yX2lkIjoiODY4MzE1Njc4MTY0NDIxNDY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf23de241fb63d7a6d120770b38cf306b5dffb80441e86fe6de98db442f5d1d5 |
| hovercard-subject-tag | repository:644461337 |
| github-keyboard-shortcuts | repository,commits,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///commit/show |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/vercel/ai/commit/525efc5 |
| twitter:image | https://opengraph.githubassets.com/3cacf9a9ff8546366cb3276333ef4e117600db435b5eb167cf4c6032c0ca552d/vercel/ai/commit/525efc552bc56380fa511357e552d54f927b44ad |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cacf9a9ff8546366cb3276333ef4e117600db435b5eb167cf4c6032c0ca552d/vercel/ai/commit/525efc552bc56380fa511357e552d54f927b44ad |
| og:image:alt | ## Background
Image models accept standardized `files` and `mask` options, but callers
previously could not determine whether a model consumes, rejects,
partially supports, or silently ignores tho... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:updated_time | 1790606895 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-cache |
| go-import | github.com/vercel/ai git https://github.com/vercel/ai.git |
| octolytics-dimension-user_id | 14985020 |
| octolytics-dimension-user_login | vercel |
| octolytics-dimension-repository_id | 644461337 |
| octolytics-dimension-repository_nwo | vercel/ai |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 644461337 |
| octolytics-dimension-repository_network_root_nwo | vercel/ai |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | commits |
| Skip to content | https://redirect.github.com/vercel/ai/commit/525efc5#start-of-content |
| https://redirect.github.com/ |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2F525efc5 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fvercel%2Fai%2Fcommit%2F525efc5 |
| Sign up | https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fcommit%2Fshow&source=header-repo&source_repo=vercel%2Fai |
| Reload | https://redirect.github.com/vercel/ai/commit/525efc5 |
| Reload | https://redirect.github.com/vercel/ai/commit/525efc5 |
| Reload | https://redirect.github.com/vercel/ai/commit/525efc5 |
| vercel | https://redirect.github.com/vercel |
| ai | https://redirect.github.com/vercel/ai |
| Code | https://redirect.github.com/vercel/ai |
| Issues475 (475) | https://redirect.github.com/vercel/ai/issues |
| Pull requests1k (1k) | https://redirect.github.com/vercel/ai/pulls |
| Actions | https://redirect.github.com/vercel/ai/actions |
| Projects | https://redirect.github.com/vercel/ai/projects |
| Security and quality6 (6) | https://redirect.github.com/vercel/ai/security |
| Insights | https://redirect.github.com/vercel/ai/pulse |
| https://redirect.github.com/vercel/ai |
| Browse files | https://redirect.github.com/vercel/ai/tree/525efc552bc56380fa511357e552d54f927b44ad |
| https://redirect.github.com/vercel/ai/tree/525efc552bc56380fa511357e552d54f927b44ad |
| #19230 | https://github.com/vercel/ai/pull/19230 |
| #20878 | https://github.com/vercel/ai/pull/20878 |
| #20891 | https://github.com/vercel/ai/pull/20891 |
| #20887 | https://github.com/vercel/ai/pull/20887 |
| #20873 | https://github.com/vercel/ai/pull/20873 |
| #20483 | https://github.com/vercel/ai/pull/20483 |
| #19229 | https://github.com/vercel/ai/issues/19229 |
| d99d6dc | https://redirect.github.com/vercel/ai/commit/d99d6dcd7518ec83fa00ba79aeeaecc6a6a75c84 |
| small-dogs-edit.md | https://redirect.github.com/vercel/ai/commit/525efc5#diff-780ceeddfe5d979b6e202135573755993d18d277395f337875af3e038bdc6cae |
| 35-image-generation.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-1b4d224347de6f0d5d297ffca195dbbf9186dada0c254b9d34d425e4a8fdbf78 |
| 61-wrap-image-model.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-a93648f5c986eb43657c8d6c39e7aa5f650b82a537eed1a7ef3a33e1f0e78332 |
| 04-azure.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-7e93c129d13652569177a89ccc6e7abe2c9f5b41cb4d611612717b98a6f7247a |
| 10-fal.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-26b3c4fa447f2b8c487ddbbf9ae1e49252cd9248429e0310a757dc8e20d4228c |
| 180-quiverai.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-40df28fbd41fd8dbe6f59b39807dcb0d421eb37e8843eb568fad134782f1e826 |
| 24-togetherai.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-ef1860a69d6a6cb04dae7ac1f5558d1fc4965739cd77a6dbfcee5a097787b79d |
| check-edit-capabilities.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-728bc7f658c30361fd970dca456a2af8c3ffd87e7613364859ceed29bdb2ee3b |
| wrap-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-2e64aa25e071866a6faa3661d210f33b942715eaa16a52922fb99bebace89078 |
| wrap-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-62d6c2cb369f0d095860e197378bdc290ae5360b1db1bda322f5b037cfc89e1c |
| as-image-model-v4.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-504571431974425c38946b8e9d3dcadd22cff3bc749577f19d8cbb415ef395f6 |
| mock-image-model-v4.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-fd3055260ff3183f7de6cd6dc4b53e247bf1a01cfde58dd14a10be0ea9a8ba52 |
| image-model.test-d.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-b638ece2c66352da69d446a47b41205d4ac3a59157a72e1013dd3ace8590cf46 |
| amazon-bedrock-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-291e5750cca0222d59c5cdd42aa38725ca9ebdb2832df5b3899e4f975316659f |
| amazon-bedrock-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-788bddc5fdb49aef45d079936515da4e85dc4aeee251e5ad2cc975f463dc0e71 |
| azure-openai-provider.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-b0b8c1c543aea41803ca220978c64aa66a75f90c03dd9668aab3876aa032f8ee |
| azure-openai-provider.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-82c6fb3c1f4d3dd50237f2f5d84d72781febcee260c7329fc863d51633035e0c |
| black-forest-labs-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-d107b1d381800b0d04311cb99e82fae776e6642c5b935a2d6171e792dc8f4d1d |
| black-forest-labs-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-81b42e39ca13df28d722af01844e320395c7b482cff288d1d61155a4fc200b1e |
| bytedance-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-04441c896bbb3dc6bb5227167225aed04823248ee5b311726417d731cac6b8d7 |
| bytedance-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-117ce7712e48eb27803389e9e398f5f14fa8af797d0175ec890fc5ebd74100ce |
| deepinfra-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-4321764da36fb495e15682ef137081a6d5a948da38417e3905344772e446f3dc |
| deepinfra-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-31352527f11b0faab4f144658d6318f139366c20eb1164e10c38510e806ca576 |
| fal-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-2b941b7a6691a485b073cba87fad499972f4f8f71c990a956d3ed562d6bce485 |
| fal-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-0cd14a0457b63c65b7c25672651474df278ebaf85793e8523ed1fa793273c0ce |
| fireworks-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-b87dcb568c5dc8f3973be03fdd7306c16a4b1b6ff990062b01a5add50d8280b5 |
| fireworks-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-0e202baeaad0d182db71c015c930aa8a8c86b26602cd1ab8e58821a4bf1f21f6 |
| google-vertex-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-1e0f239cea76bdc23efbfa2c9819bab0db6af2ea493836c2d3532c2bbc1dc8a5 |
| google-vertex-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-b5eb29fef29e99389b3ec5496dcfa60c016e71a564c3ea869034b70714040e8f |
| google-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-e5e17283d941e12330211afb8e2a1315801feb01ecf66e835b13ca6d7df819a4 |
| google-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-1f124f8e10b8be2eb100476393a3a041c27ba041a9e0cbbc9109dcd263f0401e |
| luma-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-e79f824c80c99e2af010b2afee0be4b55c988a41f19a3678725b49d48ea8a635 |
| luma-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-cf5eb80a0f5ddf0ad4f0916133cb2a444864361cfd2b769d2ec80e975fc99f16 |
| openai-compatible-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-469b8bb83642aa1993592fb422ca08940bb0dc2c521a5163b08c703d5a38ff39 |
| openai-compatible-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-3658fffce9af5787462b78adec9c45ca0bf8cefb8ad08660c5e0404556c453ef |
| openai-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-acd8fb32e0cccc72aa1233d7fa34d0747739dd8cd66c410c2adc8d395be615b8 |
| openai-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-7a98bf253cf9df108e5b3d19d942b31711b77c20c5c659db85a2e2343974ff7f |
| prodia-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-00897a916ddcbdfa626eae53937edf491800268f9e3b689959a99bd690b175b4 |
| prodia-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-091083deee2b741a6886ce06888f4517ac9339262d86a7997d08f2009d9d52ca |
| image-model-v4-middleware.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-4979be6d230a2ae950ff2a31e8402c9d2e2909d829e79ad93fa347b6c1494391 |
| image-model-v4.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-2d7b33f51b1c2566e6924e5d9c7d35c52e8d4d4d1d46469928ad890e679a0e67 |
| quiverai-generate-image.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-10603efc9c51cbe26f226ec465d0e2aa89fe9d9ae5f64a13c98be565d1b0cae3 |
| quiverai-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-9148bfd720cd4c32a3e712fc4d5f6018102c0844f1d1d1b59131a6140eb611f4 |
| quiverai-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-73df771bb701e4ba7f8f6ffec8ea1d8bb4a8a186259e73c2f53615ebaaf95b71 |
| replicate-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-77adf343a87022708b74cdb560426536d1675d04d8ca2ec067c29dd68af007d5 |
| replicate-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-a1bd500aba1335ef76638035b5e9ca962a6d3f0f37efa8beee803ce1c2453f06 |
| togetherai-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-e4070d12c75d92dda4fed6bce6ecac0b394d4fc6878abe49b722a9d046fda114 |
| togetherai-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-7f191f760abe35fc3395d084ad3ccf43f44e19127215b29fa506fe1b21557272 |
| xai-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-f901f327b77dc59240397479807bd22e25896943e2f18f1b4515180ab7848b69 |
| xai-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-6f59ae8eff70244d2fe291f42fdee0bbbb9bd05a3b8eb130e8b783e0067f71f6 |
| .changeset/small-dogs-edit.md | https://redirect.github.com/vercel/ai/commit/525efc5#diff-780ceeddfe5d979b6e202135573755993d18d277395f337875af3e038bdc6cae |
| content/docs/03-ai-sdk-core/35-image-generation.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-1b4d224347de6f0d5d297ffca195dbbf9186dada0c254b9d34d425e4a8fdbf78 |
| content/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-a93648f5c986eb43657c8d6c39e7aa5f650b82a537eed1a7ef3a33e1f0e78332 |
| content/providers/01-ai-sdk-providers/04-azure.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-7e93c129d13652569177a89ccc6e7abe2c9f5b41cb4d611612717b98a6f7247a |
| content/providers/01-ai-sdk-providers/10-fal.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-26b3c4fa447f2b8c487ddbbf9ae1e49252cd9248429e0310a757dc8e20d4228c |
| content/providers/01-ai-sdk-providers/180-quiverai.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-40df28fbd41fd8dbe6f59b39807dcb0d421eb37e8843eb568fad134782f1e826 |
| content/providers/01-ai-sdk-providers/24-togetherai.mdx | https://redirect.github.com/vercel/ai/commit/525efc5#diff-ef1860a69d6a6cb04dae7ac1f5558d1fc4965739cd77a6dbfcee5a097787b79d |
| examples/ai-functions/src/generate-image/openai/check-edit-capabilities.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-728bc7f658c30361fd970dca456a2af8c3ffd87e7613364859ceed29bdb2ee3b |
| packages/ai/src/middleware/wrap-image-model.test.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-2e64aa25e071866a6faa3661d210f33b942715eaa16a52922fb99bebace89078 |
| packages/ai/src/middleware/wrap-image-model.ts | https://redirect.github.com/vercel/ai/commit/525efc5#diff-62d6c2cb369f0d095860e197378bdc290ae5360b1db1bda322f5b037cfc89e1c |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |