Request
Make aPOST
request to below endpoint and pass the required parameters as a request body.
curl
Body
json
Body
application/json
Response
3D generation response
The response is of type object
.
curl --request POST \
--url https://modelslab.com/api/v6/3d/text_to_3d \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"prompt": "A full body mesh of a dog",
"resolution": 512,
"output_format": "glb",
"render": false,
"negative_prompt": "",
"guidance_scale": 3,
"num_inference_steps": 30,
"ss_guidance_strength": 7.5,
"ss_sampling_steps": 50,
"slat_guidance_strength": 3,
"slat_sampling_steps": 50,
"mesh_simplify": 0.9,
"foreground_ratio": 0.85,
"remove_bg": false,
"chunk_size": 8192,
"seed": 0,
"temp": "no",
"webhook": "<string>",
"track_id": "<string>"
}'
{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"chunk_size": 123,
"file_prefix": "<string>",
"foreground_ratio": "<string>",
"guidance_scale": 123,
"image": "<string>",
"negative_prompt": "<string>",
"num_inference_steps": 123,
"output_format": "<string>",
"prompt": "<string>",
"remove_bg": true,
"render": true,
"resolution": 123,
"seed": 123,
"temp": "<string>",
"ss_guidance_strength": 123,
"ss_sampling_steps": 123,
"slat_guidance_strength": 123,
"slat_sampling_steps": 123,
"mesh_simplify": 123,
"multi_image": true,
"texture_size": 123
}
}
The Text to 3D endpoint generates a 3D object from a text-based prompt.
curl --request POST \
--url https://modelslab.com/api/v6/3d/text_to_3d \
--header 'Content-Type: application/json' \
--data '{
"key": "<string>",
"prompt": "A full body mesh of a dog",
"resolution": 512,
"output_format": "glb",
"render": false,
"negative_prompt": "",
"guidance_scale": 3,
"num_inference_steps": 30,
"ss_guidance_strength": 7.5,
"ss_sampling_steps": 50,
"slat_guidance_strength": 3,
"slat_sampling_steps": 50,
"mesh_simplify": 0.9,
"foreground_ratio": 0.85,
"remove_bg": false,
"chunk_size": 8192,
"seed": 0,
"temp": "no",
"webhook": "<string>",
"track_id": "<string>"
}'
{
"status": "success",
"generationTime": 123,
"id": 123,
"output": [
"<string>"
],
"proxy_links": [
"<string>"
],
"meta": {
"chunk_size": 123,
"file_prefix": "<string>",
"foreground_ratio": "<string>",
"guidance_scale": 123,
"image": "<string>",
"negative_prompt": "<string>",
"num_inference_steps": 123,
"output_format": "<string>",
"prompt": "<string>",
"remove_bg": true,
"render": true,
"resolution": 123,
"seed": 123,
"temp": "<string>",
"ss_guidance_strength": 123,
"ss_sampling_steps": 123,
"slat_guidance_strength": 123,
"slat_sampling_steps": 123,
"mesh_simplify": 123,
"multi_image": true,
"texture_size": 123
}
}
POST
request to below endpoint and pass the required parameters as a request body.
--request POST 'https://modelslab.com/api/v6/3d/text_to_3d' \
{
"key": "your_api_key",
"foreground_ratio": "0.85",
"prompt": "a ghost wearing white bedsheet",
"num_inference_steps": "30",
"resolution": 512,
"guidance_scale": "3",
"ss_sampling_steps": 50,
"slat_sampling_steps": 50,
"seed": 0,
"temp": "no",
"webhook": null,
"track_id": null
}
3D generation response
The response is of type object
.
Was this page helpful?