Price an AI 3D generation
prepare_3d_generationStep 1 of AI 3D generation on the user's connected PrintPal account. Validates the prompt or attached image, quality and format, and returns the exact credit cost, the account's available credits, normalised settings and a short-lived quote_token. Nothing is generated or charged. Show the user the cost and settings, then call generate_3d_model only if they agree. Text: pass prompt. Image-to-3D: pass the attached image as image (prompt is then an optional label). Qualities, cheapest first: super (768³, the default), superplus (1024³), superplus_1280, superplus_1536, superplus_2048 and superplus_2048_master (the most detailed and most expensive). Geometry tiers export stl/glb/obj/fbx; their *_texture variants add colour textures and export glb or obj (obj arrives as a zip). Every tier accepts a text prompt or an image; an image gives the most faithful result, and a text prompt adds about a minute to make a reference image first. The 2048 tiers return 5M-face files and take 10-20 minutes. prepare_3d_generation returns the exact credit cost.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "prepare_3d_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | An image the user attached in the conversation (PNG, JPEG or WebP). | |
| format | No | glb | |
| prompt | No | What to generate, e.g. "low-poly seated fox figurine". Required without an image. | |
| quality | No | super | |
| image_url | No | For clients without file attachments: an https URL of a PNG/JPEG/WebP image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | ||
| prompt | No | ||
| settings | Yes | ||
| next_step | Yes | ||
| quote_token | Yes | ||
| credits_cost | Yes | ||
| billing_policy | No | ||
| quote_expires_at | No | ||
| credits_available | Yes | ||
| sufficient_credits | Yes | ||
| estimated_time_seconds | No |