✨ NEW:Flux 2 Dev Generate photorealistic images. · Try it now
cURL
curl --request POST \ --url https://modelslab.com/api/v6/image_editing/base64_to_url \ --header 'Content-Type: application/json' \ --data ' { "key": "<string>", "init_image": "<string>" } '
{ "status": "success", "id": 123, "output": [ "<string>" ] }
This endpoint allows you to upload image in base64 format and get it in url format.
POST
--request POST 'https://modelslab.com/api/v6/image_editing/base64_to_url' \
{ "key":"api key", "init_image":"data:image/png;base64, <base64>" }
Your API Key used for request authorization
Base64 format of the image file
Base64 to URL response
success
Unique identifier for the upload
Array of URLs to the uploaded files
Was this page helpful?