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
Cloudflare AI Gateway

GPT-5.2 Codex API

Cloudflare AI Gateway
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 Cloudflare AI Gateway 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 Cloudflare AI Gateway 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
openai/gpt-5.2-codex
Provider
Cloudflare AI Gateway
Family
gpt-codex
Release Date
Dec 11, 2025
Knowledge Cutoff
Aug 31, 2025
API Integration
NPM Package
ai-gateway-provider
Environment Variables
CLOUDFLARE_API_TOKEN
CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_GATEWAY_ID
API Base URL
https://gateway.ai.cloudflare.com/v1/${CLOUDFLARE_ACCOUNT_ID}/${CLOUDFLARE_GATEWAY_ID}/compat/
Documentation