---
title: "Url To Base64"
method: POST
path: "/images/url-to-base64"
tags: ["images"]
---

# Url To Base64

`POST /images/url-to-base64`

Convert an image URL or path to base64 data URL.
Used by frontend to avoid CORS issues when drawing images to canvas.
Only allows URLs from trusted domains (meganova.ai) or local paths.

## Request body

- ImageUrlRequest — Request to convert an image URL to base64
  - `url` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/meganova/apis/fastapi.md) · [All operations](https://skmtc.net/meganova/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/meganova/fastapi/revisions/2b2bab8b9017/schema)
