FREE CODEX API GUIDE

Free Codex API access for coding agents when promo tokens are available.

WorldGate exposes a Responses-compatible endpoint that can be configured as a Codex model provider. When a valid campaign is available, promotional GPT tokens may cover eligible GPT requests before prepaid balance. Campaign availability and reward amounts are not guaranteed.

Create an account
01

Connect Codex to WorldGate

Add WorldGate as a custom model provider, point the base URL to the WorldGate v1 endpoint, and store your key in the WORLDGATE_API_KEY environment variable. The compatible Responses surface supports the request and response shapes used by coding agents.

02

Use agent features, not only chat

WorldGate adapts Responses requests with instructions, tool calls, tool results, reasoning effort, and streaming events. Test your repository workflow and model choice before relying on it for production automation.

03

Understand what free means

A WorldGate account is free to create. Eligible campaign codes can add promotional GPT tokens, but codes may expire, have redemption limits, or be unavailable. After promotional tokens are exhausted, requests use prepaid balance at the published rate.

CODEX CONFIG

Use the Responses-compatible endpoint.

Save this provider in your Codex config, then export WORLDGATE_API_KEY in your shell.

model = "gpt-5.6-sol"
model_provider = "worldgate"

[model_providers.worldgate]
name = "WorldGate"
base_url = "https://worldgateapi.com/v1"
env_key = "WORLDGATE_API_KEY"
wire_api = "responses"

COMMON QUESTIONS

What developers ask

Is the WorldGate Codex API permanently free?

No. Eligible promotional GPT tokens can cover requests only while a valid campaign reward remains. Standard usage is prepaid.

Is WorldGate the official OpenAI Codex API?

No. WorldGate is an independent gateway with a Responses-compatible endpoint and is not affiliated with or endorsed by OpenAI.

Which model should Codex use?

Choose a listed GPT model that meets your quality and budget requirements. Test coding, tool use, latency, and total token cost on your own repository.

Does Codex tool calling work?

WorldGate's compatible Responses endpoint supports tool-capable requests and streaming response events. Validate the exact tools and workflow you depend on before wider use.

Lower model cost. Clearer usage.

Start with one WorldGate API key.

Start building