Together AI · Capability

Together APIs — Batches

Together APIs — Batches. 4 operations. Lead operation: List batch jobs. Self-contained Naftiko capability covering one Together Ai business surface.

Run with Naftiko Together AiBatches

What You Can Do

GET
Get — List batch jobs
/v1/batches
POST
Post — Create a batch job
/v1/batches
GET
Get — Get a batch job
/v1/batches/{id}
POST
Post — Cancel a batch job
/v1/batches/{id}/cancel

MCP Tools

list-batch-jobs

List batch jobs

read-only idempotent
create-batch-job

Create a batch job

get-batch-job

Get a batch job

read-only idempotent
cancel-batch-job

Cancel a batch job

Capability Spec

together-ai-batches.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Together APIs — Batches
  description: 'Together APIs — Batches. 4 operations. Lead operation: List batch jobs. Self-contained Naftiko capability
    covering one Together Ai business surface.'
  tags:
  - Together Ai
  - Batches
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TOGETHER_AI_API_KEY: TOGETHER_AI_API_KEY
capability:
  consumes:
  - type: http
    namespace: together-ai-batches
    baseUri: https://api.together.ai/v1
    description: Together APIs — Batches business capability. Self-contained, no shared references.
    resources:
    - name: batches
      path: /batches
      operations:
      - name: get
        method: GET
        description: List batch jobs
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: post
        method: POST
        description: Create a batch job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: batches-id
      path: /batches/{id}
      operations:
      - name: get
        method: GET
        description: Get a batch job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    - name: batches-id-cancel
      path: /batches/{id}/cancel
      operations:
      - name: post
        method: POST
        description: Cancel a batch job
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.TOGETHER_AI_API_KEY}}'
  exposes:
  - type: rest
    namespace: together-ai-batches-rest
    port: 8080
    description: REST adapter for Together APIs — Batches. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/batches
      name: batches
      description: REST surface for batches.
      operations:
      - method: GET
        name: get
        description: List batch jobs
        call: together-ai-batches.get
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: post
        description: Create a batch job
        call: together-ai-batches.post
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/batches/{id}
      name: batches-id
      description: REST surface for batches-id.
      operations:
      - method: GET
        name: get
        description: Get a batch job
        call: together-ai-batches.get
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/batches/{id}/cancel
      name: batches-id-cancel
      description: REST surface for batches-id-cancel.
      operations:
      - method: POST
        name: post
        description: Cancel a batch job
        call: together-ai-batches.post
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: together-ai-batches-mcp
    port: 9090
    transport: http
    description: MCP adapter for Together APIs — Batches. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: list-batch-jobs
      description: List batch jobs
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: together-ai-batches.get
      outputParameters:
      - type: object
        mapping: $.
    - name: create-batch-job
      description: Create a batch job
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: together-ai-batches.post
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-batch-job
      description: Get a batch job
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: together-ai-batches.get
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: cancel-batch-job
      description: Cancel a batch job
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: together-ai-batches.post
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.