v1 images
Generate Images
Dedicated image generation endpoint using the Universal Schema with flat parameters.
**Universal Base Schema:**
- user_id (str, required): The end-user ID
- project_id (str, required): The project ID
- persona_id (str, optional): The specific system persona/voice to use
- disabled_learning (bool, optional): If true, request is ignored by long-term memory
- use_reasoning (bool, optional): Enable reasoning loop for constraint-satisfying generation
**Input:**
- text_input (str, optional): The prompt/description for image generation
- session_id (str, optional): Session ID for conversation context
**Reference inputs:**
- image_base64 (str, optional): Base64 encoded reference image for context
- video_base64 (str, optional): Base64 encoded reference video for context
- audio_base64 (str, optional): Base64 encoded reference audio for context
**Image Params (Flat):**
- model (str, optional): Model ID (default: gemini-3.1-flash). Available image models: gemini-3.1-flash, gemini-3-flash, gemini-3.1-pro
- aspect_ratio (str, optional): Aspect ratio, e.g. "1:1", "16:9", "9:16" (default: 1:1).
- resolution (str, optional): Resolution tier: "1K", "2K", or "4K" (default: 4K).
- seed (int, optional): Random seed for reproducibility
**Authentication**: Requires valid API key or JWT token
post/v1/images/generations
Request body
Example request
{
"aspect_ratio": "1:1",
"model": "gemini-3.1-flash",
"project_id": "proj_ABC",
"resolution": "2K",
"seed": 12345,
"text_input": "A golden retriever in a space suit",
"use_reasoning": false,
"user_id": "user_123"
}Response
Successful Response