OpenPixels

Imagen 3 Performance

Author:google
Type:Image
Providers:fal.ai (Flat rate: $0.05 per invocation), Replicate (Flat rate: $0.05 per invocation), Google AI Studio (Flat rate: $0.03 per invocation)
Aliases:imagen, imagen3

Parameter Playground

Generated image will appear here

Arguments

  • promptRequiredfal, replicate, googleaistudio
    Type:string
    The prompt to generate an image from.
  • negative_promptOptionalfal, replicate, googleaistudio
    Type:string
    A prompt of anything to avoid in the image.
  • widthRequiredfal, replicate, googleaistudio
    Type:number
    The width of the image to generate.
  • heightRequiredfal, replicate, googleaistudio
    Type:number
    The height of the image to generate.
  • aspect_ratioRequiredfal, replicate, googleaistudio
    Type:string
    The aspect ratio of the image to generate.
  • resolutionRequiredfal, replicate, googleaistudio
    Type:string
    The resolution of the image to generate.
  • seedOptionalfal, replicate, googleaistudio
    Type:number
    The seed to generate the image with.
// npm install openpixels

import { OpenPixels } from "openpixels"

const client = new OpenPixels({
  apiKey: "sk-op-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
})

const result = await client.run({
  model: "imagen-3",
  prompt: "A beautiful sunset over a calm ocean",
  negative_prompt: "ugly, low quality",
  width: 1024,
  height: 1024,
  aspect_ratio: "1:1",
  resolution: "720p",
  seed: 42
})