POST
/
image_editing
/
base64_to_url
Convert base64 to URL
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>"
  ]
}

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v6/image_editing/base64_to_url' \

Body

json
{       
    "key":"api key",    
    "init_image":"data:image/png;base64, <base64>"
}

Body

application/json
key
string
required

Your API Key used for request authorization

init_image
string
required

Base64 format of the image file

Response

200 - application/json

Base64 to URL response

status
enum<string>
Available options:
success
id
integer

Unique identifier for the upload

output
string<uri>[]

Array of URLs to the uploaded files