HarborHarbor
DocumentationGuidesPlugins
All plugins

xAI API

xAI REST API for chat, responses, embeddings, image generation, and model metadata

APICategory: aiPopularity 74xai_api

xAI REST API for chat, responses, embeddings, image generation, and model metadata

Install

hrbr plugins install xai-api

Harbor calls https://api.x.ai (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await xai_api.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "xai-api-example",
  handler: async (ctx) => {
    return await ctx.plugins.xai_api.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools xai-api

Or open the dashboard plugin page for the live tool list.