The image proxy for AI models

A lightweight image proxy to reduce costs and latency of AI image analysis.

{ "type": "input_image", "image_url": "https://api.tkntrim.com/trim?url=image.com" }
Spend less tokens for free

No sign up or credit card required.

Send smaller images, pay smaller bills

Without tkntrim
https://www.nps.gov/npgallery/GetAsset/8f696dfa-1dd8-b71b-0bcf-b71a5e256925/ An image from the National Parks Service of a mountain.
Input Tokens 2375
Time 4.67s
Size 6,647 kB
AI Model Response
This image features a scenic landscape with a snow-capped mountain in the background, surrounded by dense evergreen forests. In the foreground, there is a calm body of water reflecting the image of the mountain and trees. The sky is clear with a few clouds, creating a peaceful and beautiful natural setting.
With tkntrim
https://api.tkntrim.com/trim?url=https://www.nps.gov/npgallery/GetAsset/8f696dfa-1dd8-b71b-0bcf-b71a5e256925/ An AI-optimized image to reduce the number of tokens and latency of AI models consuming images.
Input Tokens 92
Time 1.58s
Size 7.6 kB
AI Model Response
This image shows a scenic natural landscape featuring a snow-capped mountain in the background. In the foreground, there is a calm body of water, likely a lake or pond, which reflects the mountain and surrounding trees. The area around the water is lush with green plants and trees, contributing to the peaceful and pristine outdoor setting. The sky above is mostly clear with a few clouds.

For most tasks, AI models don't need high-quality images; they need efficient visual data. By stripping unnecessary detail and compressing intelligently, tkntrim delivers images that are smaller, faster to transmit, and easier for models to process - without noticeable impacts on performance or response quality.

Image sourced from the National Park Service gallery. Tokens and latency measured with OpenAI's gpt-4.1-nano.

Add one line of code. Save thousands of tokens.

Cut token usage and latency in less than ten minutes, without changing your backend, infrastructure, or workflow.

Integrate tkntrim
{ "type": "input_image", "image_url": "https://api.tkntrim.com/trim?url=image.com" }

Real Token Savings

See how much you could save with tkntrim

Without tkntrim

Average tokens per image: 797.96
Images per day: 100,000
Daily token usage: 79,696,000
Average response time: 2.46s
Monthly cost (o3): $159.59

With tkntrim

Average tokens per image: 54.97
Images per day: 100,000
Daily token usage: 5,497,967
Average response time: 0.92s
Monthly cost (gpt-4.1-nano): $11.00
93%
Token Reduction
$148.59
Monthly Savings
$1,783.08
Annual Savings
2.67x
Faster Response

No credit card required • 1,000 free images

No More Image Hallucinations

AI models often fail to see images when URLs redirect, expire, or require cookies. tkntrim acts as a smart proxy, following redirects and resolving every image to a direct, accessible file—so your model always gets the real picture, not a broken link or a hallucinated guess.

Handles redirects & cookies
Always delivers a valid image
No more model confusion or hallucination

Security Built In

tkntrim protects your application and models from common image-based security threats. Every request is validated, sanitized, and served securely—so you can focus on building, not patching vulnerabilities.

Blocks malicious URLs & SSRF
Validates & sanitizes every request
Never exposes your API keys
Enforces HTTPS & secure headers