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

# Generate image using DALL-E or other providers



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/runtime/v1/images/generate
openapi: 3.0.0
info:
  title: Runflow Runtime API
  description: >-
    Programmatic surface for the Runflow platform — used by the SDK, the CLI,
    the execution engine, and any server-to-server caller. Authenticate with an
    `x-api-key` header (or `Authorization: Bearer ...`).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.runflow.ai
    description: Production
  - url: http://localhost:3000
    description: Local development
security: []
tags: []
paths:
  /api/v1/runtime/v1/images/generate:
    post:
      tags:
        - Runtime API - Core
      summary: Generate image using DALL-E or other providers
      operationId: RuntimeController_generateImage
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenerateImageDto'
      responses:
        '201':
          description: >-
            Image generation result: { images: [{ url? | b64Json? }], model,
            provider, usage? }.
        '400':
          description: Invalid image generation payload.
        '401':
          description: Missing or invalid API key.
      security:
        - bearer: []
components:
  schemas:
    GenerateImageDto:
      type: object
      properties:
        prompt:
          type: string
          description: Prompt describing the image to generate
          example: A futuristic city skyline at sunset with flying cars
        provider:
          type: string
          description: LLM provider for image generation
          enum:
            - openai
            - azure
            - bedrock
          default: openai
        model:
          type: string
          description: Image generation model
          example: dall-e-3
          default: dall-e-3
        providerName:
          type: string
          description: >-
            Provider name (configured in LLM Providers) for credential
            resolution
          example: OpenAI Production
        size:
          type: string
          description: Image size
          enum:
            - 256x256
            - 512x512
            - 1024x1024
            - 1792x1024
            - 1024x1792
          default: 1024x1024
        quality:
          type: string
          description: Image quality (DALL-E 3 only)
          enum:
            - standard
            - hd
          default: standard
        style:
          type: string
          description: Image style (DALL-E 3 only)
          enum:
            - vivid
            - natural
          default: vivid
        'n':
          type: number
          description: Number of images to generate
          minimum: 1
          maximum: 4
          default: 1
      required:
        - prompt

````