# Memokind Agent Guide Memokind turns a few photos and personal words into a short personalized AI film. ## Core rules - **API/MCP previews:** 12 credits for stills, 20 for video, or 8 more if stills were paid for. Website previews stay free. - **Full film pricing:** 30s = 100 credits, 60s = 200 credits, 90s = 300 credits, 120s = 400 credits (100 credits per 30 seconds). - **Credit expiry:** Purchased credit packs expire **12 calendar months** after payment (UTC). - **Pro (pretend billing):** $23/month for 200 credits, optional capped $0.12/credit overage. Only the signed-in account owner can confirm a $23/200-credit top-up; unattached accounts keep one-time checkout links. - **Consent & safety:** Before uploading photos or creating a project, you must get explicit confirmation from the user that: You confirm you are at least 18, have all rights and permissions to submit these photos and text and use the name, likeness, and voice of every depicted person in an AI-generated personal non-commercial video, and—if any child is depicted—that you are their parent or legal guardian. - **AI notice:** Before creating a full film, the user must accept: AI may alter faces, voices, words, and visuals. Review your film before sharing, disclose AI generation where required by law, and use it only for personal, non-commercial purposes. ## Recommended workflow 1. Call `list_templates` or `get_template` to inspect required fields and photo limits. 2. Confirm photo & likeness consent with the user (including parent/guardian confirmation if any child is depicted). 3. Call `upload_photo` for each JPEG, PNG or WebP photo (up to 10 MB each; HTTPS URL or base64). Put returned IDs in `uploadIds`, in order, for the template's required `photos` field. 4. Call `create_project` to prepare the project without generating previews. 5. If `project.status === 'questions'`, ask the user and call `answer_questions`. 6. Use `quote_generation`, show the quote, and only call `generate_preview` with `expectedCredits` after approval. Poll `get_project` for the artifact. 7. Quote the full film. The quote applies prior preview spend on the same project. On approval call `create_full_film` with `expectedCredits` and `acceptAiNotice: true`. 8. If credits are insufficient, share `checkoutUrl` or use `quote_pro_top_up` and share its `confirmUrl`. An enabled personal key with a separate purchase cap is required. Recheck funds and quote before retrying. 9. Poll `get_project` until `status === 'ready'`, then share `project.shareUrl` and `project.downloadUrl`. Documentation: https://memokind.com/mcp Guides: https://memokind.com/mcp/guides Machine-readable summary: https://memokind.com/llms.txt --- ## Authentication Memokind supports two Bearer authentication flows: 1. **OAuth 2.1 with PKCE (S256) + Dynamic Client Registration (recommended for MCP clients):** - Protected Resource Metadata: `GET https://memokind.com/.well-known/oauth-protected-resource` - Authorization Server Metadata: `GET https://memokind.com/.well-known/oauth-authorization-server` - Dynamic Client Registration: `POST https://memokind.com/api/oauth/register` - Authorization Endpoint: `GET https://memokind.com/oauth/authorize` - Token Endpoint: `POST https://memokind.com/api/oauth/token` (`authorization_code`, `refresh_token`) - Revocation Endpoint: `POST https://memokind.com/api/oauth/revoke` 2. **Personal API Keys:** - Users can create and revoke personal Bearer keys (`mk_key_...`) at `https://memokind.com/my/connections`. ## Endpoints - MCP Server (Streamable HTTP, JSON-RPC 2.0): `POST https://memokind.com/api/mcp` (or `POST https://memokind.com/api/mcp`) - Public REST API base: `https://memokind.com/api/v1` ### File fields and paid generation - Starting a paid preview or film requires `films:create`. Quotes only show the account credit balance with `credits:read`. - All current templates use a required `photos` field. Read its count limit before uploading. Upload each JPEG, PNG or WebP (up to 10 MiB) through `POST /api/v1/uploads` (multipart, HTTPS URL or base64) or MCP `upload_photo` (HTTPS URL or base64). Include consent and put the resulting IDs in order in the top-level `uploadIds` array when creating the project. - Quote with `GET /api/v1/projects/{id}/preview?stage=images|preview` or `GET /api/v1/projects/{id}/film?lengthS=60`. After approval, POST to the same endpoint with `expectedCredits` from the quote, plus `stage` for previews or `lengthS` and `acceptAiNotice: true` for a film. Omit `maxOverageMinor` unless the user separately approves a maximum in USD cents. - Opted-in personal keys can quote a Pro top-up with `POST /api/v1/credits/top-up` and an `Idempotency-Key` header (8–128 characters). The account owner confirms at `confirmUrl`; poll `GET /api/v1/credits/top-up?id={id}`. Pretend billing never charges a card. ## Per-Account Rate Limits - API requests: 60 / minute - Photo uploads: 30 / day - Projects created: 5 / day - Website previews: 2 / day (0 credits each) - Full film starts: 10 / day - Checkout links: 20 / day ## Consent & Legal Requirements - **Photo & project consent:** You confirm you are at least 18, have all rights and permissions to submit these photos and text and use the name, likeness, and voice of every depicted person in an AI-generated personal non-commercial video, and—if any child is depicted—that you are their parent or legal guardian. - **AI notice (required before creating a full film):** AI may alter faces, voices, words, and visuals. Review your film before sharing, disclose AI generation where required by law, and use it only for personal, non-commercial purposes. --- ## MCP Tools ### `list_templates` - Scope: `templates:read` - Description: List templates, required files, supported lengths and prices. API/MCP image previews cost 12 credits; video previews cost 20 in total. On the website previews are still free. - Input schema: ```json { "type": "object", "properties": { "country": { "type": "string", "description": "Market country code (default: 'us')." }, "lang": { "type": "string", "description": "Language code (default: market language, e.g. 'en')." } } } ``` ### `get_template` - Scope: `templates:read` - Description: Get full field definitions, options, photo limits, consent requirements, and credit pricing for one template slug. - Input schema: ```json { "type": "object", "properties": { "slug": { "type": "string", "description": "Template slug (e.g. 'birthday', 'love-story', 'for-mom-dad')." }, "country": { "type": "string", "description": "Market country code (default: 'us')." }, "lang": { "type": "string", "description": "Language code (default: 'en')." } }, "required": [ "slug" ] } ``` ### `get_credits` - Scope: `credits:read` - Description: Check the signed-in user's spendable Memokind credit balance, credit lot expiry dates (12 months from payment), and available packs. - Input schema: ```json { "type": "object", "properties": { "country": { "type": "string", "description": "Market country code (default: 'us')." } } } ``` ### `upload_photo` - Scope: `projects:write` - Description: Upload a JPEG, PNG, or WEBP photo (<= 10 MB) via an HTTPS URL or base64 data to use in a Memokind video. Enforces photo and child-guardian consent rules. Returns an uploadId. - Input schema: ```json { "type": "object", "properties": { "url": { "type": "string", "description": "Public https:// URL of the photo to fetch." }, "base64": { "type": "string", "description": "Base64-encoded image bytes (or data URI) if not passing url." }, "filename": { "type": "string", "description": "Optional original filename." }, "consent": { "type": "object", "description": "You confirm you are at least 18, have all rights and permissions to submit these photos and text and use the name, likeness, and voice of every depicted person in an AI-generated personal non-commercial video, and—if any child is depicted—that you are their parent or legal guardian.", "properties": { "confirmed": { "type": "boolean", "description": "Must be true: confirms user is 18+, has rights/permissions for every depicted person's name/likeness/voice, and personal non-commercial use." }, "includesChildren": { "type": "boolean", "description": "Set true if any child is depicted in the uploaded photos." }, "guardianConfirmed": { "type": "boolean", "description": "Required (must be true) whenever includesChildren is true: confirms the user is the child's parent or legal guardian." } }, "required": [ "confirmed" ] } }, "required": [ "consent" ] } ``` ### `create_project` - Scope: `projects:write` - Description: Create a Memokind project without starting paid generation. Upload each required photo with upload_photo and put its ID in uploadIds, in order. Requires explicit consent. - Input schema: ```json { "type": "object", "properties": { "template": { "type": "string", "description": "Template slug from list_templates." }, "country": { "type": "string", "description": "Country code (default: 'us')." }, "lang": { "type": "string", "description": "Language code (default: 'en')." }, "fields": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Template field key/value pairs." }, "uploadIds": { "type": "array", "items": { "type": "string" }, "description": "Array of uploadIds returned by upload_photo." }, "lengthS": { "type": "number", "enum": [ 30, 60, 90, 120 ], "description": "Desired film length in seconds (30, 60, 90, or 120)." }, "captions": { "type": "boolean", "description": "Include burned-in captions (default: true)." }, "consent": { "type": "object", "description": "You confirm you are at least 18, have all rights and permissions to submit these photos and text and use the name, likeness, and voice of every depicted person in an AI-generated personal non-commercial video, and—if any child is depicted—that you are their parent or legal guardian.", "properties": { "confirmed": { "type": "boolean", "description": "Must be true: confirms user is 18+, has rights/permissions for every depicted person's name/likeness/voice, and personal non-commercial use." }, "includesChildren": { "type": "boolean", "description": "Set true if any child is depicted in the uploaded photos." }, "guardianConfirmed": { "type": "boolean", "description": "Required (must be true) whenever includesChildren is true: confirms the user is the child's parent or legal guardian." } }, "required": [ "confirmed" ] } }, "required": [ "template", "fields", "consent" ] } ``` ### `list_projects` - Scope: `projects:read` - Description: List the signed-in user's Memokind video projects, statuses, preview links, and finished film URLs. - Input schema: ```json { "type": "object", "properties": { "limit": { "type": "number", "description": "Max projects to return (1-100, default 25)." } } } ``` ### `get_project` - Scope: `projects:read` - Description: Fetch the current status, progress, follow-up questions, preview URLs and completed film links. - Input schema: ```json { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project ID (e.g. 'p_...')." } }, "required": [ "projectId" ] } ``` ### `answer_questions` - Scope: `projects:write` - Description: Submit answers to project questions. Does not start paid generation. - Input schema: ```json { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project ID." }, "answers": { "type": "object", "additionalProperties": { "type": "string" }, "description": "Map of question key to answer text." } }, "required": [ "projectId", "answers" ] } ``` ### `quote_generation` - Scope: `projects:read` - Description: Quote image previews, video previews, or a full film. Show the remaining credit cost and any potential overage to the user. Does not spend. - Input schema: ```json { "type": "object", "properties": { "projectId": { "type": "string" }, "stage": { "enum": [ "images", "preview", "full" ] }, "lengthS": { "type": "integer" } }, "required": [ "projectId", "stage" ] } ``` ### `generate_preview` - Scope: `films:create` - Description: After the user approves the quote, generate still images (12 credits) or watermarked video (20 total; 8 more after images). Existing work is not charged again. - Input schema: ```json { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project ID." }, "stage": { "enum": [ "images", "preview" ] }, "expectedCredits": { "type": "integer", "minimum": 0, "description": "Credit amount shown to and approved by the user." }, "maxOverageMinor": { "type": "integer", "minimum": 0, "description": "Maximum separately approved dollar overage in cents; omit to block overage." } }, "required": [ "projectId", "stage", "expectedCredits" ] } ``` ### `create_full_film` - Scope: `films:create` - Description: After user approval, render the film. 100 credits per 30 seconds, less prior paid previews on that project. If underfunded, share the returned checkout URL or request a Pro top-up. - Input schema: ```json { "type": "object", "properties": { "projectId": { "type": "string", "description": "Project ID." }, "lengthS": { "type": "number", "enum": [ 30, 60, 90, 120 ], "description": "Film length in seconds: 30, 60, 90, or 120." }, "acceptAiNotice": { "type": "boolean", "description": "Must be true to acknowledge the AI notice: AI may alter faces, voices, words, and visuals. Review your film before sharing, disclose AI generation where required by law, and use it only for personal, non-commercial purposes." }, "expectedCredits": { "type": "integer", "minimum": 0 }, "maxOverageMinor": { "type": "integer", "minimum": 0 } }, "required": [ "projectId", "lengthS", "acceptAiNotice", "expectedCredits" ] } ``` ### `create_credit_checkout_link` - Scope: `credits:read` - Description: Generate a payment checkout link for the user to buy a Memokind credit pack (valid 12 months). Agents cannot pay; share the returned checkoutUrl with the user. - Input schema: ```json { "type": "object", "properties": { "credits": { "type": "number", "description": "Credit pack size (e.g. 100, 200, 500, 1000). Optional if lengthS is provided." }, "projectId": { "type": "string", "description": "Optional project ID to return to after payment." }, "lengthS": { "type": "number", "enum": [ 30, 60, 90, 120 ], "description": "Optional film length to pick the smallest covering pack." }, "country": { "type": "string", "description": "Country code (default: 'us')." } } } ``` ### `quote_pro_top_up` - Scope: `credits:purchase` - Description: Quote 200 credits for $23 via the Pro subscription card. Share confirmUrl; only the signed-in account owner can confirm. Current checkout is pretend. - Input schema: ```json { "type": "object", "properties": { "idempotencyKey": { "type": "string", "minLength": 8, "maxLength": 128 } }, "required": [ "idempotencyKey" ] } ``` ### `get_pro_top_up` - Scope: `credits:read` - Description: Check whether the user confirmed the quoted top-up. - Input schema: ```json { "type": "object", "properties": { "id": { "type": "string" } }, "required": [ "id" ] } ``` --- ## Live Templates Catalog ### `baby-news` — Baby news A small announcement with a whole new world inside - Style: Tender storybook-realism announcement, cream, sage and apricot palette, soft morning light, tiny handmade details. Show only the adult parents from reference photos; no invented baby face, pregnancy body change, medical imagery or gender-colour stereotypes. - Default length: 60s - Fields: - `names` (text, required, max 80): Parents' names - `photos` (photos, required, max 5): Photos of you both (1–5, both faces visible) - `announcement` (select, required): What are you announcing? [expecting | boy | girl] - `dueDate` (text, required, max 80): Due month - `message` (longtext, optional, max 600): Message to family (optional) ### `birthday` — Birthday video A short film starring the birthday person - Style: Cinematic, warm golden light, shallow depth of field, joyful, photorealistic - Default length: 60s - Fields: - `name` (text, required, max 40): Who is it for? - `age` (number, required, max 120): Turning - `photos` (photos, required, max 5): Photos of them (1–5, face clearly visible) - `greeting` (longtext, required, max 600): What do you want to say? - `from` (text, optional, max 40): From (optional) ### `for-mom-dad` — For Mom / For Dad A little film for the love that raised you - Style: Intimate family documentary, warm kitchen-window light, tactile linen and wood, natural skin texture, affectionate candid portraits, no stereotypes about parental roles. - Default length: 60s - Fields: - `name` (text, required, max 60): Their name or what you call them - `photos` (photos, required, max 5): Photos (1–5, face clearly visible) - `recipient` (select, required): Who are you celebrating? [mom | dad | grandma | grandpa] - `memory` (longtext, required, max 600): One thing you thank them for, or a memory - `from` (text, optional, max 80): From (optional) ### `graduation` — Graduation For the work behind the moment, and the road ahead - Style: Bright coming-of-age documentary, crisp morning light, cobalt and gold accents, grounded educational achievement. No assumed university campus, academic gown or ceremony unless supported by the qualification: {qualification}. - Default length: 60s - Fields: - `name` (text, required, max 60): Graduate's name - `photos` (photos, required, max 5): Photos (1–5, face clearly visible) - `qualification` (text, required, max 200): What did they finish? - `message` (longtext, required, max 600): What comes next, or how proud you are - `from` (text, optional, max 80): From (optional) ### `holiday-greeting` — Holiday greeting Send a little light from your home to theirs - Style: Luminous seasonal family postcard, deep blue evenings and warm window light, inclusive home celebration. Depict only the chosen {holidayLabel} traditions; never mix Christmas trees, Hanukkah menorahs and New Year party props. - Default length: 60s - Fields: - `names` (text, required, max 100): Who is in the video? - `photos` (photos, required, max 5): Photos of everyone in the greeting (1–5) - `holiday` (select, required): Which holiday? [christmas | hanukkah | new-year] - `greeting` (longtext, required, max 600): Your greeting - `from` (text, optional, max 80): From (optional) ### `in-loving-memory` — In loving memory A quiet place for the memories you carry - Style: Restrained remembrance film, soft overcast light, muted greens and warm neutrals, quiet photographic dignity, preserved age and features. Slow motion only, no jokes, confetti, dramatic reveals, supernatural imagery, afterlife claims or fabricated final moments. Portraits are imagined tributes, not claimed historical footage. - Default length: 60s - Fields: - `name` (text, required, max 80): Their name - `dates` (text, required, max 40): Years of life - `photos` (photos, required, max 5): Photos (1–5, old prints welcome) - `message` (longtext, required, max 600): Tell us about them, in your family's words - `from` (text, optional, max 80): From (optional) ### `letter-from-santa` — Letter from Santa A gentle bit of make-believe, just for them - Style: Original illustrated-realism winter storybook. Invented Santa: a kindly older storyteller with silver curls, a plum-red wool coat, a handmade copper star brooch and a moss-green workshop apron; keep this design consistent. No actor likeness, film character, franchise costume or logos. Gentle age-appropriate make-believe, no surveillance, naughty lists, threats or guaranteed gifts. Child is {age}; preserve the referenced child's age and identity only in scenes featuring the child. - Default length: 60s - Fields: - `name` (text, required, max 40): Child's first name - `age` (number, required, max 17): Age - `photos` (photos, required, max 3): Photos of your child (1–3) - `deed` (text, required, max 240): One kind thing they did this year - `gift` (text, optional, max 160): A gift they hope for (optional, no promises) ### `love-story` — Love story / Anniversary Your everyday moments, made into a love story - Style: Romantic independent cinema, soft 35mm grain, rose and amber evening palette, candid mutual affection, both adults from the reference photos remain distinct and equally present. - Default length: 60s - Fields: - `names` (text, required, max 80): Your names - `photos` (photos, required, max 5): Photos of you both (1–5, both faces visible) - `years` (number, required, max 120): Years together - `memory` (text, required, max 240): Where you met, or a favourite memory - `message` (longtext, required, max 600): Your message ### `pet-star` — Pet star A big-screen moment for your favourite little character - Style: Playful natural-history close-ups, low camera at the animal's eye level, jewel-coloured cushions and warm daylight. Subject is a {petKindLabel}, not a human. For Other pet, infer actual species from reference photos; preserve species, anatomy, markings and scale. No clothing, human hands, forced tricks, unsafe foods or anthropomorphic body. - Default length: 60s - Fields: - `name` (text, required, max 60): Pet's name - `photos` (photos, required, max 5): Photos of your pet (1–5, clear face) - `petKind` (select, required): What kind of pet? [dog | cat | other] - `habit` (text, required, max 240): Their funniest habit - `from` (text, optional, max 80): From (optional) ### `retirement-farewell` — Retirement / Farewell Thank them for the difference they made - Style: Warm professional portrait documentary, copper and teal accents, soft late-afternoon light, understated gratitude. Occasion: {occasionLabel}. Do not assume age, office job, retirement plans or a completed career when this is a farewell. - Default length: 60s - Fields: - `name` (text, required, max 60): Their name - `photos` (photos, required, max 5): Photos (1–5, face clearly visible) - `occasion` (select, required): Retiring or moving on? [retiring | leaving] - `memory` (longtext, required, max 600): What will they be remembered for? - `from` (text, optional, max 80): From (optional) ### `wedding` — Wedding A keepsake for two, or an invitation to what comes next - Style: Elegant editorial wedding film, ivory linen, botanical greens, soft daylight and fine film grain, natural clothing and no assumed religious ritual. Preserve both distinct reference identities. Context: {purposeLabel}; do not claim a ceremony has already happened. - Default length: 60s - Fields: - `names` (text, required, max 80): The couple's names - `photos` (photos, required, max 5): Photos of you both (1–5, both faces visible) - `purpose` (select, required): What is it for? [gift | save-the-date] - `datePlace` (text, required, max 160): Date and place (or 'To be announced') - `message` (longtext, optional, max 600): Your message (optional) ### `will-you-marry-me` — Will you marry me? Your story, leading to one very special question - Style: Private cinematic love letter, candlelit amber and midnight blue, understated romance, both adults from reference photos remain distinct. No rings, kneeling, wedding props or proposal clues before the final text card. - Default length: 60s - Fields: - `name` (text, required, max 60): Their name - `photos` (photos, required, max 5): Photos of you both (1–5, both faces visible) - `memory` (text, required, max 240): How you met, in one line - `message` (longtext, required, max 600): What do you want to say before the question? - `proposer` (text, required, max 60): Your name