Think-Reason-Learn Chat Completions API

The Chat Completions API from Think-Reason-Learn — 1 operation(s) for chat completions.

GitHub OpenAPI

Operations 1

POST /v1/chat/completions Run a model, OpenAI-compatible #

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/thinkreasonlearn-com:thinkreasonlearn-com-chat-completions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

thinkreasonlearn-com-chat-completions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ThinkReasonLearn Chat API
  version: '1'
  description: Pretrained, explainable prediction models. Each model scores an input and returns its own fields plus a `common` block that reads the same for every model. `GET /v1/models` lists every model with its input and output schema.
servers:
- url: https://api.thinkreasonlearn.com
security:
- bearer: []
tags:
- name: Chat Completions
paths:
  /v1/chat/completions:
    post:
      operationId: createChatCompletion
      summary: Run a model, OpenAI-compatible
      description: 'The last user message is the input: plain text, or a JSON object of the model''s input; images as `image_url` parts. The reply content is a JSON string: `{model, release, ...output, common}`. With `stream: true`, the reply arrives as server-sent events in one content chunk.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequest'
      responses:
        '200':
          description: The prediction as a chat completion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletion'
            text/event-stream:
              schema:
                type: string
        '400':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '402':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '502':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '504':
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Chat Completions
components:
  schemas:
    ChatCompletionRequest:
      type: object
      properties:
        model:
          type: string
          enum:
          - think-reason-learn/linkedin-viral-post-predictor
          - think-reason-learn/linkedin-viral-post-predictor-with-account
          - think-reason-learn/github-pr-merge-predictor
          - think-reason-learn/github-contributor-rating
          - think-reason-learn/show-hn-launch-predictor
        messages:
          type: array
          minItems: 1
          items:
            type: object
            properties:
              role:
                type: string
              content:
                anyOf:
                - type: string
                - type: array
                  items:
                    type: object
                - type: 'null'
            required:
            - role
        stream:
          type: boolean
      required:
      - model
      - messages
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            code:
              type: string
              enum:
              - invalid_api_key
              - permission_denied
              - invalid_request
              - model_not_found
              - not_found
              - conflict
              - insufficient_credits
              - monthly_cap_reached
              - key_limit_reached
              - rate_limited
              - upstream_error
              - upstream_timeout
              - unavailable
              - internal_error
          required:
          - message
          - type
          - code
      required:
      - error
    ChatCompletion:
      type: object
      properties:
        id:
          type: string
        object:
          const: chat.completion
        created:
          type: integer
        model:
          type: string
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: integer
              message:
                type: object
                properties:
                  role:
                    const: assistant
                  content:
                    type: string
                    description: 'JSON: `{model, release, ...output, common}`.'
              finish_reason:
                type: string
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
            total_tokens:
              type: integer
            cost:
              type: number
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: An API key from https://api.thinkreasonlearn.com/console/keys.