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.
Defaultis valid. - Video
Options - Options for a clip.
Defaultis 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.