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). default (the standard setting, 256³), high (384³) and ultra (512³) accept text or an image and export stl/glb/obj/ply. super / superplus / superplus_1280 / superplus_1536 are high-resolution tiers (stl/glb/obj/fbx); their *_texture variants add colour textures and export glb or obj (obj arrives as a zip). High-resolution tiers work best from an image. prepare_3d_generation returns the exact credit cost.
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 | default | |
| 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 |