Fireworks AI · Capability

Fireworks Text Completion API

Fireworks Text Completion API. 2 operations. Lead operation: Create Chat Completion. Self-contained Naftiko capability covering one Fireworks Ai business surface.

Run with Naftiko Fireworks AiFireworks Text Completion API

What You Can Do

POST
Createchatcompletionv1chatcompletionspost — Create Chat Completion
/v1/v1/chat/completions
POST
Createcompletionv1completionspost — Create Completion
/v1/v1/completions

MCP Tools

create-chat-completion

Create Chat Completion

create-completion

Create Completion

Capability Spec

text-completion.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Fireworks Text Completion API
  description: 'Fireworks Text Completion API. 2 operations. Lead operation: Create Chat Completion. Self-contained Naftiko
    capability covering one Fireworks Ai business surface.'
  tags:
  - Fireworks Ai
  - Fireworks Text Completion API
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FIREWORKS_AI_API_KEY: FIREWORKS_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: text-completion
    baseUri: https://api.fireworks.ai/inference
    description: Fireworks Text Completion API business capability. Self-contained, no shared references.
    resources:
    - name: v1-chat-completions
      path: /v1/chat/completions
      operations:
      - name: createchatcompletionv1chatcompletionspost
        method: POST
        description: Create Chat Completion
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v1-completions
      path: /v1/completions
      operations:
      - name: createcompletionv1completionspost
        method: POST
        description: Create Completion
        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.FIREWORKS_AI_API_KEY}}'
  exposes:
  - type: rest
    namespace: text-completion-rest
    port: 8080
    description: REST adapter for Fireworks Text Completion API. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/chat/completions
      name: v1-chat-completions
      description: REST surface for v1-chat-completions.
      operations:
      - method: POST
        name: createchatcompletionv1chatcompletionspost
        description: Create Chat Completion
        call: text-completion.createchatcompletionv1chatcompletionspost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/completions
      name: v1-completions
      description: REST surface for v1-completions.
      operations:
      - method: POST
        name: createcompletionv1completionspost
        description: Create Completion
        call: text-completion.createcompletionv1completionspost
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: text-completion-mcp
    port: 9090
    transport: http
    description: MCP adapter for Fireworks Text Completion API. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: create-chat-completion
      description: Create Chat Completion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: text-completion.createchatcompletionv1chatcompletionspost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-completion
      description: Create Completion
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: text-completion.createcompletionv1completionspost
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.