VibeFast
Image Generator Feature
Prompt-to-image flows with gallery, history, and provider choice.
Expo image generation flows with OpenAI/Gemini options, gallery UI, and Convex backend.
- •Prompt input, model selector, and gallery UI
- •OpenAI or Gemini providers via env switch
- •Convex backend endpoints for jobs and history
- •Telemetry to monitor generation times
What you get
- ✓UI for prompts, model selection, and image previews
- ✓Gallery and history view with sharing hooks
- ✓Backend endpoints for generation requests and logging
- ✓Env templates to keep keys scoped per environment
Implement quickly
Generate an image
import { imageGeneratorApi } from "@/api-client/image-generator";
await imageGeneratorApi.generate({
prompt: "futuristic city at dusk",
provider: "openai",
});Provider flexibility
- ✓Switch between OpenAI and Gemini without UI rewrites
- ✓Guardrails for missing keys and provider fallback
- ✓Surface errors and retries in the UI components
FAQ
Which providers are supported?
OpenAI and Gemini out of the box. Set the provider via env; the UI and hooks handle the switch.
Can users save or share images?
Yes. Gallery and detail views include hooks for saving and sharing; extend as needed.
Can I limit costs?
Use server-side throttling and provider selection; telemetry helps track usage.