OpenPixels

Photon 1 Performance

Author:Luma Labs
Type:Image
Providers:Luma Labs (Flat rate: $0.015 per invocation)

Parameter Playground

Generated image will appear here

Arguments

  • promptRequiredluma
    Type:string
    The prompt to generate an image from.
  • widthRequiredluma
    Type:number
    The width of the image to generate.
  • heightRequiredluma
    Type:number
    The height of the image to generate.
  • aspect_ratioRequiredluma
    Type:string
    The aspect ratio of the image to generate.
  • resolutionRequiredluma
    Type:string
    The resolution of the image to generate.
// npm install openpixels

import { OpenPixels } from "openpixels"

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

const result = await client.run({
  model: "photon-1",
  prompt: "A beautiful sunset over a calm ocean",
  width: 1024,
  height: 1024,
  aspect_ratio: "1:1",
  resolution: "720p"
})