Skip to main content
Glama

ContentHero SDK

The official developer platform for ContentHero: programmatic image, video, and audio generation, plus reads and execution across the platform.

This monorepo holds the public packages:

Package

What it is

@contenthero/sdk

The TypeScript kernel: a thin, typed client over the ContentHero /api/v1 surface.

@contenthero/mcp

The MCP server: ContentHero tools for any MCP client (Claude, Cursor, and others), built on the SDK.

The CLI (@contenthero/cli) lands here next.

Install

npm install @contenthero/sdk
# or run the MCP server directly
npx -y @contenthero/mcp

Related MCP server: PixVerse MCP

Quick start (SDK)

import { ContentHero } from '@contenthero/sdk'

const ch = new ContentHero({ apiKey: process.env.CONTENTHERO_API_KEY })

// Estimate first, then generate.
const { creditsEstimate } = await ch.estimateCost({ modelId: 'nano-banana-2', prompt: 'a neon city at dusk' })
const result = await ch.generateAndWait({ modelId: 'nano-banana-2', prompt: 'a neon city at dusk' })
console.log(result.outputUrls)

Get an API key in the ContentHero app under Developer settings.

License

MIT

A
license - permissive license
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/contenthero-ai/contenthero-sdk'

If you have feedback or need assistance with the MCP directory API, please join our Discord server