配图卡 PeitukaOpen-source tools & developer API

Peituka for Developers

Open workflows. Production image API when you need it.

Skills, TypeScript SDK, CLI, and MCP are open. Explore the workflow and template catalog for free, then use Peituka Cloud for hosted generation, automation, and team delivery.

01

Open layer: value first

Install visual craft, use-case templates, and agent workflows in Codex, Claude Code, or Cursor.

02

SDK / CLI: fit your stack

Add article visuals, thumbnails, and ad creatives to scripts and automations with TypeScript or the CLI.

03

Cloud API: ship at scale

Use hosted generation, stable image URLs, credit billing, history, and the template community.

OPEN SOURCE

Three ways to start

Agent Skills

Learn to plan, generate, and visually verify images with no API key.

git clone https://github.com/peituka/peituka.git

CLI

For scripts, batches, and CI. Browse public templates without a key.

npx @peituka/cli templates

MCP Server

Let Codex, Claude, and Cursor call Peituka tools directly.

npx @peituka/mcp

CLOUD API

5-minute API quickstart

Create a key, then copy either example below. New accounts include trial credits.

Your API keys

The full key is shown only once. Save it in a password manager or environment variable.

Local demo mode is active; you can create a test key now.

No API keys yet. Create one to make your first call.

TypeScript / JavaScript
import { PeitukaClient } from "@peituka/core";

const peituka = new PeitukaClient({
  baseUrl: "https://peituka.com",
  apiKey: process.env.PEITUKA_API_KEY
});

const result = await peituka.generate({
  prompt: "Editorial header about AI agents with clear title space",
  useCase: "article_visual",
  aspectRatio: "16:9",
  outputCount: 1
});

console.log(result.assets[0].imageUrl);
cURL
curl https://peituka.com/api/generations \
  -H "Authorization: Bearer $PEITUKA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "Editorial header about AI agents with clear title space",
    "preset": {
      "useCase": "article_visual",
      "style": "editorial",
      "aspectRatio": "16:9",
      "quality": "medium",
      "outputCount": 1,
      "language": "en"
    }
  }'

REST

Core API

GET /api/templatesPublic, no API key
POST /api/generationsBearer API key
GET /api/generations/:idBearer API key

The open-source tools stay free

Use Cloud only when you need hosted generation, stable URLs, batch automation, and more capacity.

Claim trial creditsSee pricing