Image-To-3D
2 Get Session Detail

Get Image-to-3D Session Detail

Obtain information about a specific Image-to-3D session via session code.

Request

GET https://api.csm.ai/image-to-3d-sessions/<Session Code>

Code Snippets

Python

import requests
 
url = "https://api.csm.ai/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/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/image-to-3d-sessions/SESSION_1689257215_1674078' \
--header 'x-api-key: <X-API_KEY>'

Response

{
    "error": "",
    "message": "Retrieved",
    "statusCode": 200,
    "data": {
        "_id": "65d5732bccb73f6b4dd0497e",
        "user_id": "652d54ef642585b4048a3ecf",
        "session_code": "SESSION_1708487458_7845495",
        "image_url": "https://image-url.com",
        "input_image": "https://image-url.com",
        "caption": "",
        "discord_user_id": "",
        "user_name": "",
        "email": "user@email.com",
        "preview_mesh_url": "",
        "mesh_url_usdz": "https://mesh-url.com",
        "mesh_url_glb": "https://mesh-url.com",
        "reactions_count": 0,
        "emoji_reactions": {
            "heart": 0,
            "fire": 0,
            "exploding_head": 0,
            "meh": 0,
            "dislike": 0
        },
        "texture_resolution": 2048,
        "mesh_url": "",
        "polished_mesh_url_usdz": "",
        "polished_mesh_url_glb": "",
        "polished_mesh_url": "",
        "mesh_url_obj": "",
        "mesh_url_zip": "https://mesh-url.com",
        "preview_mesh_url_zip": "https://mesh-url.com",
        "preview_mesh_url_glb": "https://previewmesh-url.com",
        "preview_mesh_url_usdz": "https://previewmesh-url.com",
        "preview_mesh_url_fbx": "https://previewmesh-url.com",
        "mesh_url_fbx": "https://mesh-url.com",
        "mp4_url": "https://mp4-url.com",
        "designer_mesh_url": "",
        "preview_mesh_url_3mf": "",
        "mesh_url_3mf": "",
        "session_gif": "",
        "user_image": "",
        "percentage": 100,
        "price": 0,
        "status": "refine_done",
        "topology": "tris",
        "resolution": "high_poly",
        "source": "web",
        "demo": false,
        "user_demo": false,
        "private": true,
        "debug": false,
        "random_poses": true,
        "inference": [],
        "output_id": "d0885be8-0823-493c-903d-f764753196d2",
        "animated_walk_url": "",
        "animated_run_url": "",
        "animated_jump_url": "",
        "auto_gen_3d": true,
        "server_type": "fast",
        "model_version": "2.0",
        "selected_spin": "",
        "is_deleted": false,
        "tier_at_creation": "enterprise",
        "reaction_by_admin": "",
        "manual_segmentation": false,
        "preview_mesh": "hd",
        "pixel_alignment": "lowest",
        "model_resolution": "low",
        "product_version": "1.0.0",
        "diffusion_time_steps": 20,
        "selected_spin_index": 0,
        "spins": [],
        "created_at": "2024-02-21T03:51:07.351Z",
        "updated_at": "2024-02-21T04:36:44.007Z",
        "vote": "",
        "reactions": [],
        "total_reactions": 0
    }
}