Workers AI Image Models (workersai/WorkersAiImageModelName.java)

langchain4j · langchain4j-workers-ai/src/main/java/dev/langchain4j/model/workersai/WorkersAiImageModelName.java · java · Apache-2.0
ai, infra, tag:workers-ai, tag:enum, tag:model-config

Enum listing Cloudflare Workers AI text-to-image model identifiers, such as Stable Diffusion variants, for configuring image generation requests. Reuse when selecting supported Workers AI image models.

// Source: https://github.com/langchain4j/langchain4j | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package dev.langchain4j.model.workersai;

/**
 * Enum for Workers AI Omage Model Name.
 */
public enum WorkersAiImageModelName {

    // ---------------------------------------------------------------------
    // Text to image
    // https://developers.cloudflare.com/workers-ai/models/text-to-image/
    // ---------------------------------------------------------------------

    /**
     * Diffusion-based text-to-image generative model by Stability AI. Generates and modify images based on text prompts.
     */
    STABLE_DIFFUSION_XL("@cf/stabilityai/stable-diffusion-xl-base-1.0

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key