Docs
Work with characters, generation and post plans through the Fanmake API and MCP.
Before the app opens: tokens are limited to our internal workspace. Customer tokens arrive when the app opens.
At a glance
- The base address is https://app.fanmake.ai/api/v1.
- Authenticate with an Authorization: Bearer token header.
- Create a token in Profile › Agent access. It is shown only once.
- A token carries the permissions and credit limit of the person who made it.
Make a request
Start an image job. The API answers 202 when the job is accepted.
curl -X POST https://app.fanmake.ai/api/v1/images \
-H "Authorization: Bearer $FANMAKE_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "z-image-turbo",
"prompt": "Portrait of my character at a cafe, soft window light",
"image_size": "portrait_4_3",
"num_images": 1
}'Use the job id from the response to read its status and result files.
curl https://app.fanmake.ai/api/v1/images/<id> \
-H "Authorization: Bearer $FANMAKE_TOKEN"How a request runs
- The token, permissions and hourly limit are checked.
- The price is read and credits are reserved. A job does not start without enough balance and member limit.
- The job joins the queue and runs on a GPU or with a provider.
- On success the result is saved and the credits are charged.
- On failure the reserved credits are returned.
Connect through MCP
You need Node.js 18 or newer. The program is a single file that runs on your computer.
Claude Code
mkdir -p ~/.fanmake && curl -fsSL https://app.fanmake.ai/fanmake-mcp.mjs -o ~/.fanmake/fanmake-mcp.mjs
node ~/.fanmake/fanmake-mcp.mjs --install-guides
claude mcp add fanmake -s user -e FANMAKE_TOKEN=fmk_… -- node ~/.fanmake/fanmake-mcp.mjsYou are done when claude mcp list shows fanmake as Connected.
Codex
Download the program with the first line above, then add this to ~/.codex/config.toml. Use the full path in args.
[mcp_servers.fanmake]
command = "node"
args = ["/Users/yourname/.fanmake/fanmake-mcp.mjs"]
env = { FANMAKE_TOKEN = "fmk_…" }
startup_timeout_sec = 20
tool_timeout_sec = 900ChatGPT
Not supported yet. ChatGPT needs a hosted MCP address, and Fanmake does not offer one yet.
Connection addresses
| API | https://app.fanmake.ai/api/v1 |
| MCP program | https://app.fanmake.ai/fanmake-mcp.mjs |
| Hosted MCP address | Not available yet |
Limits
By default each person gets 120 image requests and 30 video requests an hour, shared across their tokens. Above the limit the API answers 429 with Retry-After.
FAQ
What does a call cost?
The same credits as the same job in the app. Your member credit limit applies too.
Which workspace pays?
The workspace the token was created in. A token belongs to one person and one workspace.
Where do my files go?
MCP saves results as local files and keeps them in your Fanmake account.
Which apps work?
Claude Code and Codex are documented today. They run the Fanmake program on your computer. ChatGPT and other apps that need a hosted address are not supported yet.
Does an agent post to social media?
Not by itself. Fanmake never posts. Approved posts are uploaded from your own signed-in account.
What if my token leaks?
Revoke it in Profile › Agent access and create a new one. Never paste a token into chats, documents or Git.