Image-to-3d
2 Get Session Detail

Introduction

Get Session Detail from image-to-3d.

Get Session Detail

Request

GET /image-to-3d-sessions/<Session Code>

Code Snippets

Python

import requests

url = "https://api.csm.ai:5566/image-to-3d-sessions/SESSION_1689257215_1674078"

payload = {}
headers = {
  'x-api-key': '<X-API_KEY>',
  'Content-Type': 'application/json'
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Node.js

var request = require('request');
var options = {
  'method': 'GET',
  'url': 'https://api.csm.ai:5566/image-to-3d-sessions/SESSION_1689257215_1674078',
  'headers': {
    'x-api-key': '<X-API_KEY>',
    'Content-Type': 'application/json'
  }
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Curl

curl -k --location 'https://api.csm.ai:5566/image-to-3d-sessions/SESSION_1689257215_1674078' \
--header 'x-api-key: <X-API_KEY>'

Response

{
    "error": "",
    "message": "Retrieved",
    "statusCode": 200,
    "data": {
        "_id": "64b0035d1924dcd2252770ca",
        "user_id": null,
        "session_code": "SESSION_1689256797_6037625",
        "image_url": "https://via.placeholder.com/300/09f/fff.png",
        "input_image": "",
        "discord_user_id": "",
        "user_name": "",
        "email": "",
        "mesh_url_usdz": "",
        "mesh_url_glb": "",
        "mesh_url": "",
        "mp4_url": "",
        "mesh_url_zip":"",
        "preview_mesh_url_zip":"",
        "preview_mesh_url_glb":"",
        "preview_mesh_url_usdz":"",
        "polished_mesh_url_usdz":"",
        "polished_mesh_url_glb":"",
        "polished_mesh_url":"",
        "mesh_url_obj":"",
        "session_gif": "",
        "percentage": 0,
        "experimental_model": false,
        "status": "done",
        "debug": false,
        "source": "external",
        "random_poses": true,
        "user_image":"",
        "is_deleted":false,
        "private":true,
        "demo":false,
        "price":0,
        "inference": [
            {
                "image_name": "U1.png",
                "image_url": "https://loremflickr.com/cache/resized/U1.png?se=2032-08-17T14%3A33%3A27Z&sp=r&sv=2022-11-02&sr=b&sig=0G4sQ/TwCEKVDoLEAfZOE5IlOb%2BkQsNKNJ6IXAORROY%3D",
                "height": 256,
                "width": 256
            },
            {
                "image_name": "U2.png",
                "image_url": "https://loremflickr.com/cache/resized/U2.png?se=2032-08-17T14%3A33%3A27Z&sp=r&sv=2022-11-02&sr=b&sig=jigR1enp/iGrlEajTltIx0zUEbREbmk2x3AS%2BBk86EY%3D",
                "height": 256,
                "width": 256
            },
            {
                "image_name": "U3.png",
                "image_url": "https://loremflickr.com/cache/resized/U3.png?se=2032-08-17T14%3A33%3A27Z&sp=r&sv=2022-11-02&sr=b&sig=GYWtjzOw5EEB69MMCcFVdURz7ALoR75zrYqHBI71c6s%3D",
                "height": 256,
                "width": 256
            },
            {
                "image_name": "U4.png",
                "image_url": "https://loremflickr.com/cache/resized/U4.png?se=2032-08-17T14%3A33%3A27Z&sp=r&sv=2022-11-02&sr=b&sig=8WveUP9JT7l5%2B0LP%2Btu2S3xIv3rgNBDxCTK6WOD4zHw%3D",
                "height": 256,
                "width": 256
            }
        ],
        "output_id": "d18d57c7-e880-46da-beec-be936f5e23d8",
        "created_at": "2023-07-13T13:59:57.994Z",
        "updated_at": "2023-07-13T14:00:07.534Z"
    }
}