# Build with Profiendo

> Connect AI agents and code to Profiendo: the remote MCP server, the CLI, the REST API and its OpenAPI spec, authentication and credits.

Profiendo generates images, vector graphics, animated GIFs, characters and sprite animations, video, music, speech and sound effects, and keeps them together in projects. People use it in the browser studio. Agents and code use it through a remote MCP server, a command-line interface and a REST API, all backed by the same account, projects and credits.

## When to use Profiendo

Reach for Profiendo when an instructor or a training team is making training and needs its films, characters, images and sound made with AI and kept in one place:

- Illustrated characters and props, and sprite animations of them: idle, walk, run, jump, punch, hurt and other actions, or a custom motion described in words. Exports include sprite sheets and animation data for games.
- Images and short videos from text or images, including first/last-frame references, clip extension and audio references where the configured model supports them.
- Editable SVG vectors, such as logos, icons and flat illustrations, drawn from text or traced from a saved image.
- Looping animated GIFs, such as sprite walk cycles, moving icons and stickers, drawn from text or animated from a saved image. A GIF's first frame also works as a video's starting image or reference.
- Music, speech in a range of voices, and sound effects.
- Avatar videos: a lifelike presenter speaks a script or lip-syncs saved audio, from HeyGen's public avatars or a workspace's own, created from a prompt, a photo or footage.
- Short animated films and presentations: the CLI scaffolds a local video workspace with 60 visual styles that a coding agent fills with generated assets and exports to MP4. A presentation (`profiendo create --presentation`) holds each slide for the presenter's click, with presenter view, speaker notes and a phone remote, and exports to PowerPoint.

The CLI assembles local films for browser playback and MP4 export. AI generation runs asynchronously and spends the connected account’s credits; creating projects, browsing and estimating are free. Use current model profiles, validate the request and review its cost before paid work.

## Pick a surface

