Mesh API exposes a standalone OpenAI-compatible image generation endpoint at POST /v1/images/generations, supporting models from OpenAI (gpt-image-*, dall-e-3) and Vertex AI (Imagen).
POST /v1/images/generations
Setting stream: true returns a text/event-stream response that prevents the connection from closing during long-running generations.
The stream always ends with data: [DONE].
background, output_format, quality, size, and usage are only present when the upstream provider returns them. Vertex AI (Imagen) does not return token usage. Vertex AI always returns b64_json regardless of response_format.