naftiko: 1.0.0-alpha2 info: label: Flux Image Generation API — Generation description: 'Flux Image Generation API — Generation. 5 operations. Lead operation: Generate image with FLUX.1 [dev]. Self-contained Naftiko capability covering one Flux business surface.' tags: - Flux - Generation created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FLUX_API_KEY: FLUX_API_KEY capability: consumes: - type: http namespace: image-generation-generation baseUri: https://api.bfl.ai/v1 description: Flux Image Generation API — Generation business capability. Self-contained, no shared references. resources: - name: flux-dev path: /flux-dev operations: - name: generatefluxdev method: POST description: Generate image with FLUX.1 [dev] outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: flux-pro path: /flux-pro operations: - name: generatefluxpro method: POST description: Generate image with FLUX.1 [pro] outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: flux-pro-1.1 path: /flux-pro-1.1 operations: - name: generatefluxpro11 method: POST description: Generate image with FLUX 1.1 [pro] outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: flux-pro-1.1-ultra path: /flux-pro-1.1-ultra operations: - name: generatefluxpro11ultra method: POST description: Generate image with FLUX 1.1 [pro] Ultra outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: flux-schnell path: /flux-schnell operations: - name: generatefluxschnell method: POST description: Generate image with FLUX.1 [schnell] outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: X-Key value: '{{env.FLUX_API_KEY}}' placement: header exposes: - type: rest namespace: image-generation-generation-rest port: 8080 description: REST adapter for Flux Image Generation API — Generation. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/flux-dev name: flux-dev description: REST surface for flux-dev. operations: - method: POST name: generatefluxdev description: Generate image with FLUX.1 [dev] call: image-generation-generation.generatefluxdev with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/flux-pro name: flux-pro description: REST surface for flux-pro. operations: - method: POST name: generatefluxpro description: Generate image with FLUX.1 [pro] call: image-generation-generation.generatefluxpro with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/flux-pro-1-1 name: flux-pro-1-1 description: REST surface for flux-pro-1.1. operations: - method: POST name: generatefluxpro11 description: Generate image with FLUX 1.1 [pro] call: image-generation-generation.generatefluxpro11 with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/flux-pro-1-1-ultra name: flux-pro-1-1-ultra description: REST surface for flux-pro-1.1-ultra. operations: - method: POST name: generatefluxpro11ultra description: Generate image with FLUX 1.1 [pro] Ultra call: image-generation-generation.generatefluxpro11ultra with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/flux-schnell name: flux-schnell description: REST surface for flux-schnell. operations: - method: POST name: generatefluxschnell description: Generate image with FLUX.1 [schnell] call: image-generation-generation.generatefluxschnell with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: image-generation-generation-mcp port: 9090 transport: http description: MCP adapter for Flux Image Generation API — Generation. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: generate-image-flux-1-dev description: Generate image with FLUX.1 [dev] hints: readOnly: false destructive: false idempotent: false call: image-generation-generation.generatefluxdev with: body: tools.body outputParameters: - type: object mapping: $. - name: generate-image-flux-1-pro description: Generate image with FLUX.1 [pro] hints: readOnly: false destructive: false idempotent: false call: image-generation-generation.generatefluxpro with: body: tools.body outputParameters: - type: object mapping: $. - name: generate-image-flux-1-1-pro description: Generate image with FLUX 1.1 [pro] hints: readOnly: false destructive: false idempotent: false call: image-generation-generation.generatefluxpro11 with: body: tools.body outputParameters: - type: object mapping: $. - name: generate-image-flux-1-1-pro-2 description: Generate image with FLUX 1.1 [pro] Ultra hints: readOnly: false destructive: false idempotent: false call: image-generation-generation.generatefluxpro11ultra with: body: tools.body outputParameters: - type: object mapping: $. - name: generate-image-flux-1-schnell description: Generate image with FLUX.1 [schnell] hints: readOnly: false destructive: false idempotent: false call: image-generation-generation.generatefluxschnell with: body: tools.body outputParameters: - type: object mapping: $.