AIMLAPI Threads > Runs API

The Threads > Runs API from AIMLAPI — 2 operation(s) for threads > runs.

Operations 4

GET /threads/{threadId}/runs AIMLAPI Get Runs
POST /threads/{threadId}/runs AIMLAPI Create Run
POST /threads/{threadId}/runs/{runId} AIMLAPI Update Run
GET /threads/{threadId}/runs/{runId} AIMLAPI Get Run

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aimlapi-threads-runs-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aimlapi-threads-runs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: AIMLAPI AI/ML API Documentation API Key Management Threads > Runs API
  description: "=K Welcome to the [AI/ML API](https://aimlapi.com/) docs! AI/ML API makes integrating state-of-the-art AI models into your applications effortless, offering seamless compatibility with OpenAI-like interfaces.\n\n**Features Include:**\n\n- **Inference**: Easily evaluate models for text, images, and more using our API.\n    \n- **API Key Management**: Securely manage your API keys for controlled access.\n    \n- **Broad Model Selection**: Access a diverse range of models for various AI tasks.\n    \n\nSee Quickstart"
  version: 1.0.0
servers:
- url: https://api.aimlapi.com
security:
- bearerAuth: []
tags:
- name: Threads > Runs
paths:
  /threads/{threadId}/runs:
    get:
      tags:
      - Threads > Runs
      summary: AIMLAPI Get Runs
      parameters:
      - name: threadId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    post:
      tags:
      - Threads > Runs
      summary: AIMLAPI Create Run
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                assistant_id: 0058b312-ff12-4508-9893-10375dedc925
                stream: false
                metadata: {}
      parameters:
      - name: threadId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /threads/{threadId}/runs/{runId}:
    post:
      tags:
      - Threads > Runs
      summary: AIMLAPI Update Run
      requestBody:
        content:
          application/json:
            schema:
              type: object
              example:
                metadata: {}
      parameters:
      - name: threadId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      - name: runId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
    get:
      tags:
      - Threads > Runs
      summary: AIMLAPI Get Run
      parameters:
      - name: threadId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      - name: runId
        in: path
        schema:
          type: string
        required: true
        example: '500123'
      responses:
        '200':
          description: Successful response
          content:
            application/json: {}
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer