hpc-ai logo
Cloud GPUs
PRODUCT
Instances
Fine-tuning
GPU TYPE
B200 SXM6
H200 SXM5
B300 SXM6
Model APIs
Product Introduction
Overview
Featured Models
Z.ai: GLM 5.3Z.ai: GLM 5.3
Z.ai: GLM 5.3 FlashZ.ai: GLM 5.3 Flash
MoonshotAI: Kimi K3MoonshotAI: Kimi K3
DeepSeek: DeepSeek V4 Pro 0813DeepSeek: DeepSeek V4 Pro 0813
OpenAI: GPT-5.5OpenAI: GPT-5.5
โ†’Explore More
Pricing
Cloud GPUs
Model APIs
Fine-Tuning
Docs
Resources
Blog
Customer
Partner Program
Hosting
Company

Codex Integration: Unified Model APIs for AI-Powered Software Development

Codex is designed to help developers write, edit, debug, and understand code using natural language. By connecting Codex to the HPC-AI Tech Model APIs platform, you can leverage high-performance models like Minimax-M2.5 through a unified OpenAI-compatible API.

In this guide, we'll walk you through how to integrate Codex with HPC-AI Tech so you can start building with your preferred models in minutes.

cover

๐Ÿš€ Prerequisites

Before we dive in, make sure you have:

  • Codex installed and set up

  • An HPC-AI Tech API Key (from the Model APIs platform)

๐Ÿ› ๏ธ Configuration: Choose Your Method

Codex offers multiple ways to configure model providers depending on your workflow. Pick what suits you best.

Method 1: Interactive Configuration (Recommended)

Best for developers who prefer a guided CLI setup.

Open your terminal

Start Codex

Run the configuration command:

codex config

Enter the following:

Base URL

https://api.hpc-ai.com/inference/v1

API Key

your-hpc-ai-api-key

Select the model:

minimax/minimax-m2.5

Save the configuration and restart Codex if required.

Method 2: Config File (The Structured Way)

Best for reproducibility, automation, or team environments.

Create or edit:

~/.codex/config.toml

Add the following:

model_provider = "HPC-AI Tech"

[model_providers.hpc-ai]
name = "HPC-AI Tech"
base_url = "https://api.hpc-ai.com/inference/v1"
wire_api = "responses"
experimental_bearer_token = "sk-your-hpc-ai-api-key"
model = "minimax/minimax-m2.5"

Method 3: Environment Variables (The Lightweight Way)

Best for quick setups or CI/CD pipelines.

export HPC_AI_API_KEY="sk-your-hpc-ai-api-key"
export OPENAI_API_BASE="https://api.hpc-ai.com/inference/v1"

Then select:

minimax/minimax-m2.5

as your active model.

โœ… Verifying the Connection

After configuration, it's important to confirm everything is working correctly.

  • Restart Codex (if required)

  • Run a test prompt or coding task

  • Ensure responses are returned successfully from the model

A successful response confirms:

  • Your API key is valid

  • The endpoint is reachable

  • The model is correctly configured

๐ŸŽฏ Summary

By integrating Codex with HPC-AI Tech, you unlock:

  • Access to multiple leading AI models

  • OpenAI-compatible APIs

  • Cost-efficient inference

  • Low-latency model serving

  • Seamless compatibility with AI-powered developer workflows

Whether you're generating new features, debugging complex applications, or building AI-assisted coding workflows, this setup gives you the performance and flexibility needed to scale.

Happy coding!

hpc-ai logo

HPC AI TECHNOLOGY PTE. LTD.

16 Collyer Quay, Level 13, Collyer Quay

Centre, Singapore 049318

Products

  • Cloud GPUs
  • Model APIs New
  • Fine-Tuning
  • Reserved Cluster

Featured Models

  • Z.ai: GLM 5.3
  • Z.ai: GLM 5.3 Flash
  • MoonshotAI: Kimi K3
  • DeepSeek: DeepSeek V4 Pro 0813
  • OpenAI: GPT-5.5

Pricing

  • Cloud GPUs
  • Model APIs
  • Fine-Tuning

Featured GPUs

  • B200 SXM6
  • H200 SXM5
  • B300 SXM6

Developers

  • Docs
  • API Service
  • Quick Start

Resources

  • Blog
  • Customer
  • Partner Program
  • Hosting

Company

  • About Us
  • Contact Us
  • Newsroom
  • Research Papers

Legal

  • Privacy Policy
  • Terms of Service
FacebookXGitHubMediumLinkedinSlack

Copyright ยฉ 2026, HPC AI TECHNOLOGY PTE. LTD.