API Stock Costs API

The Costs API from API Stock — 2 operation(s) for costs.

GitHub OpenAPI

Operations 2

0 of 2 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/v1/cost Get all prices by model observed #
GET /api/v1/cost/{model} Get prices for specific model #

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/api-stock-com:api-stock-com-costs-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

api-stock-com-costs-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stock Costs API
  description: ''
  version: '1.0'
  contact: {}
servers:
- url: https://api.api-stock.com
  description: Production
tags:
- name: Costs
paths:
  /api/v1/cost:
    get:
      operationId: CostController_getAllUserPrices
      parameters: []
      responses:
        '200':
          description: Returns USD prices grouped by routing group, then model id
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: object
                  additionalProperties:
                    type: object
                    additionalProperties:
                      anyOf:
                      - type: string
                        description: Price in USD for the named tariff
                      - type: object
                        additionalProperties: true
                        description: Model-specific tariff metadata; consult the catalog pricing table
      summary: Get all prices by model
      tags:
      - Costs
  /api/v1/cost/{model}:
    get:
      operationId: CostController_getUserPricesByModel
      parameters:
      - name: model
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: Returns USD prices and tariff metadata for the model
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  anyOf:
                  - type: string
                    description: Price in USD for the named tariff
                  - type: object
                    additionalProperties: true
                    description: Model-specific tariff metadata; consult the catalog pricing table
      summary: Get prices for specific model
      tags:
      - Costs
components:
  securitySchemes:
    apiKey:
      scheme: bearer
      bearerFormat: API Key
      type: http
externalDocs:
  description: API Stock documentation
  url: https://docs.api-stock.com