Generate influencer photos
generate_photosUse this to make new photos of one of the user's saved influencers; their face and look stay the same in every photo. Describe the scene, outfit, pose, setting, lighting and camera. Don't describe the face, body or hair: the influencer's look is added automatically. Mention hair only when the user asks for a change ("in a ponytail"), since restyling it makes them less recognisable. To show a real product, outfit, place or pose, add it as a reference image (up to 2, one per role): "hold" for something in their hand, "wear" for clothing (with garment_category), "accessory" for jewellery, bags or glasses, "background" for the setting, "pose" to copy a pose, "style" for the look and lighting, "custom" with a note. The prompt can then leave out what the reference shows. Costs 1 credit per photo; say the cost before calling. Returns at once with a generation_id; then call get_generation to get the photos (usually 20 to 40 seconds, about a minute for an AI clone). Calling it again starts and charges a new batch, so don't repeat a call to check on one. Failed photos are refunded automatically. Example: {influencer_id, prompt: "holding the serum bottle up to the camera in a bright bathroom, smiling", count: 2, aspect_ratio: "9:16", reference_images: [{image: "upl_…", role: "hold"}]}.
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": {
"influencer_id": "<influencer_id>",
"prompt": "<prompt>"
},
"name": "generate_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many photos (1 credit each). | |
| prompt | Yes | The scene: setting, outfit, pose, lighting, camera. Not the face. Can be empty with reference images. | |
| aspect_ratio | No | 9:16 for stories and reels, 3:4 for feed posts, 1:1 square. | 1:1 |
| influencer_id | Yes | From list_influencers. | |
| reference_images | No | Pictures of a real product, outfit, place, pose or style to use in the photos. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Present only on a refusal: the summary says why, and what the user can do. | |
| summary | Yes | ||
| view_url | No | ||
| photo_ids | No | ||
| error_code | No | Present only on a refusal. | |
| credits_left | No | ||
| generation_id | No | ||
| influencer_id | No | ||
| credits_charged | No | ||
| influencer_name | No | ||
| credits_refunded | No | Photos that couldn't start, refunded at once. | |
| expected_seconds | No |