> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aireserve.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate images

> Generate images. Synchronous — multi-image or high-quality generations can take tens of seconds, so set client timeouts accordingly.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/images/generations
openapi: 3.0.3
info:
  title: AI Reserve Gateway API
  description: >-
    The AI Reserve AI gateway REST surface — OpenAI-compatible chat completions,
    Anthropic-compatible messages, Bedrock Converse, images, video, and files
    behind one endpoint and one API key.
  version: 1.0.0
servers:
  - url: https://api.aireserve.com
security:
  - bearerAuth: []
paths:
  /v1/images/generations:
    post:
      tags:
        - Images
      summary: Generate images
      description: >-
        Generate images. Synchronous — multi-image or high-quality generations
        can take tens of seconds, so set client timeouts accordingly.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
            example:
              model: gemini-2.5-flash-image
              prompt: A watercolor painting of a fox in a snowy forest
              'n': 1
              size: 1024x1024
              response_format: url
      responses:
        '200':
          description: Default Response
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your AI Reserve API key (aireserve_api_…) from Profile → My API Keys in
        the portal.

````