naftiko: 1.0.0-alpha2 info: label: Cloudflare Workers AI API — AI Inference description: 'Cloudflare Workers AI API — AI Inference. 1 operations. Lead operation: Cloudflare Execute Ai Model. Self-contained Naftiko capability covering one Cloudflare business surface.' tags: - Cloudflare - AI Inference created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CLOUDFLARE_API_KEY: CLOUDFLARE_API_KEY capability: consumes: - type: http namespace: workers-ai-ai-inference baseUri: https://api.cloudflare.com/client/v4 description: Cloudflare Workers AI API — AI Inference business capability. Self-contained, no shared references. resources: - name: accounts-account_id-ai-run-model path: /accounts/{account_id}/ai/run/{model} operations: - name: executeaimodel method: POST description: Cloudflare Execute Ai Model outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: model in: path type: string description: The model identifier to execute, e.g. @cf/meta/llama-3.1-8b-instruct. required: true - name: body in: body type: object description: Request body (JSON). required: true authentication: type: bearer token: '{{env.CLOUDFLARE_API_KEY}}' exposes: - type: rest namespace: workers-ai-ai-inference-rest port: 8080 description: REST adapter for Cloudflare Workers AI API — AI Inference. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts/{account-id}/ai/run/{model} name: accounts-account-id-ai-run-model description: REST surface for accounts-account_id-ai-run-model. operations: - method: POST name: executeaimodel description: Cloudflare Execute Ai Model call: workers-ai-ai-inference.executeaimodel with: model: rest.model body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: workers-ai-ai-inference-mcp port: 9090 transport: http description: MCP adapter for Cloudflare Workers AI API — AI Inference. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: cloudflare-execute-ai-model description: Cloudflare Execute Ai Model hints: readOnly: false destructive: false idempotent: false call: workers-ai-ai-inference.executeaimodel with: model: tools.model body: tools.body outputParameters: - type: object mapping: $.