ImageGeneration
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ImageGeneration.type
Members list
Value members
Concrete methods
Factory method for getting a client with the right configuration
Factory method for getting a client with the right configuration
Attributes
Convenience method for quick image generation
Convenience method for quick image generation
Attributes
Convenience method for generating multiple images
Convenience method for generating multiple images
Attributes
Convenience method for quick OpenAI DALL-E image generation
Convenience method for quick OpenAI DALL-E image generation
Attributes
Convenience method for quick Stable Diffusion image generation
Convenience method for quick Stable Diffusion image generation
Attributes
Check service health
Check service health
Attributes
Get a HuggingFace client with the required API key.
Get a HuggingFace client with the required API key.
This is a convenience method for creating a client that connects to the HuggingFace Inference API for image generation.
Value parameters
- apiKey
-
Your HuggingFace API token (required).
- model
-
The specific model to use for generation. Defaults to a standard Stable Diffusion model.
Attributes
- Returns
-
An
ImageGenerationClientinstance configured for HuggingFace.
Get an OpenAI DALL-E client with the required API key.
Get an OpenAI DALL-E client with the required API key.
This is a convenience method for creating a client that connects to the OpenAI API for DALL-E image generation.
Value parameters
- apiKey
-
Your OpenAI API key (required).
- model
-
The DALL-E model version to use. Defaults to dall-e-2.
Attributes
- Returns
-
An
ImageGenerationClientinstance configured for OpenAI DALL-E.
Get a Stable Diffusion client with default local configuration
Get a Stable Diffusion client with default local configuration