OpenAI · Capability

OpenAI Images API — Images

OpenAI Images API — Images. 3 operations. Lead operation: Openai Create Image Edit. Self-contained Naftiko capability covering one Openai business surface.

Run with Naftiko OpenaiImages

What You Can Do

POST
Createimageedit — Openai Create Image Edit
/v1/images/edits
POST
Createimage — Openai Create Image
/v1/images/generations
POST
Createimagevariation — Openai Create Image Variation
/v1/images/variations

MCP Tools

openai-create-image-edit

Openai Create Image Edit

openai-create-image

Openai Create Image

openai-create-image-variation

Openai Create Image Variation

Capability Spec

images-images.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenAI Images API — Images
  description: 'OpenAI Images API — Images. 3 operations. Lead operation: Openai Create Image Edit. Self-contained Naftiko
    capability covering one Openai business surface.'
  tags:
  - Openai
  - Images
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPENAI_API_KEY: OPENAI_API_KEY
capability:
  consumes:
  - type: http
    namespace: images-images
    baseUri: https://api.openai.com/v1
    description: OpenAI Images API — Images business capability. Self-contained, no shared references.
    resources:
    - name: images-edits
      path: /images/edits
      operations:
      - name: createimageedit
        method: POST
        description: Openai Create Image Edit
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: images-generations
      path: /images/generations
      operations:
      - name: createimage
        method: POST
        description: Openai Create Image
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: images-variations
      path: /images/variations
      operations:
      - name: createimagevariation
        method: POST
        description: Openai Create Image Variation
        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.OPENAI_API_KEY}}'
  exposes:
  - type: rest
    namespace: images-images-rest
    port: 8080
    description: REST adapter for OpenAI Images API — Images. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/images/edits
      name: images-edits
      description: REST surface for images-edits.
      operations:
      - method: POST
        name: createimageedit
        description: Openai Create Image Edit
        call: images-images.createimageedit
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/images/generations
      name: images-generations
      description: REST surface for images-generations.
      operations:
      - method: POST
        name: createimage
        description: Openai Create Image
        call: images-images.createimage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/images/variations
      name: images-variations
      description: REST surface for images-variations.
      operations:
      - method: POST
        name: createimagevariation
        description: Openai Create Image Variation
        call: images-images.createimagevariation
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: images-images-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenAI Images API — Images. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: openai-create-image-edit
      description: Openai Create Image Edit
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: images-images.createimageedit
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-create-image
      description: Openai Create Image
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: images-images.createimage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: openai-create-image-variation
      description: Openai Create Image Variation
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: images-images.createimagevariation
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.