ScaledThought Messages API

The Messages API from ScaledThought — 2 operation(s) for messages.

GitHub OpenAPI

Operations 2

POST /v1/messages Anthropic Messages API requests (Claude Code, the Anthropic SDKs), answered by… #
POST /v1/messages/count_tokens An estimate of a Messages request's input tokens. No charge #

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/scaledthought-com:scaledthought-com-messages-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

scaledthought-com-messages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ScaledThought control plane Messages API
  version: 0.1.0
  description: Accounts, keys, budgets, usage, prepaid credits (human-approved top-ups), files, batches and models. Inference is OpenAI-compatible at the base_url returned by signup.
servers:
- url: https://api.us.scaledthought.com
  description: us region
tags:
- name: Messages
paths:
  /v1/messages:
    post:
      operationId: createMessage
      summary: Anthropic Messages API requests (Claude Code, the Anthropic SDKs), answered by…
      security:
      - anthropicApiKey: []
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - model
              - max_tokens
              - messages
      responses:
        '200':
          description: A Message (application/json), or Anthropic's server-sent events when stream is true
          content:
            application/json:
              schema:
                type: object
            text/event-stream:
              schema:
                type: string
        default:
          description: Error (400, 401, 402, 403, 404, 413, 421, 429, 5xx)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnthropicError'
      tags:
      - Messages
  /v1/messages/count_tokens:
    post:
      operationId: countMessageTokens
      summary: An estimate of a Messages request's input tokens. No charge
      security:
      - anthropicApiKey: []
      - apiKey: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
              - model
              - messages
      responses:
        '200':
          description: '{input_tokens, estimated: true}'
          content:
            application/json:
              schema:
                type: object
                properties:
                  input_tokens:
                    type: integer
                  estimated:
                    type: boolean
                required:
                - input_tokens
                - estimated
        default:
          description: Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AnthropicError'
      tags:
      - Messages
components:
  schemas:
    AnthropicError:
      type: object
      description: Anthropic's error envelope, used on /v1/messages; error.code is ScaledThought's code.
      properties:
        type:
          const: error
        error:
          type: object
          properties:
            type:
              type: string
            message:
              type: string
            code:
              type: string
          required:
          - type
          - message
        request_id:
          type: string
      required:
      - type
      - error
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: st_{region}_{env}_… key
    anthropicApiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: st_{region}_{env}_… key