each::sense is in private beta.
Eachlabs | AI Workflows for app builders
fooocus-api

EACHLABS

Image Generation

Avg Run Time: 31.000s

Model Slug: fooocus-api

Playground

Input

Enter a URL or choose a file from your computer.

Enter a URL or choose a file from your computer.

Enter a URL or choose a file from your computer.

Enter a URL or choose a file from your computer.

Enter a URL or choose a file from your computer.

Enter a URL or choose a file from your computer.

Advanced Controls

Output

Example Result

Preview and download your result.

fooocus-api
The total cost depends on how long the model runs. It costs $0.001080 per second. Based on an average runtime of 31 seconds, each run costs about $0.0335. With a $1 budget, you can run the model around 29 times.

API & SDK

Create a Prediction

Send a POST request to create a new prediction. This will return a prediction ID that you'll use to check the result. The request should include your model inputs and API key.

Get Prediction Result

Poll the prediction endpoint with the prediction ID until the result is ready. The API uses long-polling, so you'll need to repeatedly check until you receive a success status.

Readme

Table of Contents
Overview
Technical Specifications
Key Considerations
Tips & Tricks
Capabilities
What Can I Use It For?
Things to Be Aware Of
Limitations

Overview

This model is designed to generate high-quality, visually appealing images based on textual descriptions and additional user inputs. It supports advanced customization for style, aspect ratios, image refinement, and creative enhancements like inpainting, outpainting, and ControlNet integration. With an intuitive parameter structure, users can achieve precise results for various artistic and practical use cases.

Technical Specifications

  • Architecture:
    • Based on state-of-the-art deep learning frameworks for image synthesis.
    • Utilizes an enhanced diffusion model for generating high-resolution visuals.
  • Performance:
    • Capable of producing images up to 1024x1024 pixels in resolution.
    • Optimized for efficient processing with minimal latency.
  • Customization:
    • Supports fine-tuning for specific artistic styles or project requirements.
  • Flexibility: Users can generate images in various artistic styles, refine outputs with additional prompts, and leverage control parameters for fine-tuning.
  • Input Variety: The model supports a wide range of input types, including text prompts, images, masks, and numerical parameters.

Core Functionalities

  • Image Generation:
    • Generate unique, high-resolution images from detailed prompts.
    • Adjust style, sharpness, and guidance settings for custom outputs.
  • Inpainting and Outpainting:
    • Modify specific areas of an image using masks and additional prompts.
    • Extend image boundaries seamlessly with configurable distances for each side.
  • ControlNet Integration:
    • Allows precise control of image generation by integrating external guidance inputs, such as reference images or structural data.
  • Refinement Options:
    • Enable or disable refinement processes to balance output quality with performance speed.
  • Aspect Ratio Customization:
    • Supports predefined and custom aspect ratios, ensuring compatibility with various use cases.
  • Style and Performance Modes:
    • Select predefined styles for artistic effects.
    • Optimize performance based on speed or quality requirements.

Prompt Clarity: Craft descriptive and specific prompts to guide the model effectively. Avoid overly ambiguous or contradictory instructions.

Negative Prompting: Use the negative_prompt to exclude unwanted elements (e.g., "no text, no watermarks").

Style and Aspect Ratios: Select styles and aspect ratios carefully to align with the intended visual outcome.

Image Refinement: Use the refiner_switch to adjust sharpness or enhance details in generated images.

ControlNet Features: Include ControlNet images (cn_img1, cn_img2, etc.) to incorporate structured guidance, like specific poses or layouts.

Consistency: Use fixed seeds (image_seed) for reproducible outputs.

Customization: Combine loras_custom_urls with use_default_loras to apply pre-trained or custom LoRAs for style and content adjustments.

Key Considerations

  • Parameter Synergy: Combine guidance_scale, sharpness, and refiner_switch for balanced quality and prompt adherence.
  • Image Inputs: Use high-resolution input images for inpainting and outpainting tasks to maintain quality.
  • Prompt Alignment: Ensure prompts match your desired style and subject to avoid conflicting results.
  • ControlNet Layers: Use ControlNet inputs strategically for structured outputs, limiting layers to essential elements to prevent overloading.

Tips & Tricks

  • Experiment with Styles: Test different style_selections to find the best fit for your project.
  • Negative Prompt Precision: List specific elements to exclude for cleaner results.
  • Custom LoRAs: Combine default and custom LoRAs for unique outputs.
  • Outpainting Adjustments: Set outpaint_distance_* values to extend images seamlessly.
  • ControlNet Fine-Tuning: Adjust cn_weight* and cn_stop* for subtle or pronounced effects.

Capabilities

  • Artistic Image Generation:
    • Creates visually stunning artwork in various styles, from realistic to abstract.
  • Customizable Outputs:
    • Tailors images to specific themes, moods, or artistic techniques.
  • High-Resolution Visuals:
    • Produces professional-quality images suitable for printing or digital use.
  • Creative Experimentation:
    • Encourages exploration of unique ideas and concepts.

What Can I Use It For?

  • Creative Projects:
    • Develop concept art, illustrations, or digital paintings.
  • Design Work:
    • Enhance branding, marketing materials, or website visuals.
  • Educational Content:
    • Generate visual aids for presentations, tutorials, or storytelling.
  • Personal Use:
    • Create custom wallpapers, gifts, or personal art collections.

Things to Be Aware Of

  • Theme-Based Prompts:
    • Experiment with themes like "futuristic cityscape," "fantasy forest," or "minimalist design."
  • Artistic Styles:
    • Explore styles such as watercolor, charcoal sketch, or surrealism.
  • Blend Ideas:
    • Combine contrasting concepts for unique results (e.g., "ancient ruins in a cyberpunk world").
  • Iterative Refinement:
    • Generate multiple versions of an image and select or combine elements you like.

Limitations

  • Complex Prompts: Overly detailed or conflicting prompts may reduce output quality.
  • Resolution Constraints: Extremely high resolutions may increase processing time.
  • ControlNet Dependencies: Overusing ControlNet layers can complicate outputs and slow processing.
  • Mask Accuracy: Poorly defined masks in inpainting tasks may lead to unintended edits.

Output Format:PNG