# crisp.photos > crisp.photos upscales photos 4x. The free upscaler runs in the browser at https://crisp.photos. Fast mode runs on our GPU servers, costs $0.10 per photo, and has an HTTP API that you can call from scripts and agents. There is also a free MCP server that makes before/after comparison GIFs. This file describes both. ## MCP server Free, no API key: `https://crisp.photos/api/mcp` (streamable HTTP). Setup: https://crisp.photos/mcp Tool `animate(url_before, url_after)`: two public https image URLs in, a looping before/after slider GIF out. Images are not stored. ## Getting an API token 1. Buy credits at https://crisp.photos/fast. One credit upscales one photo. Packs: $5 for 50 photos, $10 for 120 photos (paid through Stripe). 2. After paying, you receive an email with a login link like `https://crisp.photos/fast#`. Your API token is the part after the `#`. 3. Send it with every request as `Authorization: Bearer `. A token is valid for 7 days after it was issued. To get a new one, request a fresh login link (it goes to the email used for the purchase): ``` curl -X POST https://crisp.photos/api/forgot \ -H "Content-Type: application/json" \ -d '{"email": "you@example.com"}' ``` Buying more credits with the same email adds them to the same account. ## Upscaling a photo Base URL: `https://crisp.photos/api` The flow has four steps: create a job, upload the photo straight to storage, queue the job, and poll until it's done. ### 1. Create a job ``` curl -X POST https://crisp.photos/api/jobs \ -H "Authorization: Bearer $TOKEN" \ -H "Content-Type: application/json" \ -d '{"filename": "holiday.jpg"}' ``` `filename` is optional and only names the downloaded result (`holiday_4x.jpg`). The response: ```json { "job_id": "…", "url": "https://…s3…amazonaws.com/", "fields": { "key": "…", "policy": "…", "x-amz-signature": "…", … } } ``` No credit is used yet. ### 2. Upload the photo POST the file as `multipart/form-data` to `url`. Send every entry of `fields` as a form field, then add the file as the field named `file` (it must come last). The upload link expires 20 seconds after the job is created, so upload right away. ``` curl -X POST "$URL" \ -F "key=…" -F "policy=…" -F "x-amz-signature=…" … \ -F "file=@holiday.jpg" ``` S3 answers `204 No Content` on success. ### 3. Queue the job ``` curl -X POST https://crisp.photos/api/jobs/$JOB_ID/queue \ -H "Authorization: Bearer $TOKEN" ``` Returns `{"ok": true}`. This step uses one credit. ### 4. Poll for the result ``` curl https://crisp.photos/api/jobs -H "Authorization: Bearer $TOKEN" ``` ```json { "jobs": [ { "job_id": "…", "status": "done", "download_url": "https://…" }, { "job_id": "…", "status": "running" } ] } ``` - Lists your queued jobs from the last 24 hours. Poll every few seconds. - `status` is one of `queued`, `running`, `done`, `failed`. - `download_url` is only present when the status is `done`. It's valid for 60 minutes; call this endpoint again for a fresh one. - A `failed` job (e.g. the file isn't a readable image) gets its credit refunded automatically. So does a job that isn't finished after 15 minutes. ## Checking your account Use this to check that a token works and how many credits are left. ``` curl https://crisp.photos/api/account \ -H "Authorization: Bearer $TOKEN" ``` ```json { "email": "you@example.com", "balance": 47 } ``` `balance` is the number of credits left, i.e. how many more photos you can upscale. An invalid or expired token returns `401`. ## Input and output - Input: common image formats such as JPEG, PNG and WebP. At most 200 MB, 25 megapixels, and 16,383 px on the longest side. - Output: a JPEG at 4x the width and height of the input. ## Errors - `401`: missing, wrong, or expired token. - `402`: no credits left. - `404`: unknown job, or a job that isn't yours or was already queued. - `409`: the job was queued before its photo was uploaded. - `429`: too many requests. ## Links - [Fast mode and credits](https://crisp.photos/fast) - [Free in-browser upscaler](https://crisp.photos) - [MCP server](https://crisp.photos/mcp)