use serde::Serialize;
#[derive(Debug, Serialize)]
pub struct EditImageRequest {
pub model: String,
pub prompt: String,
pub negative_prompt: Option<String>,
pub image: String,
pub image_guidance: f64,
pub steps: usize,
pub guidance: f64,
pub seed: usize,
pub scheduler: String,
pub output_format: String,
}
#[derive(Debug, Serialize)]
pub struct RepaintImageRequest {
pub model: String,
pub prompt: String,
pub negative_prompt: Option<String>,
pub image: String,
pub mask_image: String,
pub strength: Option<f64>,
pub width: usize,
pub height: usize,
pub steps: usize,
pub guidance: f64,
pub seed: usize,
pub scheduler: String,
pub output_format: String,
}
#[derive(Debug, Serialize)]
pub struct TextToImageRequest {
pub prompt: String,
pub model: String,
pub negative_prompt: Option<String>,
pub width: usize,
pub height: usize,
pub steps: usize,
pub output_format: String,
pub seed: Option<usize>,
}
#[derive(Debug, Serialize)]
pub struct ImageToImageRequest {
pub model: String,
pub prompt: String,
pub negative_prompt: Option<String>,
pub image: String,
pub strength: Option<f64>,
pub steps: usize,
pub output_format: String,
pub seed: Option<usize>,
}
#[derive(Debug, Serialize)]
pub struct ControlNetRequest {
pub controlnet: String,
pub model: String,
pub prompt: String,
pub negative_prompt: Option<String>,
pub image: String,
pub strength: f64,
pub width: usize,
pub height: usize,
pub steps: usize,
pub guidance: f64,
pub seed: usize,
pub scheduler: String,
pub output_format: String,
}