Skip to main content

Module image_gen

Module image_gen 

Source
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 ![](url).

Structs§

FalImageProvider
fal.ai provider via the queue REST API.
FsImageStore
Filesystem-backed store. Writes into dir, serves under serve_prefix.
GeneratedImage
A single generated image, normalized to a URL.
ImageGenRequest
A text-to-image generation request.
ImageGenResult
The result of an image generation call.
OpenAiImageProvider
OpenAI image-generation client.

Enums§

ImageGenError
Errors from image generation.
ImageSize
Supported image dimensions (OpenAI-compatible size strings).

Traits§

ImageGenProvider
A text-to-image provider.
ImageSink
Persists image bytes and returns a URL the frontend can fetch.