- Chat assistants and other MCP clients (ChatGPT, Claude and any client with remote MCP and OAuth): connect the [MCP server](#mcp).
- The Profiendo ChatGPT plugin is **coming soon** and currently in review for the ChatGPT directory. It brings project browsing, media playback, frame inspection and generation review into your conversation. See its preview in the [agent setup guide](https://profiendo.com/agent-setup.md).
- Coding agents working in a folder (Codex, Claude Code): install the [CLI](#cli). The [agent setup guide](https://profiendo.com/agent-setup.md) walks through it.
- Scripts and backends: call the [REST API](#rest-api) described by [the OpenAPI document](https://profiendo.com/openapi.json).

## MCP server

The server uses the Streamable HTTP transport at this address:

MCP URL:

```
https://profiendo.com/mcp
```

It signs people in with OAuth 2.1: the authorization code flow with PKCE (S256) and dynamic client registration. Clients find everything from the server's 401 response, which points at [the protected resource metadata](https://profiendo.com/.well-known/oauth-protected-resource/mcp) and [the authorization server metadata](https://profiendo.com/.well-known/oauth-authorization-server). The scopes are `projects.read` and `projects.write`; access tokens last one hour and refresh tokens 30 days.

Tools cover the whole studio: `list_workspaces`, `list_projects`, `count_projects`, `get_project`, `create_project`, `move_work`, `list_assets`, `estimate_generation`, `generate_character`, `animate_character`, `redraw_character`, `generate_custom_animation`, `generate_asset`, `list_avatars`, `list_avatar_looks`, `get_avatar`, `list_avatar_templates`, `create_avatar`, `create_avatar_looks`, `update_avatar`, `request_avatar_consent`, `list_avatar_voices`, `create_avatar_video`, `search_motion_examples`, `get_motion_example`, `list_motion_categories`, `search_asset_library`, `get_library_asset`, `import_library_asset` (Pro and Team plans), `list_jobs`, `get_job`, `cancel_job`, `get_ui_snapshot`, `set_video_poster`, `list_gallery`, `create_gallery_folder`, `rename_gallery_folder`, `move_gallery_items`, `get_profile` and `open_studio`. Read-only tools carry `readOnlyHint`. In clients that support MCP Apps, `open_studio` renders an interactive studio (`ui://profiendo/studio/v4.html`) with project pickers, animation playback and generation review.

Create neutral project containers and choose a style for each sprite request. Use `redraw_character` for whole artwork revisions and `generate_custom_animation` for named motions; these do not edit single frames in place. Read configured models and video profiles with `list_assets`, validate with `estimate_generation`, and poll `get_job` using its returned interval until it finishes. A project runs its jobs one at a time: `cancel_job` cancels a queued job, or stops one that is stuck and holding up the rest. The avatar tools browse HeyGen's public avatars from any project and create a workspace's own from a prompt, a photo or footage. Every project in that workspace can use its avatars and the voices cloned from its digital twins; no other workspace can see, change or speak with them. A new look is polled with `get_avatar` until it completes, `list_avatar_voices` lists the voices an avatar can speak with, and `create_avatar_video` queues a video of a look speaking a script or lip-syncing saved audio, saved to the project as a video asset. MCP does not expose project or avatar deletion, local ZIP export, film scaffolding, cloud sync or YouTube publishing; use the CLI for supported local workflows.

The server card is published at [/mcp/server-card](https://profiendo.com/mcp/server-card).

## Command-line interface

The `profiendo` command needs Node.js 24 or later. Install it from npm, or on macOS with the installer script:

npm:

```
npm install -g @docyrus/profiendo
```

macOS:

```
curl -fsSL https://profiendo.com/install.sh | bash
```

Sign in once. The browser opens a device-code approval page, and the CLI stores a revocable seven-day session:

Sign in:

```
profiendo auth login
profiendo auth status
profiendo credits
```

For assets in an existing game or app, run `profiendo init` in that folder, then use `projects`, `jobs`, `assets` and `files` to generate, inspect and download artwork or export sprite ZIPs. For one film use `profiendo create my-video`; for shared branding use `profiendo create workspace my-brand`, then `profiendo create animation first-film` inside it. New workspaces include AGENTS.md, CLAUDE.md and creative skills. Existing folders are not replaced by create.

Local films support MP4 export, subtitles, posters and multiple language cuts; branching stories and quizzes have no MP4 and play on Profiendo after `profiendo submit`. Presentations import slides from a PDF or PowerPoint file and export to PowerPoint. `profiendo submit` hosts finished films privately, and `videos` manages the library and private sharing. In the studio, a video's Share dialog also makes an unlisted link anyone can watch without an account; on Individual Pro and Team, its page can ask for a password and show the workspace's brand. Public gallery publication requires accepting the sharing agreement on the website and staff approval. `profiendo youtube` uploads exported MP4s directly from your computer with a separate Google Desktop OAuth connection; it does not use Profiendo generation credits. Inspect `--help` and `profiendo schema` for current flags.

Every command prints JSON on success and exits nonzero on errors. `profiendo catalog` lists art styles, actions, asset types, models and voices; `profiendo schema` prints the full command schema; `profiendo init` installs the Profiendo skill for your coding agent; `profiendo create my-video` scaffolds a video workspace. Agent runners can inject a token with the `PROFIENDO_TOKEN` environment variable instead of signing in. The package is [@docyrus/profiendo on npm](https://www.npmjs.com/package/@docyrus/profiendo).

On Individual Starter, Individual Pro and Team, `profiendo cloud` syncs a video workspace with a project's animations and keeps every version. `cloud link` creates a project for the folder (or `--project` syncs with an existing one), `cloud push -m` saves a version, `cloud pull` brings in versions saved elsewhere, `cloud restore` returns to an earlier one and `cloud clone` continues on another computer. Dependencies, exports, `.env` files, credentials and `.gitignore` matches stay local. Browse the films, versions and files on the project's Animations tab in [Projects](https://profiendo.com/app).

Cloud sync:

```
profiendo cloud link
profiendo cloud push -m "First cut"
profiendo cloud pull
profiendo cloud versions
```

## REST API

The API serves JSON from `https://profiendo.com/api`. [The OpenAPI 3.1 document](https://profiendo.com/openapi.json) describes every operation with request and response schemas, and [the API catalog](https://profiendo.com/.well-known/api-catalog) links it for automatic discovery.

A few endpoints are public: `GET /api/health`, the public video gallery at `GET /api/videos`, and plan and credit pack prices at `GET /api/billing`. Everything under `/api/v1` acts for a signed-in account and needs a bearer token:

Check your balance:

```
curl https://profiendo.com/api/v1/credits \
  -H "Authorization: Bearer $PROFIENDO_TOKEN"
```

A typical flow: list projects with `GET /api/v1/projects`, or create one with `POST /api/v1/sprites`. Price a job with `POST /api/v1/sprites/{id}/jobs/estimate` or `POST /api/v1/sprites/{id}/assets/estimate`, queue it with the same body on `/jobs` or `/assets`, then poll `GET /api/v1/sprites/{id}/jobs/{jobId}` until it finishes. Send an `Idempotency-Key` header when submitting so a retried request does not queue the job twice.

Errors use HTTP status codes with a JSON body of the form `{ "error": { "message": "…" } }`. A missing or expired token returns 401.

## Authentication

- MCP clients: OAuth 2.1 with PKCE, as described above. Nothing to configure beyond the server URL.
- CLI and REST API: the OAuth 2.0 device authorization grant. Request a code with `POST /api/auth/device/code` and the client ID `profiendo-cli`, open the returned `verification_uri_complete` to approve it while signed in, then poll `POST /api/auth/device/token` with `grant_type` set to `urn:ietf:params:oauth:grant-type:device_code`. The response's `access_token` is the bearer token. `profiendo auth login` does all of this for you.
- Accounts are self-serve and free to open: anyone can [create an account](https://profiendo.com/register) in the browser, and new accounts start with a 7-day Individual Pro trial and 100 free credits to try Profiendo. The CLI, the MCP server and the REST API need a plan on the account: Individual Starter, Individual Pro (including the trial) or Team, or membership of a team on the Team plan. Without one, CLI requests answer 403 with `error.code` `plan_required` (`GET /api/v1/me` still answers, with the plan and the trial's end) and MCP tools answer how to choose a plan. Tokens act with the signed-in person's access, including team workspaces they belong to.

[auth.md](https://profiendo.com/auth.md) restates these steps for agents.

## Credits and safe testing

New accounts start with a 7-day Individual Pro trial and 100 free credits to try Profiendo. The CLI, the MCP server and the REST API need a plan or the trial; every plan adds credits each month, and one-time credit packs top them up. Without a plan, the browser studio still generates with credits. Generation spends credits from the personal or team workspace that owns the project; creating projects, listing, inspecting and estimating are free.

MCP `estimate_generation` and generation tools with `dry_run: true`, plus REST `/estimate` endpoints, validate against the server without queueing work or spending credits. CLI `--dry-run` estimates use bundled rates and do not verify server model configuration, reference ownership or remaining balance; the server checks these on submission. Show the estimate before paid work. CLI paid submissions require `--yes`; actual provider usage determines the final charge.

Check the balance with `GET /api/v1/credits`, `profiendo credits`, or `get_project` over MCP. Never resubmit a paid job to check on it; poll the job instead.

## Agent skills

`profiendo init` writes the Profiendo skill to `.agents/skills/profiendo/SKILL.md` in your project, `profiendo skills install` adds every Profiendo skill (video, styles, brand kit, 3D) for Claude Code and Codex with the open `skills` CLI, and `profiendo create` adds a skill for each animation style. The skill explains project selection, credit authorization, generation, waiting for jobs and exporting assets. [The agent skills index](https://profiendo.com/.well-known/agent-skills/index.json) lists the published skills: one for MCP clients and one for the CLI.

The ChatGPT plugin bundles MCP and CLI guidance plus creative skills. Its directory release is coming soon while review is in progress. To let an agent handle CLI or MCP setup today, use **Copy setup prompt** on the [agent setup page](https://profiendo.com/agent-setup.md); the prompt ends with a read-only connection check.

## Machine-readable resources

- [llms.txt](https://profiendo.com/llms.txt) and [llms-full.txt](https://profiendo.com/llms-full.txt): a map of the site for language models, and the full text of these pages.
- Markdown versions of public pages: add `.md` to the path, as in [/docs.md](https://profiendo.com/docs.md) or [/index.md](https://profiendo.com/index.md) for the home page. The home page also answers `Accept: text/markdown`.
- [openapi.json](https://profiendo.com/openapi.json) and [the API catalog](https://profiendo.com/.well-known/api-catalog) for the REST API.
- [The AI catalog](https://profiendo.com/.well-known/ai-catalog.json) and [the MCP server card](https://profiendo.com/mcp/server-card) for the MCP server.
- [auth.md](https://profiendo.com/auth.md) for authentication, and [the agent skills index](https://profiendo.com/.well-known/agent-skills/index.json).
- [The sitemap](https://profiendo.com/sitemap.xml).

## Help

Email hello@profiendo.com or visit [support](https://profiendo.com/support.md). Include the time of the error and the tool or endpoint name. Never send passwords or access tokens.
