LogoLogo
  • Welcome
  • Imagine API Studio
  • Get Your API Key
  • Imagine API Reference
  • Getting Started
    • How the API Works
    • API Key Management
    • Selecting the Right API Plan
    • Get Free API Calls
    • Your First API Call
    • Available AI Features in the API
    • Integrating the API into Your Project
    • API Call Billing and Token Usage
  • Troubleshooting
    • Request and Response Formats
    • Error Documentation
    • Troubleshooting Tips
    • Getting Support
  • Core Concepts
    • API Prototyping
    • Creating an Effective Prompt
    • Selecting the Right Style
    • Randomization Control (Seed)
  • Image Generation APIs
    • Introduction
    • Text to Image API
    • Text to PNG API
  • Image Editing APIs
    • Introduction
    • Background Remover API
    • Image Upscale API
    • Generative Fill API
    • AI Resize API
    • Retouch API
  • E-Commerce APIs
    • AI Backgrounds API
  • Video Generation API's
    • Introduction
    • Text to Video API
    • Image to Video API
    • Status API
    • Delete API
Powered by GitBook
On this page
  1. Core Concepts

Randomization Control (Seed)

The Seed parameter controls the randomization of the image generation process, allowing you to reproduce specific outputs or introduce subtle variations. Each seed value generates a unique version of the image based on the same prompt and parameters, providing consistency across multiple calls when needed.

For instance, by setting a fixed seed value, you can re-generate the same image with consistent elements, which is useful for version control or when fine-tuning specific styles. Conversely, altering the seed value enables you to create different interpretations of the same prompt, adding variety without changing any other input settings.

Example Usage in API Call

To set a seed, simply add the seed parameter to your API call:

--form 'seed="5"'

In the API Playground or direct API requests, you can adjust the seed parameter to experiment with different levels of prompt guidance.

Experimenting with different seed values is a great way to explore diverse outcomes for your prompts while retaining control over reproducibility and variation.

PreviousSelecting the Right StyleNextImage Generation APIs

Last updated 6 months ago