Create Project
/texture-mesh/project/create
curl --request POST \
--url https://api.mirageml.com/texture-mesh/project/create \
--header 'Authorization: <authorization>' \
--header 'x-api-key: <x-api-key>' \
--data '{
"prompt": "<prompt>"
}'
Description
Create a mesh with prompt and mesh algorithm
Form Data
The input prompt.
Enum (get3d
): car
, motorbike
, chair
, table
, rocket
, airplane
, train
Enum: point-e
, get3d
, dreamfusion
The underlying algorithm to use for generating the mesh.
Enum (point-e
): base40M
, base300M
, base1B
Number of parameters used to create model.
Enum (dreamfusion
): clip
, stable-diffusion
CLIP and Stable Diffusion are text-to-image embedding models used.
Point-E: How much the image impacts the final output
Dreamfusion: 100 iterations are recommended for highest quality results, fewer iterations will finish faster
Change the stable diffusion checkpoint. You can use any public Hugging Face Checkpoint.
Enum: tris
, quads
The type of polygons to use when generating the mesh
Use Negative Prompt to suppress output
JSON object of links to images to download. Example:
{"0": "https://sabe.io/images/saturn.png" }
curl -X 'POST' \
'https://api.mirageml.com/texture-mesh/project/create' \
-H 'Authorization: <AUTHORIZATION>' \
-H 'Cache-Control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'x-api-key: <API_KEY>' \
-F prompt=<PROMPT> \
-F 'files[]=<FILES>' \
{
"statusCode": 200,
"project_id": "66bb509b-7888-427a-b9fc-1a915a46fba0"
}
curl -X 'POST' \
'https://api.mirageml.com/texture-mesh/project/create' \
-H 'Authorization: <AUTHORIZATION>' \
-H 'Cache-Control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-H 'x-api-key: <API_KEY>' \
-F prompt=<PROMPT> \
-F 'files[]=<FILES>' \
{
"statusCode": 200,
"project_id": "66bb509b-7888-427a-b9fc-1a915a46fba0"
}