> ## 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

> Let's you to upload a 3D object in base64 format and retrieve a URL for the object.

## 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/3d/base64_to_url' \
```

## Body

```json json theme={null}
{       
    "key":"",    
    "init_obj":"data:model/obj;base64,<base64>"
}
```


## OpenAPI

````yaml POST /3d/base64_to_url
openapi: 3.1.0
info:
  title: ModelsLab 3D API
  description: >-
    AI-powered 3D model generation API supporting text-to-3D, image-to-3D, file
    management, and async processing
  license:
    name: MIT
  version: 6.0.0
servers:
  - url: https://modelslab.com/api/v6
    description: Main API server
security: []
paths:
  /3d/base64_to_url:
    post:
      summary: Upload 3D object from base64
      description: Uploads a 3D object in base64 format and returns a URL for the object
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Base64ToUrlRequest'
      responses:
        '200':
          description: Upload success response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Base64ToUrlResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Base64ToUrlRequest:
      type: object
      required:
        - key
        - init_obj
      properties:
        key:
          type: string
          description: Your API Key used for authenticating your request
        init_obj:
          type: string
          description: The base64 format of the 3D object file to be uploaded
          pattern: ^data:model\/[a-zA-Z0-9]+;base64,[A-Za-z0-9+\/]+=*$
    Base64ToUrlResponse:
      type: object
      properties:
        status:
          type: string
          enum:
            - success
        id:
          type: integer
          description: Unique identifier for the uploaded file
        output:
          type: array
          items:
            type: string
            format: uri
          description: Array containing the URL of the uploaded 3D object
    Error:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
          description: Error message description

````