Image-To-3D
7 List Demo Sessions

List Demo Sessions

Retrieve a list of demo Image-to-3D sessions.

Request

GET https://api.csm.ai/image-to-3d-sessions/demo-sessions

Parameters

limit OPTIONAL
type: string
in: query
default: 10
description: Specifies the number of records to be returned in the response.


page OPTIONAL
type: string
in: query
description: Sets the page of results by defining how many records to skip.

Code Snippets

Python

import requests
 
url = "https://api.csm.ai/image-to-3d-sessions/demo-sessions"
 
payload = {}
headers = {}
 
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/image-to-3d-sessions/demo-sessions',
  headers: {}
};
request(options, function (error, response) {
  if (error) throw new Error(error);
  console.log(response.body);
});

Curl

curl -k --location 'https://api.csm.ai/image-to-3d-sessions/demo-sessions'

Response

{
  "error": "",
  "message": "Retrieved",
  "statusCode": 200,
  "data": {
    "results": [
      {
        "_id": "65cb375904518fa1c0f497bd",
        "user_id": "62fdb597f3efdd2e0a094fdc",
        "session_code": "SESSION_1707816789_8102507",
        "image_url": "https://rawcapture.blob.core.windows.net/uploaded/dharmrajvora/SESSION_1707816789_8102507.png",
        "input_image": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/masked_image.png",
        "email": "dkvora@yopmail.com",
        "preview_mesh_url": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.zip",
        "mesh_url_usdz": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.usdz",
        "mesh_url_glb": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.glb",
        "reactions_count": 3,
        "emoji_reactions": {
          "heart": 1,
          "fire": 0,
          "exploding_head": 1,
          "meh": 0,
          "dislike": 1
        },
        "mesh_url_zip": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.zip",
        "preview_mesh_url_glb": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.glb",
        "mesh_url_fbx": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/mesh.fbx",
        "mp4_url": "https://imageto3d.blob.core.windows.net/data/inference_outputs/dkvora@yopmail.com/SESSION_1707816789_8102507/refined.mp4",
        "percentage": 100,
        "status": "refine_done",
        "demo": true,
        "spins": [
          {
            "image_name": "image_00",
            "image_url": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/spins/spin_00.mp4"
          },
          {
            "image_name": "image_01",
            "image_url": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/spins/spin_01.mp4"
          },
          {
            "image_name": "image_02",
            "image_url": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/spins/spin_02.mp4"
          },
          {
            "image_name": "image_03",
            "image_url": "https://nerffmpremium.blob.core.windows.net/inference-spins/dkvora@yopmail.com/SESSION_1707816789_8102507/spins/spin_03.mp4"
          }
        ],
        "created_at": "2024-02-13T09:33:13.895Z",
        "updated_at": "2024-02-14T08:10:50.465Z"
      }
    ],
    "page": 0,
    "skip": 0,
    "limit": 10,
    "totalPages": 1,
    "totalResults": 1
  }
}