• package: @agentic/midjourney
  • exports: class MidjourneyClient, namespace midjourney
  • env vars: MIDJOURNEY_IMAGINE_API_KEY
  • source
  • imagine api docs

Install

Usage

import { MidjourneyClient } from '@agentic/midjourney'

const midjourney = new MidjourneyClient()
const res = await midjourney.imagine({
  prompt: 'beautiful sunset over the ocean, oil painting, monet'
})