APIZ Việt Nam

Codex CLI với APIZ

Codex hỗ trợ custom model provider qua user-level config. APIZ dùng Responses API tại endpoint công khai của mình.

Cấu hình user-level

Mở ~/.codex/config.toml và thêm provider. Theo tài liệu OpenAI chính thức, provider tùy chỉnh dùng các trường base_url, env_keywire_api.

model = "YOUR_MODEL_ID"
model_provider = "apiz"

[model_providers.apiz]
name = "APIZ"
base_url = "https://api.apiz.vn/v1"
env_key = "APIZ_API_KEY"
wire_api = "responses"

Cấp API key qua biến môi trường

export APIZ_API_KEY="YOUR_APIZ_KEY"
codex

Không dùng experimental_bearer_token để lưu token trực tiếp trong file config; OpenAI khuyến nghị dùng env_key.

Xác minh

Bắt đầu bằng model ID trả về từ APIZ, chạy một yêu cầu ngắn, rồi kiểm tra usage/log. Trang này chỉ được xem là hoàn tất compatibility sau khi Responses streaming đã PASS end-to-end.