Elastic · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for Elasticsearch ml trained model API

16 actions 16 updates phrasing extends openapi/elastic-ml-trained-model-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for Elastic's API. It is a proposal applied on top of the contract, not a document Elastic publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 16

$.info
$.paths['/_ml/trained_models/{model_id}/deployment/cache/_clear'].post
$.paths['/_ml/trained_models/{model_id}'].get
$.paths['/_ml/trained_models/{model_id}'].put
$.paths['/_ml/trained_models/{model_id}'].delete
$.paths['/_ml/trained_models/{model_id}/model_aliases/{model_alias}'].put
$.paths['/_ml/trained_models/{model_id}/model_aliases/{model_alias}'].delete
$.paths['/_ml/trained_models'].get
$.paths['/_ml/trained_models/{model_id}/_stats'].get
$.paths['/_ml/trained_models/_stats'].get
$.paths['/_ml/trained_models/{model_id}/_infer'].post
$.paths['/_ml/trained_models/{model_id}/definition/{part}'].put
$.paths['/_ml/trained_models/{model_id}/vocabulary'].put
$.paths['/_ml/trained_models/{model_id}/deployment/_start'].post
$.paths['/_ml/trained_models/{model_id}/deployment/_stop'].post
$.paths['/_ml/trained_models/{model_id}/deployment/_update'].post

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for Elasticsearch ml trained model API
  version: 1.0.0
