Expand description
Image generation provider clients.
oxi-sdk 0.58.0 has no image generation capability — the Provider
trait offers only stream()/name(), and oxi-ai’s
ImageGenerationRequest/ImageGenerationResponse types are dead code
(defined, never implemented, not re-exported). This module is Oxios’s own
image-gen backend, built directly on reqwest.
Type shapes align with the oxi-ai dead types (types.rs) so a future
oxi-sdk implementation can replace this module with minimal friction.
Unlike oxi-ai (which returns Vec<Vec<u8>> bytes), Oxios always normalizes
results to URLs — agents consume images as markdown .
Structs§
- FalImage
Provider - fal.ai provider via the queue REST API.
- FsImage
Store - Filesystem-backed store. Writes into
dir, serves underserve_prefix. - Generated
Image - A single generated image, normalized to a URL.
- Image
GenRequest - A text-to-image generation request.
- Image
GenResult - The result of an image generation call.
- Open
AiImage Provider - OpenAI image-generation client.
Enums§
- Image
GenError - Errors from image generation.
- Image
Size - Supported image dimensions (OpenAI-compatible size strings).
Traits§
- Image
GenProvider - A text-to-image provider.
- Image
Sink - Persists image bytes and returns a URL the frontend can fetch.