LogoLogo
  • Overview
  • Quick Start
  • Authentication
  • Rate limits
  • Errors
  • Image Editing API
    • Image I/O
    • Image Operations
      • Restorations
      • Resizing
      • Outpainting
      • Generative Editing
      • Color Adjustments
      • Background
      • Padding
      • Privacy
    • API Reference
    • Async API Reference
    • Batch API Reference
    • Upload API Reference
  • image generation api
    • Image Generation I/O
    • Image Generation Options
    • API Reference
  • AI Background API
    • AI Background I/O
    • AI Background Options
      • Object
      • Scene
      • Product Shadow
    • API Reference
  • Image to Video API
    • Image to Video I/O
    • Image to Video Options
    • Async API Reference
  • Storage Connectors
    • Overview
    • AWS S3
    • Google Cloud Storage
    • Web Folder
    • API Reference
  • Guides
    • E-commerce
    • Real Estate
    • Printing
  • Redoc
  • Blog
Powered by GitBook
On this page
  • Number of images
  • Guidance scale
  • Possible values
Edit on GitHub
  1. image generation api

Image Generation Options

Learn how to control the quality and speed of image generation.

Number of images

With our image generation API, you can generate up to 4 images with one request.

{
    "options": {
        "number_of_images": 4
    }
}

Every generated image charges 1 credit. So, setting number_of_images to 4 will charge 4 credits per request.

Guidance scale

The guidance scale controls how closely the generated images match your prompt. You may adjust this scale to gain more control over the output.

Values between 5 and 7 usually provide good results, but a value of 12 may offer greater precision.

Note that adjusting this scale may affect image quality and diversity.

{
    "options": {
        "guidance_scale": 5.0
    }
}

Possible values

Parameter
Type
Range
Default value

number_of_images

int

1 - 4

4

guidance_scale

float

1.0 - 49.99

5.0

PreviousImage Generation I/ONextAPI Reference

Last updated 6 months ago