gpt-5.2-codex - API in Egypt, billed in EGP

Live
OpenAI

GPT-5.2-Codex is an upgraded version of GPT-5.1-Codex optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks

Modality

Chat

Context window

400K tokens

Max output

128K tokens

Region

US

Published

20 Aug 2026

Pricing

Input

96.69

EGP per 1M tokens

Output

773.54

EGP per 1M tokens

Monthly cost example

16,437.67 EGP

Illustrative estimate: 50M input + 15M output tokens per month at this model's catalog rates.

Use it via the API

gpt-5.2-codex works with any OpenAI-compatible SDK — point the base URL at https://backend.sovereigneg.com/v1 and use your SovereignEG API key.

Run inference

OpenAI-compatible — POST /v1/chat/completions — drop-in for any OpenAI SDK.

from openai import OpenAI

client = OpenAI(
    base_url="https://backend.sovereigneg.com/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="gpt-5.2-codex",
    messages=[
        {"role": "user", "content": "What are some fun things to do in Cairo?"}
    ],
)

print(response.choices[0].message.content)

Frequently asked questions

How much does gpt-5.2-codex cost?

96.69 EGP per 1M input tokens; 773.54 EGP per 1M output tokens. Billing is metered per token in Egyptian pounds (EGP), with no minimum commitment.

What is the context window of gpt-5.2-codex?

gpt-5.2-codex supports a context window of 400,000 tokens (400K), with up to 128,000 output tokens per response.

Where is gpt-5.2-codex hosted?

gpt-5.2-codex is served from US (US-hosted inference).

How do I use gpt-5.2-codex via the API?

gpt-5.2-codex is available through the OpenAI-compatible SovereignEG API: point your SDK's base URL at https://backend.sovereigneg.com/v1 and call /v1/chat/completions with model "gpt-5.2-codex" and your API key.