sanity-plugin-asset-source-openai
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i sanity-plugin-asset-source-openai

Weekly Downloads

37

Version

1.1.2

License

MIT

Unpacked Size

33.6 kB

Total Files

13

Last publish

Collaborators

  • robotostudio