extends: openapi/elastic-ml-trained-model-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-17'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 15
- target: $.paths['/_ml/trained_models/{model_id}/deployment/cache/_clear'].post
  update:
    x-apievangelist-phrasing:
      intent: Clear a trained model deployment's inference cache
      effect: write
      questions:
      - How do I clear the inference cache on a deployed model?
      - Can I flush cached inference results for one trained model?
      instructions:
      - text: Clear the deployment cache for trained model {model_id}.
        slots:
          model_id: path.model_id
      - text: Flush cached inference results of deployed model {model_id}.
        slots:
          model_id: path.model_id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Get configuration for a trained model
      effect: read
      questions:
      - What inference config does a specific trained model have?
      - Can I get a model's definition decompressed?
      instructions:
      - text: Get the configuration of trained model {model_id}.
        slots:
          model_id: path.model_id
      - text: Show trained model {model_id} including {include}.
        slots:
          model_id: path.model_id
          include: query.include
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}'].put
  update:
    x-apievangelist-phrasing:
      intent: Create a trained model
      effect: write
      questions:
      - How do I upload a new trained model to Elasticsearch?
      - Can I create a model now and upload its definition in parts later?
      instructions:
      - text: Create trained model {model_id} with inference config {inference_config}.
        slots:
          model_id: path.model_id
          inference_config: requestBody.inference_config
      - text: Create trained model {model_id} described as {description}.
        slots:
          model_id: path.model_id
          description: requestBody.description
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an unused trained model
      effect: destructive
      questions:
      - How do I delete a trained model that no pipeline references?
      - Can I force-delete a trained model that's still in use?
      instructions:
      - text: Delete trained model {model_id}.
        slots:
          model_id: path.model_id
      - text: Force delete trained model {model_id} with force set to {force}.
        slots:
          model_id: path.model_id
          force: query.force
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/model_aliases/{model_alias}'].put
  update:
    x-apievangelist-phrasing:
      intent: Point a model alias at a trained model
      effect: write
      questions:
      - How do I swap a new model in behind an alias without changing pipelines?
      - Can I reassign an existing alias to a different model?
      instructions:
      - text: Create alias {model_alias} for trained model {model_id}.
        slots:
          model_alias: path.model_alias
          model_id: path.model_id
      - text: Move alias {model_alias} to model {model_id} with reassign set to {reassign}.
        slots:
          model_alias: path.model_alias
          model_id: path.model_id
          reassign: query.reassign
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/model_aliases/{model_alias}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove an alias from a trained model
      effect: destructive
      questions:
      - How do I remove a model alias?
      - Can I delete an alias without deleting the model behind it?
      instructions:
      - text: Delete alias {model_alias} from trained model {model_id}.
        slots:
          model_alias: path.model_alias
          model_id: path.model_id
      - text: Unlink alias {model_alias} from {model_id}.
        slots:
          model_alias: path.model_alias
          model_id: path.model_id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models'].get
  update:
    x-apievangelist-phrasing:
      intent: List all trained model configurations
      effect: read
      questions:
      - Which trained models are available in my cluster?
      - Can I list trained models filtered by tag?
      instructions:
      - text: List configurations for all trained models.
      - text: List trained models tagged {tags}.
        slots:
          tags: query.tags
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/_stats'].get
  update:
    x-apievangelist-phrasing:
      intent: Get usage stats for a trained model
      effect: read
      questions:
      - How many inferences has a specific model served?
      - What's the deployment and memory status of one trained model?
      instructions:
      - text: Show usage stats for trained model {model_id}.
        slots:
          model_id: path.model_id
      - text: Get inference and deployment stats of {model_id}.
        slots:
          model_id: path.model_id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/_stats'].get
  update:
    x-apievangelist-phrasing:
      intent: Get usage stats for all trained models
      effect: read
      questions:
      - Which of my trained models are being used the most?
      - Can I page through usage stats for every model?
      instructions:
      - text: Show usage stats for all trained models.
      - text: Get stats for {size} trained models starting at {offset}.
        slots:
          size: query.size
          offset: query.from
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/_infer'].post
  update:
    x-apievangelist-phrasing:
      intent: Run inference with a trained model
      effect: read
      questions:
      - How do I run text through a deployed NLP model and get predictions?
      - Can I override the inference config for a single inference call?
      instructions:
      - text: Run inference with model {model_id} on docs {docs}.
        slots:
          model_id: path.model_id
          docs: requestBody.docs
      - text: Evaluate {docs} against {model_id} with a timeout of {timeout}.
        slots:
          docs: requestBody.docs
          model_id: path.model_id
          timeout: query.timeout
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/definition/{part}'].put
  update:
    x-apievangelist-phrasing:
      intent: Upload one part of a model definition
      effect: write
      questions:
      - How do I upload a large model definition in chunks?
      - What do I need to send for each part of a model definition?
      instructions:
      - text: Upload definition part {part} of {total_parts} for model {model_id}.
        slots:
          part: path.part
          total_parts: requestBody.total_parts
          model_id: path.model_id
      - text: Store chunk {part} of model {model_id} with total length {total_length}.
        slots:
          part: path.part
          model_id: path.model_id
          total_length: requestBody.total_definition_length
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/vocabulary'].put
  update:
    x-apievangelist-phrasing:
      intent: Upload a vocabulary for an NLP model
      effect: write
      questions:
      - How do I add a tokenizer vocabulary to an imported NLP model?
      - Can I include BPE merges with a model vocabulary?
      instructions:
      - text: Upload vocabulary {vocabulary} for model {model_id}.
        slots:
          vocabulary: requestBody.vocabulary
          model_id: path.model_id
      - text: Set the vocabulary of {model_id} with merges {merges}.
        slots:
          model_id: path.model_id
          merges: requestBody.merges
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/deployment/_start'].post
  update:
    x-apievangelist-phrasing:
      intent: Deploy a trained model for inference
      effect: write
      questions:
      - How do I start a model deployment so it can serve inference requests?
      - Can I choose the number of allocations and threads when deploying a model?
      instructions:
      - text: Start a deployment of model {model_id}.
        slots:
          model_id: path.model_id
      - text: Deploy {model_id} with {allocations} allocations and {threads} threads per allocation.
        slots:
          model_id: path.model_id
          allocations: query.number_of_allocations
          threads: query.threads_per_allocation
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/deployment/_stop'].post
  update:
    x-apievangelist-phrasing:
      intent: Stop a trained model deployment
      effect: write
      questions:
      - How do I stop a deployed model and free its memory?
      - Can I force-stop a model deployment that pipelines still use?
      instructions:
      - text: Stop the deployment of model {model_id}.
        slots:
          model_id: path.model_id
      - text: Force stop deployment {model_id} with force set to {force}.
        slots:
          model_id: path.model_id
          force: query.force
      method: generated
      generated: '2026-11-17'
- target: $.paths['/_ml/trained_models/{model_id}/deployment/_update'].post
  update:
    x-apievangelist-phrasing:
      intent: Scale a running model deployment
      effect: write
      questions:
      - How do I add more allocations to a model that's already deployed?
      - Can I turn on adaptive allocations for an existing deployment?
      instructions:
      - text: Change deployment {model_id} to {allocations} allocations.
        slots:
          model_id: path.model_id
          allocations: requestBody.number_of_allocations
      - text: Enable adaptive allocations {adaptive} on deployment {model_id}.
        slots:
          adaptive: requestBody.adaptive_allocations
          model_id: path.model_id
      method: generated
      generated: '2026-11-17'

Work with this as data

Every overlay 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 openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • 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 overlay
curl "https://apis.io/api/v1/overlays/elastic-ml-trained-model-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.