Secton API Chat API

The Chat API from Secton API — 1 operation(s) for chat.

Operations 1

POST /v1/chat/completions Create a chat completion #

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/secton-api-chat-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

secton-api-chat-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Secton API Documentation Chat API
  version: 1.0.0
  description: OpenAPI specification for Secton API.
servers:
- url: https://api.secton.org
  description: Production
tags:
- name: Chat
paths:
  /v1/chat/completions:
    post:
      operationId: post-external-api-v1-chat-completions
      summary: Create a chat completion
      description: ''
      tags:
      - Chat
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChatCompletionRequestSchema'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChatCompletionResponseSchema'
        200 ChatCompletionChunkSchema:
          $ref: '#/components/responses/200 ChatCompletionChunkSchema'
components:
  schemas:
    ChatCompletionResponseSchema:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
          - chat.completion
        created:
          type: number
        model:
          type: string
        choices:
          type: array
          items:
            type: object
            properties:
              index:
                type: number
              message:
                type: object
                properties:
                  role:
                    type: string
                    enum:
                    - assistant
                  content:
                    type: string
                required:
                - role
                - content
              finish_reason:
                type: string
            required:
            - index
            - message
            - finish_reason
        usage:
          type: object
          properties:
            prompt_tokens:
              type: number
            completion_tokens:
              type: number
            total_tokens:
              type: number
          required:
          - prompt_tokens
          - completion_tokens
          - total_tokens
      required:
      - id
      - object
      - created
      - model
      - choices
      - usage
    ChatMessageSchema:
      type: object
      properties:
        role:
          type: string
          enum:
          - system
          - user
          - assistant
        content:
          type: string
      required:
      - role
      - content
    ChatCompletionRequestSchema:
      type: object
      properties:
        model:
          type: string
        messages:
          type: array
          items:
            $ref: '#/components/schemas/ChatMessageSchema'
          minItems: 1
        temperature:
          type: number
          default: 0.7
        stream:
          type: boolean
          default: false
        max_tokens:
          type: integer
          maximum: 4096
          exclusiveMinimum: 0
      required:
      - model
      - messages
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization