Azure OpenAI Service · Capability

Azure OpenAI Service REST API — Images

Azure OpenAI Service REST API — Images. 1 operations. Lead operation: AOAI Generate image. Self-contained Naftiko capability covering one Microsoft Azure Openai business surface.

Run with Naftiko Microsoft Azure OpenaiImages

What You Can Do

POST
Createimage — AOAI Generate image
/v1/openai/deployments/{deployment-id}/images/generations

MCP Tools

aoai-generate-image

AOAI Generate image

Capability Spec

microsoft-azure-openai-images.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Azure OpenAI Service REST API — Images
  description: 'Azure OpenAI Service REST API — Images. 1 operations. Lead operation: AOAI Generate image. Self-contained
    Naftiko capability covering one Microsoft Azure Openai business surface.'
  tags:
  - Microsoft Azure Openai
  - Images
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_OPENAI_API_KEY: MICROSOFT_AZURE_OPENAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: microsoft-azure-openai-images
    baseUri: https://{resource}.openai.azure.com
    description: Azure OpenAI Service REST API — Images business capability. Self-contained, no shared references.
    resources:
    - name: openai-deployments-deployment-id-images-generations
      path: /openai/deployments/{deployment-id}/images/generations
      operations:
      - name: createimage
        method: POST
        description: AOAI Generate image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_AZURE_OPENAI_API_KEY}}'
  exposes:
  - type: rest
    namespace: microsoft-azure-openai-images-rest
    port: 8080
    description: REST adapter for Azure OpenAI Service REST API — Images. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/openai/deployments/{deployment-id}/images/generations
      name: openai-deployments-deployment-id-images-generations
      description: REST surface for openai-deployments-deployment-id-images-generations.
      operations:
      - method: POST
        name: createimage
        description: AOAI Generate image
        call: microsoft-azure-openai-images.createimage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: microsoft-azure-openai-images-mcp
    port: 9090
    transport: http
    description: MCP adapter for Azure OpenAI Service REST API — Images. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: aoai-generate-image
      description: AOAI Generate image
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: microsoft-azure-openai-images.createimage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.