NovaKitv1.0

Image Generation

Generate images from text prompts using Flux, Stable Diffusion, DALL-E, and more

Image Generation

Generate stunning images from text descriptions using state-of-the-art models like Flux Pro, Stable Diffusion 3.5, DALL-E 3, and more.

For long-running generations or multiple images, use async mode with ?async=true to avoid timeouts.

Try it Now

Test the Image Generation API directly in your browser:

Endpoint

POST /images/generations
POST /images/generations?async=true

Required scope: image

Request Body

{
  "prompt": "A serene mountain landscape at sunset with vibrant colors",
  "model": "fal-ai/flux/dev",
  "size": "1024x1024",
  "n": 1,
  "style": "vivid",
  "upscale": null,
  "negative_prompt": "blurry, low quality, distorted",
  "seed": 42
}

Parameters

ParameterTypeRequiredDefaultDescription
promptstringYes-Text description of the desired image
modelstringNofal-ai/flux/devModel ID (see Available Models)
sizestringNo1024x1024Image dimensions
nnumberNo1Number of images to generate (1-10)
stylestringNovividImage style: vivid or natural
upscalestringNo-Post-processing upscale: 2x or 4x
negative_promptstringNo-Elements to exclude from the image
seednumberNorandomRandom seed for reproducibility

Available Sizes

SizeAspectUse Case
512x5121:1Thumbnails, avatars
1024x10241:1Standard social media
1792x102416:9Landscape, banners
1024x17929:16Portrait, stories
1536x10243:2Photography style
1024x15362:3Vertical photography

Response

{
  "created": 1703123456,
  "data": [
    {
      "url": "https://fal.media/files/abc123.png",
      "revised_prompt": "A serene mountain landscape...",
      "width": 1024,
      "height": 1024
    }
  ],
  "model": "fal-ai/flux/dev",
  "model_tier": "standard",
  "usage": {
    "credits_used": 15,
    "credits_breakdown": {"base": 15},
    "generations_used": 1,
    "generations_remaining": 99
  }
}

Async Mode

For multiple images or high-resolution outputs, use async mode:

// Request with ?async=true
{
  "id": "job_abc123",
  "status": "pending",
  "created": 1703123456,
  "model": "fal-ai/flux/dev",
  "estimated_credits": 15
}

Poll the job status with GET /jobs/{job_id}?poll=true.

Examples

curl -X POST https://www.novakit.ai/api/v1/images/generations \
  -H "Authorization: Bearer sk_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A cyberpunk cityscape with neon lights and flying cars",
    "size": "1024x1024",
    "n": 2
  }'
import requests

response = requests.post(
    "https://www.novakit.ai/api/v1/images/generations",
    headers={
        "Authorization": "Bearer sk_your_api_key",
        "Content-Type": "application/json"
    },
    json={
        "prompt": "A cyberpunk cityscape with neon lights and flying cars",
        "size": "1024x1024",
        "n": 2
    }
)

for image in response.json()["data"]:
    print(image["url"])
const response = await fetch(
  "https://www.novakit.ai/api/v1/images/generations",
  {
    method: "POST",
    headers: {
      "Authorization": "Bearer sk_your_api_key",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      prompt: "A cyberpunk cityscape with neon lights and flying cars",
      size: "1024x1024",
      n: 2,
    }),
  }
);

const data = await response.json();
data.data.forEach((image: { url: string }) => console.log(image.url));

Available Models

ModelSpeedQualityBest For
fal-ai/flux/dev~10sExcellentProduction images (default)
fal-ai/flux-2~8sExcellentLatest Flux generation
fal-ai/flux-2-pro~12sExcellentProfessional quality
fal-ai/flux-pro/v1.1-ultra~15sExcellentHighest quality Flux
fal-ai/flux-general~10sExcellentWith ControlNets and LoRAs

Stable Diffusion & Other Models

ModelSpeedQualityBest For
fal-ai/stable-diffusion-v35-large~12sExcellentHigh quality SD
fal-ai/hidream-i1-fast~5sGoodFast generation
fal-ai/hidream-i1-dev~8sExcellentBalanced quality
fal-ai/imagen4/preview/fast~6sExcellentGoogle Imagen 4

Specialty Models

ModelSpeedQualityBest For
fal-ai/recraft/v3/text-to-image~10sExcellentGraphic design, logos
fal-ai/ideogram/v2~12sExcellentText in images
fal-ai/gpt-image-1.5~8sGoodGPT-style generation
bria/text-to-image/3.2~8sGoodCommercial-safe images

Tips for Better Results

Writing effective prompts:

  • Be specific and descriptive
  • Include style references (e.g., "oil painting", "photorealistic")
  • Mention lighting and mood
  • Use negative prompts to exclude unwanted elements

Example Prompts

StylePrompt
Photorealistic"Professional photo of a golden retriever in a sunny park, shallow depth of field, Canon EOS R5"
Digital Art"Fantasy castle on a floating island, digital art, vibrant colors, by Greg Rutkowski"
Minimalist"Simple geometric logo design, minimal, clean lines, white background"

Upscaling

Add "upscale": "2x" or "upscale": "4x" to increase resolution:

{
  "prompt": "A detailed fantasy map",
  "size": "1024x1024",
  "upscale": "4x"
}

This will generate at 1024x1024 and upscale to 4096x4096.

On this page