sanity-plugin-asset-source-openai
v1.1.2
Published
generate images using Dall-e openai in your Sanity Studio
Downloads
107
Readme
sanity-plugin-asset-source-openai
This is a Sanity Studio v3 plugin.
Installation
npm install sanity-plugin-asset-source-openai
Usage
Add it as a plugin in sanity.config.ts
(or .js):
import {defineConfig} from 'sanity'
import {openaiImageAsset} from 'sanity-plugin-asset-source-openai'
export default defineConfig({
// ...
plugins: [
openaiImageAsset({
API_KEY:"your_api_key_from_openai"
})
],
});
License
MIT © Hrithik Prasad
Develop & test
This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.