- Model
gpt-4o- Provider
cloudflare-ai-gateway- API
openai-responses- Base URL
https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai- Input
- text, image
- Reasoning
- No
- Context window
- 128,000
- Max tokens
- 16,384
- Cost / million input
- $2.5
- Cost / million output
- $10
- Cost / million cache read
- $1.25
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"cloudflare-ai-gateway": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "gpt-4o",
"name": "GPT-4o",
"reasoning": false,
"input": [
"text",
"image"
],
"contextWindow": 128000,
"maxTokens": 16384,
"cost": {
"input": 2.5,
"output": 10,
"cacheRead": 1.25,
"cacheWrite": 0
}
}
],
"api": "openai-responses",
"baseUrl": "https://gateway.ai.cloudflare.com/v1/{CLOUDFLARE_ACCOUNT_ID}/{CLOUDFLARE_GATEWAY_ID}/openai"
}
}
}