ExosAIGet your API key

Connect Grok to your apps and tools

Use Grok models listed on ExosAI through the same endpoint as your other AI models. Keep your OpenAI SDK and select Grok by changing the model ID.

Pick a Grok model

Search for Grok in the catalog. Compare available versions, context size, input and output prices, and supported capabilities. Check any long-context pricing shown on the model page before sending large documents.

Call Grok from Node.js

Copy the Grok ID from the catalog into the model field and set your EXOSAI_API_KEY environment variable.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.exosai.tech/v1", apiKey: process.env.EXOSAI_API_KEY });
const reply = await client.chat.completions.create({
  model: "MODEL_ID_FROM_THE_CATALOG",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(reply.choices[0].message.content);

Connect Cursor or Cline

Set the OpenAI-compatible base URL to https://api.exosai.tech/v1, enter your ExosAI API key and choose your Grok model ID. The integration guide lists the settings for each tool.

Check features before building

Streaming, tool calls, reasoning and image input depend on the model entry. Tool calls request actions from your application; your application performs them. Built-in features from Grok’s own website are not automatically included in this API.

Questions

Do I need an xAI account?

You use your ExosAI account and API key for models listed here; a separate xAI login is not required for this endpoint.

Can I test Grok before integrating it?

Yes. Select an available Grok model in the ExosAI playground. Requests use the applicable account balance and model price.

Does every Grok model have the same price?

No. Check the catalog entry, including any long-context pricing, for the model you select.

More