Skip to main content

Overview

Flux (by Black Forest Labs) is a popular image generation model family with three tiers balancing speed and quality.
Model IDTierSpeedCredits~Cost
flux-schnellFast~2s5$0.05
flux-devDevelopment~5s8$0.08
flux-proProfessional~8s10$0.10

Quick start

import { createVarg } from "vargai/ai"

const varg = createVarg({ apiKey: process.env.VARG_API_KEY! })

const result = await varg.imageModel("flux-pro").generate({
  prompt: "a minimalist logo design, geometric shapes, blue and white",
  aspectRatio: "1:1",
})

console.log(result.image.url)

Parameters

prompt
string
required
Text description of the image to generate.
aspect_ratio
string
default:"1:1"
Output aspect ratio. Supports standard ratios like 16:9, 9:16, 1:1, 4:3, 3:4.
provider_options
object
Supports image_size (enum: square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9), num_inference_steps (default 28 for pro), guidance_scale (default 3.5).

Pricing

ModelCreditsUSDBest for
flux-schnell5$0.05Quick iteration, prototyping
flux-dev8$0.08Development and testing
flux-pro10$0.10Final renders, high quality

Tips

  • Flux Schnell is as cheap as Nano Banana (5 credits) and faster. Good for quick drafts.
  • Flux Pro excels at design and graphic content — logos, icons, illustrations. Nano Banana is better for photos.
  • Inference steps can be tuned via provider options. Higher values = better quality, slower generation.

Nano Banana

Better for photorealistic images and editing. Same price as Schnell.

Recraft

Purpose-built for graphic design and illustrations.