Skip to content

AI Image Generation

Generate custom images and find stock photos right from the AI chat. Built-in, no API keys required.

Proyecta’s AI can generate images during the build process. There are two built-in tools — one for custom AI-generated visuals and one for curated stock photography. No third-party API keys required.

The AI has a generate_image tool that creates custom visuals on demand. Just ask:

  • "Generate a hero image for my landing page — abstract gradient with floating shapes"
  • "Create product mockup images for my e-commerce store"
  • "Make an illustration of a team collaborating for the about page"

Generated images are stored in your project’s file storage and get a permanent CDN URL. The AI downloads them into your project’s src/assets/ directory (referenced via ES6 import in components). Use target_path: public/<name> to place files in public/ for stable URLs like favicons or OG images.

Options: The AI can control aspect ratio (1:1, 16:9, 9:16, 4:3, 3:4) and quality (medium, high).

For curated real-world photography, the AI uses generate_stock_image to search stock photo libraries (Unsplash by default, Pexels also supported):

  • "Find a hero photo of a modern office space"
  • "Add stock photos of food for the restaurant menu page"

Stock images are downloaded to your project’s src/assets/ directory and a hotlinked CDN URL is also returned. Attribution is included in the tool result — the AI will render photo credits in your UI when the platform is configured for it.

For logos and simple illustrations, the AI can generate SVGs directly without calling an image API:

Generate an SVG logo for my app — minimalist, two colors, abstract mark.
Save it to public/logo.svg and use it in the navbar.
  • AI-generated images are uploaded to blob storage and downloaded into your project’s src/assets/ directory
  • Stock images (Unsplash / Pexels) are downloaded to your project’s src/assets/ directory
  • Runtime-uploaded images (from your app’s users) go through the Files & Media SDK

If you need a specific model or provider for your app’s end users (not the builder), the AI can integrate any image generation service:

  • DALL-E / OpenAI"Add an image generation page that calls OpenAI's images API"
  • Stable Diffusion / Stability AI"Integrate Stability AI with an SDXL model"
  • Replicate"Add Replicate-powered image gen with model selection"

Add your provider’s API key in Environment Variables before asking.