Skip to main content
Trinity
Guides/Image Generation

Image Generation

Platform image generation via a two-step Gemini pipeline: prompt refinement then image generation.

How It Works

1

Submit an image generation request via API.

2

Step 1 — Prompt Refinement: Gemini refines the user's prompt using best-practice templates for the use case.

3

Step 2 — Image Generation: Gemini generates the image from the refined prompt.

4

The image is returned as base64 or URL.

Usage

Used internally for agent avatars and other platform features.

API Endpoints

EndpointMethodDescription
/api/image/generatePOSTGenerate an image from a text prompt