forgemesh-imagegen 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +9 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -13,9 +13,9 @@ Part of the [ForgeMesh](https://github.com/forgemeshlabs/forgemesh) ecosystem
13
13
 
14
14
  | Tool | What it does | Price |
15
15
  |---|---|---|
16
- | `generate_image` | Standard text-to-image generation | $0.25 USDC |
16
+ | `generate_image` | Standard text-to-image generation | $0.05 USDC |
17
17
  | `generate_clean` | Generate + background removal | $0.35 USDC |
18
- | `generate_hd` | Premium generate + 4x upscale (HD) | $0.50 USDC |
18
+ | `generate_hd` | Premium generate + 4x upscale (HD) | $0.10 USDC |
19
19
  | `generate_pro` | Top-tier generate + bg removal + 4x upscale | $0.75 USDC |
20
20
  | `list_presets` | List the 58 identity-preserving transform presets (person or pet) | $0.005 USDC |
21
21
  | `transform_image` | Transform a photo with a preset while keeping the subject's identity (FLUX Kontext Max) | $0.75 USDC |
package/index.js CHANGED
@@ -30,37 +30,37 @@ const TOOLS = [
30
30
  {
31
31
  name: "generate_image",
32
32
  annotations: GENERATE_ANNOTATIONS,
33
- description: "Generate a standard AI image from a text prompt. Returns a PNG image URL. Costs $0.25 USDC on Base mainnet — paid automatically.",
33
+ description: "Image generation: text prompt to image (text-to-image) with FLUX Schnell. Pass prompt and optional aspect (1:1, 16:9, 9:16 or 4:3). Returns the image URL with prompt, aspect and model. Use it for illustrations, thumbnails, mockups and social images. Costs $0.05 USDC on Base mainnet, paid automatically.",
34
34
  inputSchema: promptSchema("Text description of the image to generate"),
35
35
  },
36
36
  {
37
37
  name: "generate_clean",
38
38
  annotations: GENERATE_ANNOTATIONS,
39
- description: "Generate an AI image with background removed. Returns a transparent PNG URL. Costs $0.35 USDC on Base mainnet.",
39
+ description: "Image generation with transparent background: text prompt to image with FLUX Schnell, then automatic background removal. Returns the URL of a transparent PNG cutout. Use it for product cutouts, stickers and logo marks. Costs $0.35 USDC on Base mainnet.",
40
40
  inputSchema: promptSchema("Text description of the subject (background will be removed)"),
41
41
  },
42
42
  {
43
43
  name: "generate_hd",
44
44
  annotations: GENERATE_ANNOTATIONS,
45
- description: "Generate a premium AI image upscaled 4x HD. Returns a high-resolution image URL. Costs $0.50 USDC on Base mainnet.",
45
+ description: "High-resolution image generation: text prompt to image with FLUX 1.1 Pro plus a 4x Real-ESRGAN upscale, run as an async job. Returns the job (job_id, status, status_url); poll status_url until it succeeds to read image_url. Costs $0.10 USDC on Base mainnet.",
46
46
  inputSchema: promptSchema("Text description of the image to generate"),
47
47
  },
48
48
  {
49
49
  name: "generate_pro",
50
50
  annotations: GENERATE_ANNOTATIONS,
51
- description: "Generate a top-tier AI image with background removal and 4x HD upscale. Costs $0.75 USDC on Base mainnet.",
51
+ description: "Premium image generation: text prompt to image with FLUX Kontext Max, background removal and a 4x upscale, run as an async job. Returns the job (job_id, status, status_url); poll status_url until it succeeds to read image_url. Costs $0.75 USDC on Base mainnet.",
52
52
  inputSchema: promptSchema("Text description of the subject (background removed, then upscaled)"),
53
53
  },
54
54
  {
55
55
  name: "list_presets",
56
56
  annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
57
- description: "List the 58 identity-preserving transform presets for transform_image (action figure, pet royalty, CEO portrait, cartoon villain, fantasy poster, pet astronaut, ...). Returns id, title, tagline and whether each expects a person or a pet photo. Costs $0.005 USDC on Base mainnet.",
57
+ description: "Photo transform presets: list the 58 identity-preserving image-to-image styles for transform_image (action figure, pet royalty, CEO portrait, cartoon villain, fantasy poster, pet astronaut, ...). Returns id, title, tagline and whether each expects a person or a pet photo. Costs $0.005 USDC on Base mainnet.",
58
58
  inputSchema: { type: "object", properties: {}, required: [] },
59
59
  },
60
60
  {
61
61
  name: "transform_image",
62
62
  annotations: GENERATE_ANNOTATIONS,
63
- description: "Transform a photo with a named preset while keeping the subject's identity (FLUX Kontext Max image-to-image). Pass a public https image URL and a preset id from list_presets. Returns a job with a free status_url to poll until the PNG is ready (usually 15-30s). Costs $0.75 USDC on Base mainnet. Submit only images you have rights to; no minors; provider safety filter applies.",
63
+ description: "Photo transform (image-to-image): restyle a photo with a named preset while keeping the subject's identity, using FLUX Kontext Max. Pass a public https image URL and a preset id from list_presets. Returns a job with a free status_url to poll until the PNG is ready (usually 15-30s). Costs $0.75 USDC on Base mainnet. Submit only images you have rights to; no minors; provider safety filter applies.",
64
64
  inputSchema: {
65
65
  type: "object",
66
66
  properties: {
@@ -75,9 +75,9 @@ const TOOLS = [
75
75
  ];
76
76
 
77
77
  const TOOL_ENDPOINTS = {
78
- generate_image: { path: "/generate", price: "$0.25" },
78
+ generate_image: { path: "/generate", price: "$0.05" },
79
79
  generate_clean: { path: "/generate/clean", price: "$0.35" },
80
- generate_hd: { path: "/generate/hd", price: "$0.50" },
80
+ generate_hd: { path: "/generate/hd", price: "$0.10" },
81
81
  generate_pro: { path: "/generate/pro", price: "$0.75" },
82
82
  list_presets: { path: "/presets", price: "$0.005" },
83
83
  transform_image: { path: "/transform", price: "$0.75" },
@@ -88,7 +88,7 @@ function buildHttpClient() {
88
88
  if (!key) {
89
89
  throw new Error(
90
90
  "WALLET_PRIVATE_KEY required — set a dedicated, low-balance Base wallet private key funded with USDC.\n" +
91
- " generate_image = $0.25 | generate_clean = $0.35 | generate_hd = $0.50 | generate_pro = $0.75 | transform_image = $0.75"
91
+ " generate_image = $0.05 | generate_clean = $0.35 | generate_hd = $0.10 | generate_pro = $0.75 | transform_image = $0.75"
92
92
  );
93
93
  }
94
94
  const pk = key.startsWith("0x") ? key : "0x" + key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgemesh-imagegen",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "mcpName": "io.github.forgemeshlabs/imagegen-mcp",
5
5
  "description": "MCP server for AI image generation — generate, clean (bg removal), HD (4x upscale), Pro. Pay per image in USDC via x402 on Base. No API key needed.",
6
6
  "main": "index.js",