Skip to main content

Crate saymaker

Crate saymaker 

Source
Expand description

Generate images and video from Rust on SayMaker.

One API key runs the whole SayMaker shelf on your own credits: Veo 3.1, Kling 3.0, Seedance 2.0, MiniMax H3, Nano Banana 2, GPT Image 2.5, Seedream 5.0 and more. Create a key at https://saymaker.ai/settings/apikeys and set SAYMAKER_API_KEY or pass it in the options.

let url = saymaker::generate("a paper boat at sunrise", &saymaker::Options::default())?;
let clip = saymaker::generate_video("a fox trotting through snow", &saymaker::VideoOptions::default())?;

Structs§

Options
Options for an image. Default is valid.
VideoOptions
Options for a clip. Default is valid.

Enums§

Error
What went wrong, split by what to do next.

Constants§

BASE_URL
The service this crate talks to.
KEYS_URL
Where an API key is created.
MODELS
Model id -> the routing field the API expects next to it. Unlisted ids go as “kie”.
MODEL_EDIT
The default edit model; it takes an input image.
MODEL_IMAGE
The cheapest text-to-image model.
MODEL_VIDEO
The video model a free account can run (480p or 768p, 4 to 15 seconds).

Functions§

classify
Map a refusal message to the error that says what to do next.
first_url
The finished file: the clean image on a paid plan, else the image, else the clip.
generate
Generate one image (or edit opts.image_url) and return its URL.
generate_video
Generate one clip (or animate opts.image_url) and return its URL. Video takes minutes.
provider_for
Which routing field a model id goes with.