> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modelslab.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Base64 to URL

> This endpoint allows you to upload image in base64 format and get it in url format.

## Request

Make a `POST` request to below endpoint and pass the required parameters as a request body.

```curl curl theme={null}
--request POST 'https://modelslab.com/api/v6/image_editing/base64_to_url' \
```

## Body

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


## OpenAPI

````yaml POST /image_editing/base64_to_url
openapi: 3.1.0
info:
  title: ModelsLab Image Editing API
  description: >-
    Image editing endpoints for ModelsLab API including background removal,
    super resolution, face generation, fashion try-on, and various image
    manipulation tools
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api/v6
    description: Image Editing API v6 server
security: []
paths:
  /image_editing/base64_to_url:
    post:
      summary: Convert base64 to URL
      description: >-
        This endpoint allows you to upload image in base64 format and get it in
        url format
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Base64ToUrlRequest'
      responses:
        '200':
          description: Base64 to URL response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Base64ToUrlResponse'
components:
  schemas:
    Base64ToUrlRequest:
      type: object
      required:
        - key
        - init_image
      properties:
        key:
          type: string
          description: Your API Key used for request authorization
        init_image:
          type: string
          description: Base64 format of the image file
    Base64ToUrlResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        id:
          type: integer
          description: Unique identifier for the upload
        output:
          type: array
          items:
            type: string
            format: uri
          description: Array of URLs to the uploaded files

````