naftiko: 1.0.0-alpha2 info: label: Midjourney Image Generation API — Image Analysis description: 'Midjourney Image Generation API — Image Analysis. 1 operations. Lead operation: Generate text prompts from an image. Self-contained Naftiko capability covering one Midjourney business surface.' tags: - Midjourney - Image Analysis created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MIDJOURNEY_API_KEY: MIDJOURNEY_API_KEY capability: consumes: - type: http namespace: image-generation-image-analysis baseUri: https://api.midjourney.com description: Midjourney Image Generation API — Image Analysis business capability. Self-contained, no shared references. resources: - name: v1-describe path: /v1/describe operations: - name: createdescribejob method: POST description: Generate text prompts from an 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.MIDJOURNEY_API_KEY}}' exposes: - type: rest namespace: image-generation-image-analysis-rest port: 8080 description: REST adapter for Midjourney Image Generation API — Image Analysis. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/describe name: v1-describe description: REST surface for v1-describe. operations: - method: POST name: createdescribejob description: Generate text prompts from an image call: image-generation-image-analysis.createdescribejob with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: image-generation-image-analysis-mcp port: 9090 transport: http description: MCP adapter for Midjourney Image Generation API — Image Analysis. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: generate-text-prompts-image description: Generate text prompts from an image hints: readOnly: false destructive: false idempotent: false call: image-generation-image-analysis.createdescribejob with: body: tools.body outputParameters: - type: object mapping: $.