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

# Generate an image



## OpenAPI

````yaml /openapi.json post /v1/images/generations
openapi: 3.1.0
info:
  title: AGIPower API
  version: 1.0.0
  description: >-
    Interactive API reference for AGIPower-compatible OpenAI, Anthropic, Google
    Vertex AI, and management endpoints.
servers:
  - url: https://api.agipower.ai
security:
  - bearerAuth: []
paths:
  /v1/images/generations:
    post:
      tags:
        - Images API
      summary: Generate an image
      operationId: generateImage
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  example: google/gemini-2.5-flash-image
                prompt:
                  type: string
                  example: A clean product shot of a futuristic API dashboard
                size:
                  type: string
                  example: 1024x1024
                'n':
                  type: integer
                  example: 1
              additionalProperties: true
      responses:
        '200':
          description: Generated image response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````