imagenai
Version:
Turn your alt text descriptions into real images. Generate AI images automatically from HTML alt attributes and code descriptions.
21 lines (20 loc) • 1.21 kB
TypeScript
export declare const DEFAULT_IMAGE_SIZE = "1024x1024";
export declare const DEFAULT_IMAGE_QUALITY = "medium";
export declare const SUPPORTED_SIZES: readonly ["1024x1024", "1024x1536", "1536x1024"];
export declare const SUPPORTED_QUALITIES: readonly ["low", "medium", "high"];
export declare const DEFAULT_TIMEOUT = 30000;
export declare const DEFAULT_RETRIES = 3;
export declare const DEFAULT_CONCURRENCY = 3;
export declare const ERROR_MESSAGES: {
readonly INVALID_API_KEY: "Invalid API key provided";
readonly RATE_LIMIT_EXCEEDED: "Rate limit exceeded. Please try again later.";
readonly QUOTA_EXCEEDED: "Image generation quota exceeded. Please upgrade your subscription.";
readonly INVALID_PROMPT: "Invalid prompt provided. Prompt must be between 1 and 1000 characters.";
readonly GENERATION_FAILED: "Image generation failed. Please try again.";
readonly NETWORK_ERROR: "Network error occurred. Please check your connection.";
readonly TIMEOUT_ERROR: "Request timed out. Please try again.";
readonly UNKNOWN_ERROR: "An unknown error occurred. Please try again.";
};
export declare const SUCCESS_MESSAGES: {
readonly IMAGE_GENERATED: "Image generated successfully";
};