Save a generation's styling as a reusable template
create_template_setSaves a reusable style preset on your account and returns {id}; pass that id as create_generation's templateSetId to put a NEW garment on the same model/venue/pose. Two ways: sourceMediaId (one of your completed generations; its fashion_model, venue, pose, shotType, stylePreset and ratio are captured, and any pose/shotType/stylePreset/ratio you also pass override them), or toolId + images.fashion_model (+ optional venue/pose/...) to define a preset by hand. Always creates a new preset with a new id, never overwrites one, even with the same label; remove old ones with delete_template_set. Free (no diamonds). 400 for a missing label, unsupported toolId, unfinished source or no fashion_model; 404 if sourceMediaId is not found or not yours. Needs a valid Fashio API key (Bearer); every call counts toward the key's daily request cap (429 when reached, 401 for a missing or revoked key).
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": {
"label": "<label>"
},
"name": "create_template_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pose | No | Pose id from list_poses. With sourceMediaId, overrides the captured pose. | |
| label | Yes | Name for the preset (required, max 80 characters; longer is cut), e.g. 'Studio white, model A, 3/4 pose'. | |
| ratio | No | Aspect ratio: 1:1 | 9:16 | 16:9 | 4:3 | 3:4 | 4:5 | auto. With sourceMediaId, overrides the captured value. | |
| images | No | Required if sourceMediaId is omitted: fashion_model (required; catalog id from list_fashion_models or an image URL) and optional venue (id from list_venues or an image URL). Ignored when sourceMediaId is given (taken from that generation). | |
| toolId | No | Required if sourceMediaId is omitted. One of: virtual_model, outfit_photo, pro_studio, jewelry_on_model, clothing_ecom_pack, jewelry_ecom_pack. | |
| shotType | No | pro_studio shot type. With sourceMediaId, overrides the captured value. | |
| stylePreset | No | pro_studio style preset. With sourceMediaId, overrides the captured value. | |
| sourceMediaId | No | id of one of your completed generations (from create_generation / get_generation) to capture styling from. 400 if it is still processing. Omit to define the preset with toolId + images. |