QuantifyMe AI agents API

End-to-end automation for ChatGPT, Claude, scripts.

GitHub OpenAPI

Operations 3

POST /api/v1/one_shot End-to-end deploy from one prompt (generate → train → deploy), streaming #
POST /api/v1/one_shot/start Start a deploy in the background and return a poll token immediately #
GET /api/v1/one_shot/status Poll a deploy started by /api/v1/one_shot/start #

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/quantifyme-ai:quantifyme-ai-ai-agents-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

quantifyme-ai-ai-agents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Quantifyme Ai AI agents API
  version: 1.0.0
  contact:
    email: support@quantifyme.ai
    name: QuantifyMe
    url: https://quantifyme.ai
  license:
    name: MIT
  description: 'Operations tagged AI agents across 2 of this provider''s published API definitions: quantifyme-ai.json, quantifyme-ai-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- description: Production
  url: https://api.quantifyme.ai
security:
- ApiKeyAuth: []
tags:
- description: End-to-end automation for ChatGPT, Claude, scripts.
  name: AI agents
paths:
  /api/v1/one_shot:
    post:
      operationId: oneShot
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OneShotRequest'
        required: true
      responses:
        '200':
          content:
            text/event-stream:
              schema:
                $ref: '#/components/schemas/OneShotSseEvents'
          description: 'SSE stream of token/step/done/error events. Terminal `event: done` carries `{live_url, model, stem, channels}`. Requires a client that can hold an open text/event-stream for ~1-2 minutes. **Callers that cannot consume SSE (ChatGPT Actions, most HTTP tool-callers) must use POST /api/v1/one_shot/start + GET /api/v1/one_shot/status instead.** — Server-Sent Events stream. Each message is `event: <type>\ndata: <json>\n\n`.'
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      summary: End-to-end deploy from one prompt (generate → train → deploy), streaming
      tags:
      - AI agents
    servers:
    - description: Production
      url: https://api.quantifyme.ai
  /api/v1/one_shot/start:
    post:
      operationId: oneShotStart
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OneShotRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OneShotStartResponse'
          description: Returns in well under a second with a `job_token`. The deploy itself takes ~1-2 minutes; poll GET /api/v1/one_shot/status until `done` is true. Same request body as /api/v1/one_shot. This is the endpoint to use from ChatGPT Actions and any non-SSE agent.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      summary: Start a deploy in the background and return a poll token immediately
      tags:
      - AI agents
    servers:
    - description: Production
      url: https://api.quantifyme.ai
  /api/v1/one_shot/status:
    get:
      operationId: oneShotStatus
      parameters:
      - description: The `job_token` from /api/v1/one_shot/start.
        in: query
        name: token
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OneShotStatusResponse'
          description: Progress snapshot. Auth is the unguessable job_token itself, so no API key is needed. Poll every few seconds while `done` is false; on `done` show the user `stats` and link them to `live_url`.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Bad request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Invalid or missing API key
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unknown or expired token
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Rate limit exceeded, or insufficient credits (body carries credits_remaining and credits_required)
      security: []
      summary: Poll a deploy started by /api/v1/one_shot/start
      tags:
      - AI agents
    servers:
    - description: Production
      url: https://api.quantifyme.ai
