HOW-TO GUIDE

How to set up Grok API requests the way xAI recommends for production

Based on a guide by SpaceXSI on the SpaceXSI Docs · Nov 23, 2026

You'll end with: Grok API requests on the Responses API that carry reasoning across turns, reuse the prompt cache, and hold up on long runs.

Why it's worth having: Carrying the encrypted reasoning forward keeps the model's earlier thinking in multi-turn and tool-calling work, which Chat Completions drops.

At a glance

WHO IT'S FOR
Developers and automation engineers who build tools and agents on the xAI API.
LEVEL
Intermediate
COST
Free to read. The method needs an xAI API account and key.
YOU NEED
An xAI API key · A Grok reasoning model · The Responses API

The method, in short

  1. 1Move to the Responses API, since Chat Completions is deprecated and has no field for the encrypted reasoning.
  2. 2Send the encrypted reasoning content back with every turn, and give each conversation its own prompt_cache_key.
  3. 3Set reasoning effort on every request, prefer streaming, and allow at least 900 seconds per request.
  4. 4Start sampling at temperature 0.7 and top_p 0.95, and stay close to those values.

The guide has Python and JavaScript loops, output length settings, and a checklist for running evaluations.

More from The Feed

HOW-TO GUIDE

How to add a custom MCP server to ChatGPT now that developer mode is gone

You'll end with: A remote MCP server connected to ChatGPT on the web as a plugin, with its tools ready to call by name in a chat.

WHO IT'S FOR
Developers, IT admins, and workspace owners who connect internal tools to ChatGPT.
LEVEL
Intermediate
COST
Free to read. Full MCP needs ChatGPT Business, Enterprise, or Edu; Pro gets read-only tools.
YOU NEED
ChatGPT on the web · A remote MCP server with a public HTTPS address · OAuth on the server if it needs a login

Based on a guide by Philipp Shayzhanov on DEV Community · Nov 24, 2026

TOOL

Claude Code now runs Code Mode on Bedrock, Foundry, and Google Cloud

Engineers who run Claude Code through Amazon Bedrock, Google Cloud, or Microsoft Foundry can now use Code Mode in terminal sessions.

WHAT IT DOES
Anthropic's coding agent for the terminal; version 2.1.331 adds Code Mode on four cloud platforms and an API check in claude doctor.
WHO IT'S FOR
Software engineers, automation engineers, and platform teams who run Claude through a cloud provider.
HOW TO START

Needs Claude Code 2.1.331 or later, with a Claude plan or access through Amazon Bedrock, Google Cloud, Microsoft Foundry, or Claude Platform on AWS.

claude doctor

Then read the API connectivity section to see whether the API can be reached, with the HTTP status or the error.

COST
Needs a paid Claude plan or a cloud provider account billed for model use.
WHY IT MATTERS
Plugin manifests can now declare optional dependencies, and the release fixes MCP tool calls that hung for up to 30 minutes on malformed replies.
Source: GitHub
TOOL

Codex 0.172.0 sets an approval reviewer for each connected app tool

Engineers who run OpenAI's Codex can name an approval reviewer per connected app tool, and app-server clients can pick Amazon Bedrock Runtime.

WHAT IT DOES
OpenAI's open source coding agent for the terminal; 0.172.0 adds per-tool approval reviewers in config.toml and Tab completion for slash commands.
WHO IT'S FOR
Software engineers, automation engineers, and IT admins who run Codex in a terminal or through an app server.
HOW TO START

Needs Node.js and npm, or Homebrew, plus a ChatGPT sign-in or an API key.

npm install -g @openai/codex

Then set an approval reviewer for a connected app tool in config.toml and ask Codex to use that tool.

COST
Free under the Apache-2.0 license; usage runs on a ChatGPT Plus, Pro, Business, Edu, or Enterprise plan, or an API key.
WHY IT MATTERS
Optional stdio MCP servers with cached tool lists now start on their first tool call, and Codex names which API spend limit was reached.
Source: GitHub