{"uid":"cap_mS4QPXVgTpJxfmOZxiZEK","slug":"agent402-tools-image-format-converter-25ad86b1","name":"agent402.tools Image Format Converter","description":"Convert an image between formats (PNG, JPEG, BMP). Send a base64 image and the target format; returns the converted image. Optional jpeg quality (1-100). Deterministic, no network.","url":"https://agent402.tools/api/image-convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","description":"base64 image, optionally a data: URL"},"format":{"type":"string","description":"png | jpeg | bmp"},"quality":{"type":"number","description":"jpeg quality 1-100 (default 80)"}}},"responseSchema":{"type":"json","example":{"__note":"returns the converted image as binary"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_R-TzNPzLT3XoyUPCye0T6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a base64-encoded image from one format to another (PNG, JPEG, or BMP) with optional JPEG quality control","exampleAgentPrompt":"Convert this base64 PNG image to JPEG format with a quality of 75: [base64string]","exampleUseCases":null,"resultDescription":"Returns the converted image in the requested format (PNG, JPEG, or BMP) as binary or base64 data, produced locally without any network calls","failureModes":["Invalid base64 string causes decoding error","Unsupported format value (not png, jpeg, or bmp) returns validation error","Quality value out of range (not 1-100) causes parameter rejection","Malformed data URL prefix causes parsing failure","Missing required fields (image or format) returns bad request error"],"whenToPreferThis":"Use this endpoint when you need a fast, deterministic, offline image format conversion between PNG, JPEG, and BMP — especially when you want to avoid external network dependencies or control JPEG compression quality precisely. Prefer this over general image editing APIs when the only transformation needed is format conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T07:04:19.492Z","isFirstParty":false}