Groq · Capability

GroqCloud API — Batch

GroqCloud API — Batch. 4 operations. Lead operation: Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).. Self-contained Naftiko capability covering one Groq business surface.

Run with Naftiko GroqBatch

What You Can Do

POST
Createbatch — Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).
/v1/openai/v1/batches
GET
Listbatches — List your organization's batches.
/v1/openai/v1/batches
GET
Retrievebatch — Retrieves a batch.
/v1/openai/v1/batches/{batch-id}
POST
Cancelbatch — Cancels a batch.
/v1/openai/v1/batches/{batch-id}/cancel

MCP Tools

creates-and-executes-batch-uploaded

Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).

list-your-organization-s-batches

List your organization's batches.

read-only idempotent
retrieves-batch

Retrieves a batch.

read-only idempotent
cancels-batch

Cancels a batch.

Capability Spec

groq-batch.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: GroqCloud API — Batch
  description: 'GroqCloud API — Batch. 4 operations. Lead operation: Creates and executes a batch from an uploaded file of
    requests. [Learn more](/docs/batch).. Self-contained Naftiko capability covering one Groq business surface.'
  tags:
  - Groq
  - Batch
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    GROQ_API_KEY: GROQ_API_KEY
capability:
  consumes:
  - type: http
    namespace: groq-batch
    baseUri: https://api.groq.com
    description: GroqCloud API — Batch business capability. Self-contained, no shared references.
    resources:
    - name: openai-v1-batches
      path: /openai/v1/batches
      operations:
      - name: createbatch
        method: POST
        description: Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listbatches
        method: GET
        description: List your organization's batches.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: openai-v1-batches-batch_id
      path: /openai/v1/batches/{batch_id}
      operations:
      - name: retrievebatch
        method: GET
        description: Retrieves a batch.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: batch_id
          in: path
          type: string
          description: The ID of the batch to retrieve.
          required: true
    - name: openai-v1-batches-batch_id-cancel
      path: /openai/v1/batches/{batch_id}/cancel
      operations:
      - name: cancelbatch
        method: POST
        description: Cancels a batch.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: batch_id
          in: path
          type: string
          description: The ID of the batch to cancel.
          required: true
    authentication:
      type: bearer
      token: '{{env.GROQ_API_KEY}}'
  exposes:
  - type: rest
    namespace: groq-batch-rest
    port: 8080
    description: REST adapter for GroqCloud API — Batch. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/openai/v1/batches
      name: openai-v1-batches
      description: REST surface for openai-v1-batches.
      operations:
      - method: POST
        name: createbatch
        description: Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).
        call: groq-batch.createbatch
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listbatches
        description: List your organization's batches.
        call: groq-batch.listbatches
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/openai/v1/batches/{batch-id}
      name: openai-v1-batches-batch-id
      description: REST surface for openai-v1-batches-batch_id.
      operations:
      - method: GET
        name: retrievebatch
        description: Retrieves a batch.
        call: groq-batch.retrievebatch
        with:
          batch_id: rest.batch_id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/openai/v1/batches/{batch-id}/cancel
      name: openai-v1-batches-batch-id-cancel
      description: REST surface for openai-v1-batches-batch_id-cancel.
      operations:
      - method: POST
        name: cancelbatch
        description: Cancels a batch.
        call: groq-batch.cancelbatch
        with:
          batch_id: rest.batch_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: groq-batch-mcp
    port: 9090
    transport: http
    description: MCP adapter for GroqCloud API — Batch. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: creates-and-executes-batch-uploaded
      description: Creates and executes a batch from an uploaded file of requests. [Learn more](/docs/batch).
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: groq-batch.createbatch
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-your-organization-s-batches
      description: List your organization's batches.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: groq-batch.listbatches
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieves-batch
      description: Retrieves a batch.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: groq-batch.retrievebatch
      with:
        batch_id: tools.batch_id
      outputParameters:
      - type: object
        mapping: $.
    - name: cancels-batch
      description: Cancels a batch.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: groq-batch.cancelbatch
      with:
        batch_id: tools.batch_id
      outputParameters:
      - type: object
        mapping: $.