Restore a persona version
Makes an earlier photo from versions the current one again, with the traits it was made from. Free and instant; new videos use the restored photo and videos already made are not touched. CARD_LOCKED means a photo is generating: wait for it to finish.
Authorization
apiKey In: header
Path Parameters
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/personas/string/versions/string/restore"{ "id": "string", "name": "string", "status": "draft", "chips": { "vibe": "natural", "gender": "female", "age": "18_24", "origin": "latin", "skin": "very_light", "eyes": "brown", "hair_style": "buzz", "hair_color": "black", "facial_hair": "none", "face": "none", "body": "slim", "outfit": "basic", "accessory": "none", "mark": "none" }, "uses_face_photos": true, "preset_id": "string", "image_status": "generating", "error_code": "MEDIA_REJECTED", "image_url": "string", "eta": { "started_at": "string", "expected_seconds": 0 }, "versions": [ { "id": "string", "current": true, "image_url": "string", "face_url": "string", "feedback": "up", "feedback_reason": "string", "created_at": "string" } ]}Regenerate or edit the persona photo POST
Generates the photo again, for drafts and saved personas alike. Send new `chips` to change traits, nothing to try again with the same ones, or a one-line `note` (for example `make the jacket red`) to edit the current photo keeping the same person. When it finishes, the new photo becomes a new version and the current one; the traits change only then, so a failed generation leaves the persona as it was. Earlier versions stay in `versions` and videos already made keep their photo. Charged like a new photo; a `note` is priced as `photo_with_references_credits`. `CARD_LOCKED` means a photo is already generating, or a `note` was sent before the first photo exists.
Rate a persona photo POST
Records whether a photo from `versions` was liked. Send `down` with a `reason`, or `null` to clear the rating. Free; it only teaches us what to improve.