Generate a model
Generate a 3d Model from prompt or image
Body Parameters
- prompt - string - optional
A text prompt to generate 3D model. Required if type is 'text'
- type - string - optional
Type of input, either image or text
(Default: text)Allowed types: text, image
- quality - string - required
Quality of the model
Allowed types: normal, advanced
- image - string - optional
Image URL. Only required if type is 'image' and quality is 'normal'
- file - file - optional
A file in form data. Only required if type is 'image' and quality is 'advanced'
Headers
- Content-Type - - optional
A form data header, only required if type is 'image' and quality is 'advanced'
(Default: application/json)Allowed types: multipart/form-data (if providing file), application/json (if not providing file)
- x-api-key - - optional
Your API token
POST:/3d-model-gen/generate
curl -X POST --location https://api.metakraft.ai/v1/3d-model-gen/generate
-H "Content-Type: HEADER_VALUE" \
-H "x-api-key: HEADER_VALUE" \
--data='{
"prompt": "VALUE",
"type": "VALUE",
"quality": "VALUE",
"image": "VALUE",
"file": "VALUE"
}'
Response
{
"success": true,
"data": {
"glb": "GLB_URL_OF_MODEL",
"image": "IMAGE_URL_OF_MODEL",
"id": "ID_OF_MODEL"
}
}