xsAI v0.1 is now available! Read Announcement
xsAI0.2.0-beta.2
Generating

Image

Creates an image given a prompt.

install sizeminified sizeminzipped size
npm i @xsai/generate-image

Examples

import {  } from '@xsai/generate-image'
import {  } from 'node:process'
 
const {  } = await ({
  : .!,
  : 'http://api.openai.com/v1/',
  : 'dall-e-3',
  : 'A cute baby sea otter'
})
 
const {  } = await ({
  : .!,
  : 'http://api.openai.com/v1/',
  : 4, 
  : 'dall-e-3',
  : 'A cute baby sea otter'
})
Edit on GitHub

Last updated on

On this page