Image input tokens per provider and model from the pixel size: OpenAI patch and ...
https://denk.halowerk.com/v1/image-token-estimateOverview
Image input tokens per provider and model from the pixel size: OpenAI patch and tile rules, Claude 28-px visual tokens with tier resizing, Gemini media_resolution.
Protocol
x402 (POST)
Price
$0.0010
Payment Asset
USD Coin
Payment Network
eip155:8453
Category
media/images
Provider
denk
Source
bazaar
Indexed
2026-11-20 16:11:03
Health
Status
unknown
Latency (p50)
—
Uptime (30d)
—
Reliability Score
—
Last Checked
Never
Last Healthy
Never
Consecutive Failures
0
x402 Payment Validation
Payment Requirements
—
Asset Verified
—
Facilitator
—
Input Schema
{
"body": {
"height": 1080,
"targets": [
{
"detail": "high",
"model": "gpt-5.4",
"provider": "openai"
},
{
"model": "claude-sonnet-4-6",
"provider": "anthropic"
},
{
"media_resolution": "high",
"model": "gemini-3.8-flash",
"provider": "gemini"
}
],
"width": 1920
},
"bodyType": "json",
"method": "POST",
"type": "http"
}
Output Schema
{
"example": {
"limitations": [
"Estimates per published rules; billing rounding may differ by one token (OpenAI states this).",
"Gemini values are documented approximate maxima; the Gemini 2.x tiling details are not fully published."
],
"result": {
"height": 1080,
"images": 1,
"results": [
{
"approximate": false,
"detail": "high",
"method": "patch_32px",
"model": "gpt-5.4",
"multiplier": 1.2,
"patches": 2040,
"provider": "openai",
"rejected": null,
"resized": {
"height": 1080,
"width": 1920
},
"source": "https://developers.openai.com/api/docs/guides/images-vision#calculating-costs",
"steps": [],
"tokens": 2448,
"total_tokens": 2448
},
{
"approximate": false,
"method": "visual_tokens_28px",
"model": "claude-sonnet-4-6",
"provider": "anthropic",
"resized": {
"height": 819,
"width": 1456
},
"source": "https://platform.claude.com/docs/en/build-with-claude/vision#evaluate-image-size",
"tier": "standard",
"tokens": 1560,
"total_tokens": 1560,
"was_resized": true
},
{
"approximate": true,
"media_resolution": "high",
"method": "media_resolution_table",
"model": "gemini-3.8-flash",
"note": "Google lists these as approximate token counts per image for Gemini 4 and 3 models.",
"provider": "gemini",
"source": "https://ai.google.dev/gemini-api/docs/media-resolution",
"tokens": 1120,
"total_tokens": 1120
}
],
"retrieved": "2026-11-01",
"width": 1920
},
"service": "image-token-estimate",
"status": "success"
},
"type": "json"
}