The Claythis API allows you to programmatically generate 3D models from images. All API requests require authentication using your API key.
Base URL
https://claythis.comInclude your API key in the request header of all API calls:
X-API-Key: <your_api_key>If your key is missing or invalid, the API returns 401 Unauthorized.
multipart/form-dataPNG and JPEGCreate a 3D generation job from an image
image(file)image_url(string)motions(string (JSON array)){
"success": true,
"data": {
"taskId": "<your_task_id>"
}
}# Upload image file (PNG) - All animations
curl -sS -X POST "https://claythis.com/api/3d/generate" \
-H "X-API-Key: <your_api_key>" \
-H "Expect:" \
-F "image=@/path/to/image.png;type=image/png"
# Upload with specific motions
curl -sS -X POST "https://claythis.com/api/3d/generate" \
-H "X-API-Key: <your_api_key>" \
-H "Expect:" \
-F "image=@/path/to/image.png;type=image/png" \
-F 'motions=["Idle_Loop_Rig", "Walk_Loop_Rig", "Jog_Fwd_Loop_Rig"]'
# Using image URL
curl -sS -X POST "https://claythis.com/api/3d/generate" \
-H "X-API-Key: <your_api_key>" \
-H "Expect:" \
-F "image_url=https://example.com/image.png"
# Check job status
curl -sS -X GET "https://claythis.com/api/3d/generate/<task_id>/status" \
-H "X-API-Key: <your_api_key>"The generation job transitions through these states:
The API supports 127 Quaternius animations. You can select specific animations by providing a JSON array of motion names via the motions parameter.
motions is not provided → All 127 animations will be processedmotions is a JSON array → Only specified animations will be processed["Idle_Loop_Rig", "Walk_Loop_Rig", "Jog_Fwd_Loop_Rig"]downloadUrl is valid for 1 hour after generationprogress field represents completion percentage (0-100)motions parameter is omitted, all 127 Quaternius animations will be included["Idle_Loop_Rig"])400 Bad RequestMissing or invalid parameters401 UnauthorizedInvalid or missing API key500 Internal Server ErrorUnexpected processing errorOur dedicated technical support team is here to ensure you have a seamless experience. If you encounter any challenges with API authentication, rate limits, or specific configurations, please reach out. Our experts are available to provide in-depth troubleshooting and personalized guidance for your unique development workflow. Your success with our platform is our top priority. Contact us via our contact page or Discord for comprehensive technical assistance.