Skip to main content
Glama

get_next_image

Retrieve the next generated image from an ongoing batch session. Returns immediately if available or waits with timeout for pending images.

Instructions

Get the next available image from a batch generation session.

This tool retrieves the next image from an ongoing batch generation. If an image is already available, it returns immediately. Otherwise, it blocks until an image becomes available or timeout.

Args: session_id: Session ID from start_image_batch. timeout: Maximum time to wait for an image (seconds, 1-300).

Returns: Dictionary with file_path, has_more flag, and pending_count.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idYes
timeoutNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/adamryczkowski/Imagen-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server