> ## Documentation Index
> Fetch the complete documentation index at: https://docs.samsa.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Welcome to the Samsa API

> Samsa's image and video studio, available to your own code — over REST, from any MCP client, or as a free content check.

Your first image in five steps

Create an organization API key, submit a generation, and poll it to a
finished asset — with copy-paste curl, Python, and TypeScript.

[Open the quickstart](https://docs.samsa.ai/quickstart.md)
[Browse the API reference](https://docs.samsa.ai/api.md)

## Three ways in

> [card] [REST API](https://docs.samsa.ai/api.md)
>
> Generate, edit, transform, and train over plain HTTP.

> [card] [MCP server](https://docs.samsa.ai/mcp-server.md)
>
> Drive the same tools from Claude, ChatGPT, Cursor, or n8n — one URL, nothing
> to install.

> [card] [Content verification](https://docs.samsa.ai/content-verification/overview.md)
>
> Check whether an image or video was made with Samsa. Free, no key needed.

## What you can build

> [card] [Image generation](https://docs.samsa.ai/api-reference/images/overview.md)
>
> Prompt to image, composed with your organization's trained models and color
> palettes.

> [card] [Magic Edit](https://docs.samsa.ai/api-reference/edits/overview.md)
>
> Edit an existing image from a prompt, with or without a mask.

> [card] [Image operations](https://docs.samsa.ai/api-reference/image-ops/overview.md)
>
> img2img, variations, resize, upscale, background removal, and vectorization.

> [card] [Video generation](https://docs.samsa.ai/api-reference/videos/overview.md)
>
> Video from a start frame, from text, or from text styled with your models.

> [card] [Model training](https://docs.samsa.ai/api-reference/model-training/overview.md)
>
> Train style, object, person, and setting models from a handful of images.

> [card] [Account & usage](https://docs.samsa.ai/api-reference/account/overview.md)
>
> Check a key, the credit balance it can spend, and your organization's usage.

## Before you build

> [card] [Authentication](https://docs.samsa.ai/guides/authentication.md)
>
> Organization keys, scopes, and the Bearer header every request needs.

> [card] [Pricing](https://docs.samsa.ai/guides/pricing.md)
>
> What each action costs in credits, and what happens when the pool runs out.

> [card] [Rate limits](https://docs.samsa.ai/guides/rate-limits.md)
>
> Per-key request rate, per-organization concurrency, and how to back off.

> [card] [Errors](https://docs.samsa.ai/guides/errors.md)
>
> The error envelope, every code you can receive, and how to handle it.

> [card] [Image inputs](https://docs.samsa.ai/guides/image-inputs.md)
>
> How to supply source images — by `image_id`, https URL, or base64.

> [card] [Changelog](https://docs.samsa.ai/changelog.md)
>
> New endpoints and MCP tools, newest first.

> [!NOTE]
>
> Every generation endpoint is **asynchronous**: a `POST` returns `202 Accepted`
> with a job `id`, you poll the matching `GET` — or supply a `webhook_url` — and
> a completed job carries presigned URLs to the finished assets.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.