xAI

xAI Embedding Models API

The Embedding Models API from xAI — 2 operation(s) for embedding models.

GitHub OpenAPI

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/embedding-models List available embedding models · List all embedding models available to the authenticating API key with full… #
Ask an LLM
“Which embedding models can my API key access?”
“What model IDs are available for generating embeddings?”
Tell an agent
List all embedding models available to my API key.
Show every embedding model I can use.
GET /v1/embedding-models/{model_id} Get an embedding model's details · Get full information about an embedding model with its model_id #
Ask an LLM
“What does a specific embedding model support, like its dimensions and context length?”
“Can I look up one embedding model by its ID?”
Tell an agent
Get embedding model {model_id}.
Show the details of embedding model {model_id}.

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/xai:xai-embedding-models-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

xai-embedding-models-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: xAI's REST Embedding Models API
  description: REST API for xAI compatible with other providers.
  license:
    name: ''
  version: 1.0.0
tags:
- name: Embedding Models
paths:
  /v1/embedding-models:
    get:
      tags:
      - Embedding Models
      summary: List all embedding models available to the authenticating API key with full…
      operationId: handle_embedding_models_list_request
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListEmbeddingModelsResponse'
              example:
                models:
                - id: v1
                  fingerprint: fp_df37966059
                  created: 1725148800
                  object: model
                  owned_by: xai
                  version: 0.1.0
                  input_modalities:
                  - text
                  prompt_text_token_price: 100
                  prompt_image_token_price: 0
                  aliases: []
        '400':
          description: Bad request. The request is invalid or an invalid API key is provided.
      security:
      - bearerAuth: []
  /v1/embedding-models/{model_id}:
    get:
      tags:
      - Embedding Models
      summary: Get full information about an embedding model with its model_id
      operationId: handle_embedding_model_get_request
      parameters:
      - name: model_id
        in: path
        description: ID of the model to get.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmbeddingModel'
              example:
                id: v1
                created: 1725148800
                object: model
                owned_by: xai
                version: 0.1.0
                input_modalities:
                - text
                prompt_text_token_price: 10
                prompt_image_token_price: 0
                aliases: []
        '400':
          description: Bad request. The request is invalid or an invalid API key is provided.
        '404':
          description: Model not found
      security:
      - bearerAuth: []
components:
  schemas:
    EmbeddingModel:
      type: object
      description: Details of an embedding model
      required:
      - id
      - fingerprint
      - created
      - object
      - owned_by
      - version
      - input_modalities
      - output_modalities
      - prompt_text_token_price
      - prompt_image_token_price
      - aliases
      properties:
        aliases:
          type: array
          items:
            type: string
          description: Alias ID(s) of the model that user can use in a request's model field.
        created:
          type: integer
          format: int64
          description: Model creation time in Unix timestamp.
        fingerprint:
          type: string
          description: Fingerprint of the xAI system configuration hosting the model.
        id:
          type: string
          description: Model ID. Obtainable from <https://console.x.ai/team/default/models> or <https://docs.x.ai/docs/models>.
        input_modalities:
          type: array
          items:
            type: string
          description: The input modalities supported by the model.
        object:
          type: string
          description: Object type, should be model.
        output_modalities:
          type: array
          items:
            type: string
          description: The output modalities supported by the model.
        owned_by:
          type: string
          description: Owner of the model.
        prompt_image_token_price:
          type: integer
          format: int64
          description: Price of the prompt image token in USD cents per million token.
        prompt_text_token_price:
          type: integer
          format: int64
          description: Price of the prompt text token in USD cents per million token.
        version:
          type: string
          description: Version of the model.
    ListEmbeddingModelsResponse:
      type: object
      required:
      - models
      properties:
        models:
          type: array
          items:
            $ref: '#/components/schemas/EmbeddingModel'
          description: Array of available embedding models.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer