{"uid":"cap_ZtamOTbey3q3fLxK48m23","slug":"24k-labs-image-rotate-flip-83504a4f","name":"24K Labs Image Rotate & Flip","description":"Rotate a base64-encoded image by any angle (canvas auto-expands) and/or mirror it horizontally or vertically. Returns the transformed image as base64 PNG.","url":"https://api.24klabs.ai/api/v1/image-rotate-flip","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"flip":{"type":"string"},"angle":{"type":"number"},"image_b64":{"type":"string"}}},"responseSchema":{"type":"json","example":{"width":2,"format":"PNG","height":2,"image_b64":"..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__2Vp4FrEZG75VNyZEl9uC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Rotates a base64-encoded image by any angle (with canvas auto-expansion) and/or mirrors it horizontally or vertically, returning the transformed image as base64 PNG.","exampleAgentPrompt":"Take this base64 image I have and rotate it 90 degrees clockwise, then flip it horizontally so it's mirrored — return the result as a base64 PNG.","exampleUseCases":[{"title":"Correcting upside-down photo orientation","prompt":"I've got a base64-encoded photo that was saved upside down — can you rotate it 180 degrees and give me back the corrected base64 PNG?"},{"title":"Mirroring a logo for a design asset","prompt":"I need to flip this base64-encoded logo image horizontally to create a mirrored version for a symmetrical layout — can you do that and send back the base64 PNG?"},{"title":"Rotating a scanned document at an arbitrary angle","prompt":"I have a scanned page encoded in base64 that's slightly tilted — please rotate it by 15 degrees so it looks straight, and make sure the canvas expands so nothing gets cropped."}],"resultDescription":"Returns a base64-encoded PNG of the transformed image, with the canvas automatically expanded to fit any rotation angle so no content is cropped. The output preserves the original image content but applies the requested rotation and/or mirroring transformations.","failureModes":["Invalid or malformed base64 string returns an error","Unsupported image format in the base64 payload","Rotation angle out of accepted range or missing","Missing required image parameter returns a validation error","Excessively large image may cause timeout or payload size rejection"],"whenToPreferThis":"Choose this endpoint when you need to rotate an image by an arbitrary angle (not just 90-degree multiples) with automatic canvas expansion to avoid cropping, or when you need to combine rotation and horizontal/vertical mirroring in a single call. It is ideal for lightweight, programmatic image orientation correction or creating mirrored design assets without setting up a full image processing pipeline. Prefer this over general image conversion endpoints when the primary need is geometric transformation rather than format conversion.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:43:27.274Z","isFirstParty":false}