POST
/
base64_to_url
Upload base64 to URL
curl --request POST \
  --url https://modelslab.com/api/v6/base64_to_url \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "base64_string": "<string>"
}'
{
  "status": "success",
  "id": 123,
  "output": [
    "<string>"
  ]
}
The URL expires in 24 hours, supports max 5MB uploads, and requires valid base64 format.

Request

Send a POST request to below endpoint.
curl
--request POST 'https://modelslab.com/api/v6/base64_to_url' \

Body

json
{  
  "key": "your_api_key",  
  "base64_string": "data:image/png;base64,<your_base_64_string>"
}

Body

application/json
key
string
required

Your API Key used for request authorization

base64_string
string
required

Image to be uploaded converted in base64 format

Response

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