Build on Model Studio.
REST API, webhooks, and the Shopify app — everything you need to wire Character Lock generations into your own product or pipeline.
Authentication
API keys are issued per account from your dashboard. Pass your key as a Bearer token in the Authorization header. Keys are scoped to your account and can be rotated anytime without downtime.
Authorization: Bearer ms_live_••••••••
Generations API
Programmatic access to the same generation pipeline as the Studio: Character Lock references, product slots, model selection, and batch runs. Responses include SEO filenames, alt text, and keyword metadata on every asset.
POST /api/v1/generations
{
"character_id": "char_abc123",
"prompt": "studio editorial, @ref1",
"model": "seedream-5.0"
}Webhooks
Subscribe to generation.completed, generation.failed, credit.low, and subscription.* events. Failed-generation webhooks fire alongside automatic credit refunds, so your systems stay in sync without polling.
POST /api/v1/webhooks
{
"url": "https://you.com/hooks",
"events": ["generation.completed"]
}Shopify App
The Model Studio Shopify app auto-provisions a linked Studio account per shop, syncs products, and pushes generated imagery back to product media. OAuth install flow with read_products / write_products scopes.
MCP server — coming soon.
We're building a Model Context Protocol server so AI assistants and agents can generate on-brand imagery with Character Lock directly — locked characters, product references, and batch generations as native MCP tools. Join the waitlist from your dashboard to get early access.