# Create a client brand (agency keys) Source: https://cherryshot-prod.mintlify.app/api-reference/create-a-client-brand-agency-keys /openapi.yaml post /v1/brands Available on agency (white-label) keys only. # Create a product-photography shoot Source: https://cherryshot-prod.mintlify.app/api-reference/create-a-product-photography-shoot /openapi.yaml post /v1/shoots # Create a video ad from image(s) Source: https://cherryshot-prod.mintlify.app/api-reference/create-a-video-ad-from-images /openapi.yaml post /v1/videos # Get the caller's credit balance Source: https://cherryshot-prod.mintlify.app/api-reference/get-the-callers-credit-balance /openapi.yaml get /v1/credits Personal keys return the account balance. Agency (white-label) keys return the shared agency credit pool, with `balance: pool` and the agency name. # List available models (presets + your own) Source: https://cherryshot-prod.mintlify.app/api-reference/list-available-models-presets-+-your-own /openapi.yaml get /v1/models # List client brands (agency keys) Source: https://cherryshot-prod.mintlify.app/api-reference/list-client-brands-agency-keys /openapi.yaml get /v1/brands Available on agency (white-label) keys only. # Liveness and version Source: https://cherryshot-prod.mintlify.app/api-reference/liveness-and-version /openapi.yaml get /v1/health # Poll a shoot Source: https://cherryshot-prod.mintlify.app/api-reference/poll-a-shoot /openapi.yaml get /v1/shoots/{id} # Poll a video Source: https://cherryshot-prod.mintlify.app/api-reference/poll-a-video /openapi.yaml get /v1/videos/{id} # Usage report Source: https://cherryshot-prod.mintlify.app/api-reference/usage-report /openapi.yaml get /v1/usage Agency (white-label) keys get usage broken down per client brand — images, videos, and credits — for invoicing. Personal keys get their own totals. Defaults to the current calendar month. # Authentication Source: https://cherryshot-prod.mintlify.app/authentication Create and use Cherry Shot API keys. Every request (except `/v1/health`) is authenticated with an API key. ## Get a key In the Cherry Shot dashboard, go to **Profile → API** and create a key. The full key (`cs_` followed by 64 hex characters) is shown **once, at creation** — store it in a secret manager. Only a hash is kept on our side, so we can't show it to you again. Treat your key like a password. It can spend your account's credits. If a key leaks, revoke it from the dashboard and create a new one. ## Send it with each request Pass the key in either header: ```bash Authorization theme={null} curl https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/credits \ -H "Authorization: Bearer cs_your_key" ``` ```bash x-api-key theme={null} curl https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/credits \ -H "x-api-key: cs_your_key" ``` ## Agency (white-label) keys If your account belongs to an agency workspace, keys you create are **agency keys** automatically: they bill the agency's shared credit pool and can be pinned to one of your client brands at creation (Profile → API → "Client brand"), which attributes everything generated with that key to that client in your [usage reports](/guides/agencies). Agency keys stop working if the member who created them leaves the agency. ## Limits * **Rate limit:** 60 requests per minute per key. Exceeding it returns `429 rate_limited`. * **Keys per account:** up to 10 active keys. Revoke unused ones to create more. ## Errors | Status | `code` | Meaning | | ------ | -------------- | ---------------------------------- | | 401 | `unauthorized` | Missing, invalid, or revoked key. | | 429 | `rate_limited` | Over 60 requests/min for this key. | See [Errors](/guides/errors) for the full list and the error envelope. # Agencies & white-label Source: https://cherryshot-prod.mintlify.app/guides/agencies Run Cherry Shot under your agency's brand: shared credit pool, per-client billing, branded delivery. Cherry Shot's white-label program gives your agency its own workspace on top of the same engine: your team generates in the app or over the API, your **clients only ever see your brand**, and usage is tracked **per client** so you know exactly what to invoice. ## How an agency workspace is structured | Concept | What it is | | -------------------- | -------------------------------------------------------------------------------------------------------------------- | | **Agency** | Your organization. Has a shared **credit pool** every member bills against — no per-seat balances to manage. | | **Client brands** | Your e-commerce clients (e.g. "Acme Apparel"). Every shoot and video is attributed to one, for billing reports. | | **Members** | Your team's Cherry Shot accounts, linked to the agency. In the app they pick which client they're working for. | | **Review galleries** | Branded, read-only share links for client approval — your logo and colors, no Cherry Shot branding, no client login. | ## Billing: one pool, per-client attribution * Everything your team generates — app or API, images or video — draws the **agency pool**. Failed or partial generations auto-refund the pool, same as regular accounts. * `GET /v1/credits` on an agency key returns the pool balance (`"balance": "pool"`). * `GET /v1/usage` breaks the month down per client brand: ```bash theme={null} curl "https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/usage" \ -H "Authorization: Bearer cs_your_agency_key" ``` ```json theme={null} { "object": "usage_report", "period": { "from": "2026-07-01T00:00:00Z", "to": "now" }, "data": [ { "brand_name": "Acme Apparel", "images": 84, "image_credits": 96, "videos": 3, "video_credits": 45 }, { "brand_name": "Nordic Home", "images": 40, "image_credits": 40, "videos": 0, "video_credits": 0 } ], "totals": { "images": 124, "videos": 3, "credits": 181 } } ``` Top-ups are invoiced monthly at your plan's wholesale rate — contact your account manager to adjust the pool. ## Attributing work to a client **In the app:** your Profile has an agency panel with a **"Working for"** switcher — every generation after switching is tagged to that client. **Over the API:** create one key per client brand (`Profile → API`, pick the brand — or `POST /v1/brands` + key creation). Everything generated with that key is attributed to that brand automatically. ## Branded client galleries From the agency panel, select any generated shots and create a **gallery link** (`/g/`). Your client sees your logo, your accent color, the shots, and download buttons — nothing else. Links are revocable at any time. Set your logo and accent color once in the agency panel (owners only) — every gallery you share uses them immediately. ## API access for your dev team Agency keys unlock three extra endpoints on top of the [regular API](/quickstart): * `GET /v1/usage` — per-brand usage for invoicing * `GET /v1/brands` / `POST /v1/brands` — manage client brands programmatically * `GET /v1/credits` — the shared pool balance Everything else — [shoots](/guides/shoots), [videos](/guides/videos), [MCP](/guides/mcp) — works identically, billed to the pool. ## Plans | | Partner | Agency Pro | Enterprise | | -------------------------------- | -------- | ---------- | ----------- | | Monthly | \$299 | \$799 | Custom | | Client brands | 3 | 10 | Unlimited | | Credits included | 1,000/mo | 3,000/mo | 10,000+/mo | | Extra credits | \$0.30 | \$0.25 | from \$0.20 | | Branded galleries | ✓ | ✓ | ✓ | | Per-brand keys & branded docs | — | ✓ | ✓ | | Fully branded app on your domain | — | — | ✓ | Want in? Email [simplifygenai@gmail.com](mailto:simplifygenai@gmail.com?subject=CherryShot%20Agency%20Partnership) with your agency name and the clients you'd start with. The first five agencies get founding-partner terms: **40% off the platform fee for six months** and a wholesale rate locked for a year, in exchange for a case study. # Errors Source: https://cherryshot-prod.mintlify.app/guides/errors The error envelope, status codes, and error codes. Errors return a consistent JSON envelope: ```json theme={null} { "error": { "code": "insufficient_credits", "message": "This shoot needs 4 credits." } } ``` Always branch on `error.code` (stable), not the human-readable `message` (may change). ## Status codes | Status | Meaning | | ------ | ------------------------------------------------- | | `200` | Success. | | `201` | Resource created (a shoot or video). | | `400` | Validation error — check `message`. | | `401` | Missing / invalid / revoked API key. | | `402` | Insufficient credits. | | `404` | Resource not found (or not yours). | | `429` | Rate limit exceeded (60 requests/min per key). | | `500` | Something went wrong on our side — safe to retry. | ## Error codes | `code` | When | | ---------------------- | ---------------------------------------------------- | | `unauthorized` | No key, or an invalid/revoked key. | | `rate_limited` | Over the per-key rate limit. | | `validation_error` | A field is missing or invalid. | | `insufficient_credits` | Not enough credits for the request. | | `not_found` | The id doesn't exist or isn't owned by your account. | | `internal_error` | Unexpected server error — retry with backoff. | For privacy and security, `500` responses return a generic message; the detail is logged server-side. If you hit a persistent `500`, share the request time and endpoint with support. # Use from Claude (MCP) Source: https://cherryshot-prod.mintlify.app/guides/mcp Add Cherry Shot as an MCP server and generate by chatting. Cherry Shot ships a remote [Model Context Protocol](https://modelcontextprotocol.io) server, so any MCP client — Claude Desktop, Claude Code, Cursor — can generate shoots and videos directly. It's a thin layer over this API and uses the same API key and credits. ## Server details `https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/mcp` Streamable HTTP `Authorization: Bearer cs_your_key` ## Add it to Claude Settings → **Connectors** → **Add custom connector**, then paste the URL above and add your API key as a bearer token. ```bash theme={null} claude mcp add --transport http cherry-shot \ https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/mcp \ --header "Authorization: Bearer cs_your_key" ``` ## Tools | Tool | What it does | | -------------- | ---------------------------------------------------- | | `get_credits` | Return your credit balance. | | `list_models` | List preset + your own models for with-model shoots. | | `create_shoot` | Start a product-photography shoot. | | `get_shoot` | Poll a shoot; returns image URLs when done. | | `create_video` | Start a video ad from image URLs. | | `get_video` | Poll a video; returns the MP4 URL when done. | ## Example > **You:** Generate an editorial 4-shot set for this product: [https://example.com/bottle.jpg](https://example.com/bottle.jpg) > > **Claude:** *(calls `create_shoot`, polls `get_shoot`, returns the image URLs)* > > **You:** Make a 10-second 720p ad from the first two. > > **Claude:** *(calls `create_video`, polls `get_video`, returns the MP4)* The MCP server enforces the same authentication, rate limits, and credit charges as the REST API — it's just a friendlier front door. # Product shoots Source: https://cherryshot-prod.mintlify.app/guides/shoots Generate studio-quality product photography — with or without an AI model. A **shoot** turns one or more product images into a set of professional photos in the style you choose. Create it, then poll until it's `completed`. ## Create a shoot `POST /v1/shoots` 1–8 public http(s) URLs of your product image(s). The first is treated as the hero. One of: `classic`, `minimal`, `luxury`, `loud_luxury`, `magazine`, `editorial`, `avant_garde`, `element`, `influencer`, `lifestyle`. `product_only` for the product alone, or `with_model` to place it on an AI model. Required when `mode` is `with_model`. A public image URL of the model (browse presets via [`GET /v1/models`](/api-reference)). `1`, `4`, or `6`. `6` is available only for `classic` and `minimal`; for other styles it is clamped to `4` and the response includes `shots_adjusted: true`. `standard` (1 credit/image), `pro` (2, 2K), or `4k` (4, 4K). e.g. `1:1`, `4:5`, `9:16`, `16:9`. Optional background hint (supported for studio styles). Optional. Reserved for push delivery; poll in the meantime. Credits are **reserved when you create the shoot** (`credits_used` in the response), so a create call that returns `201` has already secured the credits. ## Poll a shoot `GET /v1/shoots/{id}` `status` moves through `pending` → `analyzing` → `generating` → `completed` (or `failed`). When `completed`, `images` holds the results: ```json theme={null} { "id": "b3f1c2a4-...", "object": "shoot", "status": "completed", "images": [ { "url": "https://.../shot-1.png", "thumbnail_url": "https://.../thumb-1.png", "status": "fulfilled" } ], "credits_used": 4, "created_at": "2026-07-01T10:00:00Z" } ``` Poll every 3–5 seconds. A full set typically completes in well under a minute. # Video ads Source: https://cherryshot-prod.mintlify.app/guides/videos Turn product images into short video ads. A **video** animates one or more images (for example, images from a completed shoot) into a short ad. Credits are charged up front and refunded automatically if generation fails. ## Create a video `POST /v1/videos` Public http(s) URLs of the source image(s). The maximum count depends on duration: 5s → 1, 10s → 3, 15s → 4. `5`, `10`, or `15` seconds. `480p`, `720p`, or `1080p`. `product_only` or `with_model`. `product_only` is billed 15% cheaper. One of `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`. Auto-selected from the images if omitted. Optional public URL of a logo to reveal in the ad. Include a background track. Optional creative direction for the ad. ```json Response theme={null} { "id": "7a2b...-...", "object": "video", "status": "pending", "credits_used": 40, "credits_remaining": 206 } ``` ## Pricing Cost = credits-per-second × duration × mode multiplier, rounded up. | Resolution | Credits / second | | ---------- | ---------------- | | 480p | 2 | | 720p | 4 | | 1080p | 9 | `product_only` applies a 0.85× multiplier. Example: a 10s 720p product-only video = `ceil(4 × 10 × 0.85)` = **34** credits. ## Poll a video `GET /v1/videos/{id}` When `status` is `completed`, `video_url` holds the MP4. Video generation typically takes several minutes, so poll on a longer interval than shoots. ```json theme={null} { "id": "7a2b...", "object": "video", "status": "completed", "video_url": "https://.../ad.mp4", "credits_used": 40, "created_at": "2026-07-01T10:05:00Z" } ``` # Cherry Shot API Source: https://cherryshot-prod.mintlify.app/index Generate studio-quality product photography and video ads programmatically — from your backend, a workflow, or directly from Claude. The Cherry Shot API turns a product photo into professional shots — with or without an AI model — and into short video ads. It's the same generation engine behind the Cherry Shot app, exposed as a simple REST API and an [MCP server](/guides/mcp) you can plug into Claude, Cursor, or any agent. Make your first shoot in a couple of minutes. Create an API key and send it with every request. Add Cherry Shot as an MCP server and generate by chatting. Every endpoint, parameter, and response. ## How it works Generation is **asynchronous**. You create a job and receive an `id`, then poll that job until its `status` is `completed`. `POST /v1/shoots` (or `/v1/videos`) with your inputs. You get back an `id` and the credits reserved. `GET /v1/shoots/{id}` every few seconds until `status` is `completed`. Read the returned image or video URLs. Feed shoot images straight into a video. ## Base URL ``` https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api ``` This is the current **staging** base URL. A stable production domain (e.g. `https://api.cherryshot.ai`) will replace it — the paths and payloads stay the same. ## Credits Every account has a credit balance shared with the app. Images cost **1** credit (standard), **2** (pro / 2K), or **4** (4K) each; videos scale with resolution and duration. Check your balance any time with `GET /v1/credits`. # Quickstart Source: https://cherryshot-prod.mintlify.app/quickstart Create your first shoot and download the results in a few minutes. ## 1. Get an API key In the Cherry Shot dashboard, open **Profile → API** and create a key. Copy it — the full key (`cs_...`) is shown **once**. See [Authentication](/authentication) for details. ## 2. Check your credits ```bash cURL theme={null} curl https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/credits \ -H "Authorization: Bearer cs_your_key" ``` ```python Python theme={null} import requests BASE = "https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api" headers = {"Authorization": "Bearer cs_your_key"} print(requests.get(f"{BASE}/v1/credits", headers=headers).json()) ``` ```javascript Node theme={null} const BASE = "https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api"; const headers = { Authorization: "Bearer cs_your_key" }; const res = await fetch(`${BASE}/v1/credits`, { headers }); console.log(await res.json()); ``` ```json Response theme={null} { "credits": 250 } ``` ## 3. Create a shoot Pass one or more public product image URLs and a style. This example asks for a 4-shot product-only set in the `editorial` style. ```bash cURL theme={null} curl -X POST https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/shoots \ -H "Authorization: Bearer cs_your_key" \ -H "Content-Type: application/json" \ -d '{ "product_image_urls": ["https://example.com/my-product.jpg"], "style": "editorial", "shots": 4 }' ``` ```python Python theme={null} payload = { "product_image_urls": ["https://example.com/my-product.jpg"], "style": "editorial", "shots": 4, } shoot = requests.post(f"{BASE}/v1/shoots", headers=headers, json=payload).json() print(shoot["id"]) ``` ```javascript Node theme={null} const payload = { product_image_urls: ["https://example.com/my-product.jpg"], style: "editorial", shots: 4, }; const shoot = await ( await fetch(`${BASE}/v1/shoots`, { method: "POST", headers: { ...headers, "Content-Type": "application/json" }, body: JSON.stringify(payload), }) ).json(); console.log(shoot.id); ``` ```json Response theme={null} { "id": "b3f1c2a4-...-...", "object": "shoot", "status": "pending", "shots": 4, "credits_used": 4, "credits_remaining": 246, "created_at": "2026-07-01T10:00:00Z" } ``` ## 4. Poll until it's done ```bash cURL theme={null} curl https://ybhqmgyprapjxomdxifs.supabase.co/functions/v1/api/v1/shoots/b3f1c2a4-...-... \ -H "Authorization: Bearer cs_your_key" ``` ```python Python theme={null} import time shoot_id = shoot["id"] while True: result = requests.get(f"{BASE}/v1/shoots/{shoot_id}", headers=headers).json() if result["status"] in ("completed", "failed"): break time.sleep(4) for img in result["images"]: print(img["url"]) ``` ```json Response (completed) theme={null} { "id": "b3f1c2a4-...-...", "object": "shoot", "status": "completed", "images": [ { "url": "https://.../shot-1.png", "thumbnail_url": "https://.../thumb-1.png", "status": "fulfilled" } ], "credits_used": 4, "created_at": "2026-07-01T10:00:00Z" } ``` ## 5. Turn it into a video (optional) Feed the shoot's image URLs into `POST /v1/videos`. See the [Videos guide](/guides/videos). Prefer chatting to code? Add the [MCP server](/guides/mcp) to Claude and say "generate an editorial shoot for this product," then "make a 10-second ad from it."