@devvai/devv-code-backend
Version:
Backend SDK for Devv Code - Provides authentication, data management, email and AI capabilities
22 lines (21 loc) • 598 B
TypeScript
import type { TextToImageOptions, TextToImageResponse } from './types';
/**
* DevvImageGen - AI-powered image generation
*
* Text-to-Image generation using Flux Schnell model
* Documentation: https://replicate.com/black-forest-labs/flux-schnell
*
* Usage:
* ```typescript
* const imageGen = new DevvImageGen();
* const result = await imageGen.textToImage({
* prompt: "a red cat",
* num_outputs: 2,
* aspect_ratio: "16:9",
* output_format: "png"
* });
* ```
*/
export declare class DevvImageGen {
textToImage(options: TextToImageOptions): Promise<TextToImageResponse>;
}