AI Model APIs
AI Model APIsProviders
AI Model APIs

The complete platform for comparing AI models. Find pricing, capabilities, and the perfect model for your use case.

contact@aimodelapis.com

Resources

  • AI Models APIs
  • Providers

About

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 AI Model APIs. All rights reserved.

Back to Models
OpenCode Zen

GPT-5.2 Codex API

OpenCode Zen
About

Build advanced reasoning agents with GPT-5.2 Codex, a specialized AI model optimized for complex logic and chain-of-thought tasks. This model delivers cost-effective pricing at $1.75/1M input and $14.00/1M output tokens, native tool calling support. Access GPT-5.2 Codex via the OpenCode Zen API with up to 128K output tokens.

Capabilities

Input Modalities

textimagepdf

Output Modalities

text
Reasoning
Yes
Structured Output
Yes
Tool Use
Yes
WeightsClosed
Temperature
Fixed
Attachment
Supported
Limits
Context Window
400K

Tokens

Input Limit
272K

Tokens

Max Output
128K

Tokens

Pricing

Standard (per 1M tokens)

Input
$1.75
Output
$14.00

Caching (per 1M tokens)

Read
$0.17
Frequently Asked Questions

GPT-5.2 Codex by OpenCode Zen costs $1.75 per 1M input tokens and $14.00 per 1M output tokens. Cached reads cost $0.17 per 1M tokens.

Model Details
ID
gpt-5.2-codex
Provider
OpenCode Zen
Family
gpt-codex
Release Date
Jan 14, 2026
Knowledge Cutoff
Aug 31, 2025
API Integration
NPM Package
@ai-sdk/openai-compatible
Environment Variables
OPENCODE_API_KEY
API Base URL
https://opencode.ai/zen/v1
Documentation