Resize an image for a vision model
Resize an image to the largest size a given vision model still benefits from, and report what it costs that model in tokens before and after. Every provider downscales oversized input before counting tokens, so this alone saves bytes and upload latency rather than tokens. Pass max_tokens to trade resolution for tokens: that lever is continuous on Claude, unavailable on OpenAI (cost follows the aspect ratio alone), and on Gemini reaches only a flat 258. An image already within budget is returned untouched and free (X-Pig-Billed: 0).
post/v1/optimize_for_vision
Request
- Base URL: https://api.pictomancer.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.pictomancer.ai/v1/optimize_for_vision
- Auth: none declared
Request body
Response
Processed image binary
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.