getimg 0.0.1

📸 GetImg: A CLI and SDK for interacting with the GetImg API, enabling image generation and manipulation through various endpoints.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Deserialize;

/// Struct representing the response body for text-to-image and image-to-image generation endpoint.
///
/// This struct contains fields representing the generated image, seed used for generation (if applicable),
/// and the cost of generation (if applicable).
#[derive(Debug, Deserialize)]
pub struct ToImageResponse {
    /// The generated image data.
    pub image: String,
    /// The seed used for generation, if applicable.
    pub seed: Option<usize>,
    /// The cost of generation, if applicable.
    pub cost: Option<f64>,
}