components:
  schemas:
    OneShotSseEvents:
      description: Server-Sent Events stream (text/event-stream). See `description` for event types.
      properties:
        _event_done:
          description: 'Event: done. Terminal success.'
          properties:
            channels:
              items:
                type: string
              type: array
            live_url:
              type: string
            model:
              type: string
            stem:
              type: string
          type: object
        _event_error:
          description: 'Event: error. Terminal failure: `code` is a fixed word for a program, `message` the sentence for the user; a credit refusal adds credits_remaining, credits_required and top_up_url, a cap or rate refusal retry_after_s.'
          properties:
            code:
              type: string
            error:
              type: string
            message:
              type: string
          type: object
        _event_step:
          description: 'Event: step. Coarse progress between phases.'
          properties:
            msg:
              type: string
            pct:
              type: integer
            stage:
              enum:
              - generate
              - train
              - deploy
              type: string
          type: object
        _event_token:
          description: 'Event: token. Streamed during code generation.'
          properties:
            text:
              type: string
          type: object
      type: object
    ErrorResponse:
      properties:
        code:
          description: A fixed word a program can branch on (insufficient_credits, daily_cap, rate_limited, free_tier_exhausted, free_model_limit, prompt_too_long, unsupported_model, ...); a few auth answers still carry the HTTP status number.
          example: insufficient_credits
          type:
          - string
          - integer
        credits_remaining:
          description: 'On ''Insufficient credits'': the account balance.'
          type: integer
        credits_required:
          description: 'On ''Insufficient credits'': the estimated credits the call needs before it will start (depends on claude_model).'
          type: integer
        error:
          example: Invalid or missing API key
          type: string
        message:
          description: 'The sentence to show the user: what was refused, the numbers, and what to do next.'
          type: string
        request_id:
          description: 'On code ''internal_error'' (an unexpected server error): the reference to quote to support (also the X-QM-Request-Id header). `error` and `message` are then a fixed sentence; the detail is in the server log under this id.'
          type: string
        retry_after_s:
          description: 'On a cap or rate refusal: seconds until a retry can pass (also the Retry-After header).'
          type: integer
        top_up_url:
          description: 'On ''Insufficient credits'': the Billing page.'
          type: string
      required:
      - error
      type: object
    OneShotStartResponse:
      properties:
        job_token:
          description: Pass to GET /api/v1/one_shot/status.
          type: string
        live_url:
          description: The user's live dashboard. SHOW THIS TO THE USER AS A LINK IN YOUR VERY NEXT MESSAGE — do not wait for the deploy to finish and do not wait to poll. It is valid immediately and stays valid; opening it signs the user in, and the model appears there once training ends (about a minute). This is the single most important thing to give the user.
          example: https://quantifyme.ai/hfthub?tab=backtesting&swap=swap_...
          type: string
        ok:
          type: boolean
        status_url:
          example: /api/v1/one_shot/status?token=...
          type: string
      type: object
    AuxFeeds:
      description: Extra (symbol, timeframe) feeds merged into the strategy's features as aux_* columns. Max 3; must differ from the primary.
      example:
      - symbol: USDCHF
        timeframe: 15min
      items:
        properties:
          symbol:
            enum:
            - EURUSD
            - GBPUSD
            - USDJPY
            - USDCHF
            - AUDUSD
            - NZDUSD
            - USDCAD
            - BTCUSD
            type: string
          timeframe:
            enum:
            - 1min
            - 5min
            - 15min
            - 1h
            type: string
        type: object
      maxItems: 3
      type: array
    OneShotStatusResponse:
      description: Poll snapshot. Keep polling every few seconds while `done` is false.
      properties:
        author:
          description: Community strategy author, when source='community'.
          type: string
        channels:
          items:
            type: string
          type: array
        code:
          description: The generated Python strategy.
          type: string
        community_id:
          type:
          - integer
          - 'null'
        done:
          description: True once the job is terminal (success OR failure).
          type: boolean
        error:
          description: 'Failure reason when done=true and ok=false: the sentence to show the user.'
          type:
          - string
          - 'null'
        error_code:
          description: 'On a failure: a fixed word a program can branch on (the error event''s `code`; this snapshot''s own `code` is the strategy code); with the refusal''s numbers (credits_remaining, credits_required, top_up_url, retry_after_s) when it has them. ''internal_error'' (an unexpected server error) carries request_id, the reference to quote to support.'
          type:
          - string
          - 'null'
        live_url:
          description: Live dashboard for the deployed model. Show this to the user.
          type: string
        model:
          example: Model 1
          type: string
        msg:
          description: Human-readable progress line.
          type: string
        ok:
          description: Only meaningful once done=true.
          type: boolean
        pct:
          description: 0-100 progress.
          type: integer
        source:
          description: '''community'' means a PRE-EXISTING strategy by `author` was deployed, not a fresh one; only when the caller sent its community_id. A vague prompt deploys a curated ''preset'', or a ''generated'' build when the market has none.'
          enum:
          - generated
          - community
          - preset
          type: string
        stage:
          enum:
          - generate
          - train
          - deploy
          type: string
        stats:
          description: Backtest result. `ret`/`mdd` are fractions (0.119 = 11.9%), `wr` is a fraction, `n` is trade count.
          properties:
            mdd:
              example: -0.059091
              type: number
            n:
              example: 54
              type: integer
            pf:
              example: 1.68
              type: number
            ret:
              example: 0.119388
              type: number
            wr:
              example: 0.6852
              type: number
          type: object
        stem:
          example: 1218_EURUSD_15min_Model_1
          type: string
        strategy_url:
          type: string
        suggestion:
          description: 'After a vague prompt: a community strategy that matched, OFFERED and not deployed (#1686). Deploy it only if the user picks it after seeing its author and code, by calling one_shot with its community_id.'
          properties:
            author:
              type: string
            community_id:
              type: integer
            title:
              type: string
          type:
          - object
          - 'null'
        symbol:
          type: string
        timeframe:
          type: string
      type: object
    OneShotRequest:
      properties:
        api_key:
          description: Your API key, if you cannot set the X-API-Key header. Agents that mint a key at runtime (e.g. a ChatGPT Action calling POST /api/v1/key/trial) should pass the returned `api_key` here on every subsequent call. The X-API-Key header wins when both are present.
          type: string
        aux_feeds:
          $ref: '#/components/schemas/AuxFeeds'
        community_id:
          description: Deploy an existing community strategy by id instead of generating. See GET /api/v1/community.json.
          type: integer
        deliver_to:
          description: 'Channels to wire on deploy. Keys: webhook (bool|url), telegram (chat_id).'
          example:
            webhook: true
          type: object
        entry_token:
          description: Your integration's entry token. ALWAYS send this if you have one, even when you also send api_key. It is what lets this call succeed when the key is not ready yet - agents that issue tool calls in parallel can reach this endpoint before their own createTrialKey call has returned. With a valid entry_token the deploy proceeds under a fresh anonymous identity instead of failing with 401.
          type: string
        preset:
          description: Deploy a curated template instead of generating. See GET /api/v1/presets.
          type: string
        prompt:
          description: At most 4,000 characters; a longer prompt is refused with 400 prompt_too_long before anything is charged.
          example: Buy when RSI hits 30, sell when RSI hits 70
          maxLength: 4000
          type: string
        symbol:
          description: FX pair or BTCUSD. Defaults to EURUSD.
          example: EURUSD
          type: string
        timeframe:
          enum:
          - 1min
          - 5min
          - 15min
          - 1h
          example: 15min
          type: string
      required:
      - prompt
      type: object
  securitySchemes:
    ApiKeyAuth:
      description: Get a key via POST /api/v1/key/trial (anonymous) or sign in at quantifyme.ai. If you cannot set this header — ChatGPT Actions store one static credential and have no per-user header short of OAuth — send the key as the `api_key` request field instead (body on POST, query on GET). The header wins when both are sent.
      in: header
      name: X-API-Key
      type: apiKey
x-refined-from:
- quantifyme-ai.json
- quantifyme-ai-openapi.json