xAI · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for xAI's REST Responses API

4 actions 4 updates phrasing extends openapi/xai-responses-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for xAI's API. It is a proposal applied on top of the contract, not a document xAI publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 4

$.info
$.paths['/v1/responses'].post
$.paths['/v1/responses/{response_id}'].get
$.paths['/v1/responses/{response_id}'].delete

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 xAI's REST Responses API
  version: 1.0.0
extends: openapi/xai-responses-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: 3
- target: $.paths['/v1/responses'].post
  update:
    x-apievangelist-phrasing:
      intent: Generate a response from a prompt
      effect: write
      questions:
      - How do I get a model to answer a question I give it?
      - Can I cap how many tokens a generated response can have?
      - Does the response generation support tools and reasoning?
      instructions:
      - text: Generate a response to {input}.
        slots:
          input: requestBody.input
      - text: Respond to {input} with at most {max_output_tokens} tokens.
        slots:
          input: requestBody.input
          max_output_tokens: requestBody.max_output_tokens
      - text: Answer {input} using tools {tools} and reasoning {reasoning}.
        slots:
          input: requestBody.input
          tools: requestBody.tools
          reasoning: requestBody.reasoning
      method: generated
      generated: '2026-11-17'
- target: $.paths['/v1/responses/{response_id}'].get
  update:
    x-apievangelist-phrasing:
      intent: Retrieve a stored response
      effect: read
      questions:
      - Can I fetch a response I generated earlier?
      - What does a previously stored completion look like?
      instructions:
      - text: Get stored response {response_id}.
        slots:
          response_id: path.response_id
      - text: Show me the earlier completion {response_id}.
        slots:
          response_id: path.response_id
      method: generated
      generated: '2026-11-17'
- target: $.paths['/v1/responses/{response_id}'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a stored response
      effect: destructive
      questions:
      - Can I delete a response I stored earlier?
      - Is it possible to remove an old completion from storage?
      instructions:
      - text: Delete stored response {response_id}.
        slots:
          response_id: path.response_id
      - text: Remove the earlier completion {response_id} from storage.
        slots:
          response_id: path.response_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/xai-responses-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.