Generate a 3D model
generate_3dStart a textured GLB 3D model from a 10–600 character description (input_mode prompt) or from 1–4 PNG/JPG/WebP photos of one object (input_mode photo, front view first). Send the photos in exactly one way: images (inline base64), image_urls (public https links to the image files) or upload_id (from create_3d_upload, when the photos are attached in chat or are local files you cannot send inline). Costs one charge of the chosen quality: basic 25, medium 35 or high 50 shared Cormak credits (default basic); quote_3d returns the exact maximum. A failed build is refunded automatically. Optional glasses_spec tunes a photo build for eyewear; optional frame_material makes a regular photo build translucent or clear. Returns an operation; poll get_3d_status with the same request_id. Never retry with a new request_id automatically. If the owner allowed advance spending for this connection in Cormak and you send expected_max_credits from quote_3d, the build starts at once within those limits. Otherwise the owner must approve the exact request at the returned approval_url in Cormak; then repeat the same request_id and parameters.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"request_id": "<request_id>",
"confirm_spend": "<confirm_spend>",
"input_mode": "<input_mode>"
},
"name": "generate_3d"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | No | Photo mode: 1–4 inline photos of the same object. Put the front view first; with glasses_spec the order must match views. | |
| prompt | No | ||
| quality | No | basic (default): 25 credits, 2K textures. medium: 35 credits, 4K PBR textures. high: 50 credits, 8K PBR textures and finer geometry. | |
| upload_id | No | Photo mode instead of images: the upload_id from create_3d_upload once the user has added the photos. Slot order is photo order. | |
| image_urls | No | Photo mode instead of images: 1–4 public https:// links straight to PNG/JPEG/WebP files (up to 2.25 MB each), front view first. Cormak downloads them; pages that need a sign-in will not work. | |
| input_mode | Yes | ||
| request_id | Yes | A UUID for this exact request. Reuse it on retries; changing it requests another paid generation. | |
| glasses_spec | No | Eyewear photo build: 2–4 photos matching views, no prompt. Uses a lighter mesh with PBR materials and keeps the specification and front photo with the model. | |
| confirm_spend | Yes | Set true only after the user confirms spending their Cormak credits. | |
| frame_material | No | Photo build without glasses_spec: make the whole model translucent (acetate-like) or clear, keeping the photo tint. | |
| expected_max_credits | No | maximum from quote_3d. Required to start within the owner's advance spending permission; a lower value than the current price is rejected. |