GhostfeedGhostfeed MCPv13.2.0
MCP docs

Avatars

Generate draft AI avatars from typed traits, then approve or rename them. Drafts never enter the library without human approval; the user manages or discards unwanted drafts from the dashboard. add_avatar_images puts the user's own uploaded photos into an avatar, or makes a new saved avatar from them, for free.

create_avatar

WRITE

REST: POST /api/v2/avatars

Generate draft avatar(s) from appearance traits + an optional scene prompt. Drafts are NOT saved to the library; the user must approve one. Any traits you omit are randomized. Costs credits per image. Drafts are billed once at creation, never expire, and cost nothing to keep unapproved. The result reports creditsSpent and creditsRemaining, and each draft carries dashboardUrl, the dashboard door to that draft. In an MCP Apps host, open render_avatar_builder for a new avatar instead of calling this tool; its Generate button calls it. After a successful result, call render_image_results with one ready avatar-draft item per imageUrl so the user can review the images in chat.

Input schema
{
  "type": "object",
  "properties": {
    "workspace": {
      "type": "string",
      "minLength": 1,
      "description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
    },
    "traits": {
      "description": "Appearance traits. Any you omit are randomized (gender-aware).",
      "type": "object",
      "properties": {
        "gender": {
          "type": "string",
          "enum": [
            "Female",
            "Male"
          ]
        },
        "ageBand": {
          "type": "string",
          "enum": [
            "18-19",
            "20s",
            "30s",
            "40s",
            "50s",
            "60s",
            "70+"
          ]
        },
        "heritage": {
          "type": "string",
          "enum": [
            "South Asian",
            "East Asian",
            "Black",
            "White",
            "Latino",
            "Middle Eastern",
            "Mixed"
          ]
        },
        "faceShape": {
          "type": "string",
          "enum": [
            "Oval",
            "Round",
            "Heart",
            "Square",
            "Angular"
          ]
        },
        "skinTone": {
          "type": "string",
          "enum": [
            "Porcelain",
            "Fair",
            "Light Medium",
            "Medium",
            "Olive",
            "Tan",
            "Deep"
          ]
        },
        "skinTexture": {
          "type": "string",
          "enum": [
            "Airbrushed clean",
            "Smooth natural",
            "Soft matte",
            "Freckled",
            "Textured pores",
            "Weathered rugged"
          ]
        },
        "hairColor": {
          "type": "string",
          "enum": [
            "Jet Black",
            "Black",
            "Dark Brown",
            "Medium Brown",
            "Light Brown",
            "Auburn",
            "Blonde",
            "Platinum Blonde",
            "Copper Red",
            "Salt & Pepper",
            "Gray",
            "Silver",
            "White"
          ]
        },
        "hairStyle": {
          "type": "string",
          "enum": [
            "Buzz cut",
            "Crew cut",
            "Fade",
            "Textured crop",
            "Short side part",
            "Slicked back",
            "Quiff",
            "Natural short",
            "Bob cut",
            "Layered cut",
            "Straight & sleek",
            "Soft waves",
            "Beach waves",
            "Loose curls",
            "Tight curls",
            "Soft bangs",
            "Center part",
            "Side part",
            "Ponytail",
            "Sleek bun",
            "Long & flowing",
            "Messy tousled"
          ]
        },
        "eyeColor": {
          "type": "string",
          "enum": [
            "Dark Brown",
            "Brown",
            "Hazel",
            "Green",
            "Blue",
            "Gray",
            "Amber",
            "Gray-Blue"
          ]
        },
        "bodyBuild": {
          "type": "string",
          "enum": [
            "Slim",
            "Athletic",
            "Average",
            "Muscular",
            "Broad",
            "Curvy",
            "Petite",
            "Plus-size"
          ]
        },
        "facialHair": {
          "type": "string",
          "enum": [
            "Clean shaven",
            "Stubble",
            "Short beard",
            "Full beard",
            "Goatee",
            "Mustache"
          ]
        },
        "makeupStyle": {
          "type": "string",
          "enum": [
            "No makeup",
            "Natural / minimal",
            "Soft glam",
            "Bold glam",
            "Smoky eye",
            "Dewy fresh"
          ]
        },
        "bustSize": {
          "type": "string",
          "enum": [
            "Petite",
            "Small",
            "Medium",
            "Large",
            "Very Large"
          ]
        },
        "outfitStyle": {
          "type": "string",
          "enum": [
            "Casual t-shirt",
            "Button-down shirt",
            "Henley shirt",
            "Polo shirt",
            "Hoodie",
            "Sweater",
            "Denim jacket",
            "Leather jacket",
            "Bomber jacket",
            "Suit jacket",
            "Tank top",
            "Flannel shirt",
            "Crop top",
            "Off-shoulder top",
            "Tube top",
            "Lace camisole",
            "Halter top",
            "Blouse",
            "Bodysuit",
            "Corset top",
            "Sundress",
            "Wrap top",
            "Cardigan",
            "Spaghetti strap top",
            "Bandeau top",
            "Blazer",
            "Kurta",
            "Sari",
            "Sherwani",
            "Hijab with modest outfit"
          ]
        }
      }
    },
    "notes": {
      "description": "Free-text scene / pose / mood. Anything that is NOT a fixed trait. Scene wishes are best effort, not guaranteed: view the returned image before presenting it.",
      "type": "string",
      "maxLength": 2000
    },
    "count": {
      "description": "How many draft variations to generate (default 1). Every draft in a call shares this ONE trait spec; count gives look variations of the same persona, not distinct people. For distinct personas, make one call per persona.",
      "type": "integer",
      "minimum": 1,
      "maximum": 4
    },
    "names": {
      "description": "A name for each draft, index-aligned with count. YOU (the AI) should pick trait-appropriate names; omit to let the server auto-name. Fewer names than count is fine: the remaining drafts get server-generated names.",
      "maxItems": 4,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 100
      }
    },
    "model": {
      "description": "Image model id from list_image_models; the server checks it against that list. Higher tiers cost more credits.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "quality": {
      "description": "Quality for a model that takes one (see list_image_models qualities); each costs its own credits. Omit for the model default.",
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high"
      ]
    },
    "idempotencyKey": {
      "description": "A stable key to reuse if you retry this exact request; a repeat with the same key is NOT charged again.",
      "type": "string",
      "maxLength": 200
    }
  },
  "required": [
    "workspace"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "avatars": [
      {
        "avatarId": "avt_9f8e7d6c5b4a3210",
        "name": "Maya",
        "imageUrl": "https://cdn.ghostfeed.ai/avatars/drafts/avt_9f8e7d6c5b4a3210.png",
        "status": "draft",
        "dashboardUrl": "https://ghostfeed.ai/w/client-a/avatar?create=1&draft=avt_9f8e7d6c5b4a3210&ref=agent"
      }
    ],
    "traits": {
      "gender": "Female",
      "ageBand": "20s",
      "heritage": "South Asian",
      "faceShape": "Oval",
      "skinTone": "Medium",
      "skinTexture": "Smooth",
      "hairColor": "Black",
      "hairStyle": "Long Wavy",
      "eyeColor": "Brown",
      "bodyBuild": "Slim",
      "outfitStyle": "Casual"
    },
    "creditsSpent": 2,
    "creditsRemaining": 45,
    "total": 1,
    "page": 1,
    "pages": 1,
    "nextSteps": "1 draft avatar created, NOT yet in the library. Show them to the user and call approve_avatar with the avatarId(s) they want to keep. You cannot delete drafts; the user manages or discards the rest from the dashboard. Report the spend: 2 credits spent, 45 remaining."
  }
}

approve_avatar

WRITEIDEMPOTENT

REST: POST /api/v2/avatars/:id/approve

Approve a draft avatar by its avatarId, promoting it into the library. It keeps its name; rename it with rename_avatar. Only approve drafts the USER chose to keep. Returns dashboardUrl for the saved avatar.

Input schema
{
  "type": "object",
  "properties": {
    "avatarId": {
      "type": "string",
      "description": "The avatarId of the draft to approve (from create_avatar)."
    },
    "workspace": {
      "type": "string",
      "minLength": 1,
      "description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
    }
  },
  "required": [
    "avatarId",
    "workspace"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "avatarId": "avt_9f8e7d6c5b4a3210",
    "name": "Maya",
    "thumbnailUrl": "https://cdn.ghostfeed.ai/avatars/saved/avt_9f8e7d6c5b4a3210/thumb.png",
    "status": "saved",
    "dashboardUrl": "https://ghostfeed.ai/w/client-a/avatar?selected=avt_9f8e7d6c5b4a3210&ref=agent",
    "nextSteps": "Approved and saved to the library."
  }
}

rename_avatar

WRITEIDEMPOTENT

REST: PATCH /api/v2/avatars/:id

Rename an avatar (draft or saved) by its avatarId. Pure rename: does NOT save/approve a draft or change anything else.

Input schema
{
  "type": "object",
  "properties": {
    "avatarId": {
      "type": "string",
      "description": "The avatarId to rename (draft OR saved)."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 100,
      "description": "The new name."
    },
    "workspace": {
      "type": "string",
      "minLength": 1,
      "description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
    }
  },
  "required": [
    "avatarId",
    "name",
    "workspace"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "avatarId": "avt_1a2b3c4d5e6f7081",
    "name": "Priya V2",
    "status": "saved",
    "dashboardUrl": "https://ghostfeed.ai/w/client-a/avatar?selected=avt_1a2b3c4d5e6f7081&ref=agent",
    "nextSteps": "Renamed."
  }
}

add_avatar_images

WRITE

REST: POST /api/v2/avatars/images

Put the user's own photos into an avatar: add up to 20 completed image uploads (mediaIds from complete_media_upload) to an avatar by avatarId, or pass name instead to make a new saved avatar from them, whose first photo is its main photo. Free: nothing is generated. A photo already added with its mediaId is skipped. A bad upload is listed in failed with its reason, and the good ones are still added. Public callers should supply idempotencyKey and reuse it after uncertain responses. To SHOW these results in an MCP Apps host, ALWAYS call render_library; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Input schema
{
  "type": "object",
  "properties": {
    "avatarId": {
      "description": "The avatarId to add the photos to, from list_avatars. Send avatarId or name, not both.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "name": {
      "description": "Name for a new saved avatar made from these photos. Send name or avatarId, not both.",
      "type": "string",
      "minLength": 1,
      "maxLength": 100
    },
    "mediaIds": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[A-Za-z0-9_-]{8,64}$"
      },
      "description": "mediaIds of completed image uploads from complete_media_upload: photos of the person the user already has. A new avatar uses the first one that is added as its main photo. At most 64 MB of uploads per call."
    },
    "workspace": {
      "type": "string",
      "minLength": 1,
      "description": "Required write target: a workspace slug or id from list_workspaces. Writes never inherit the connection default."
    },
    "idempotencyKey": {
      "description": "A stable key to reuse if you retry this exact request; a repeat with the same key returns the avatar the first call made.",
      "type": "string",
      "maxLength": 200
    }
  },
  "required": [
    "mediaIds",
    "workspace"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "avatar": {
      "avatarId": "3f6c1d2e-8a4b-4c7d-9e0f-1a2b3c4d5e6f",
      "name": "Maya",
      "thumbnailUrl": "https://cdn.ghostfeed.ai/users/64f1c2a1b2c3d4e5f6071829/avatars/3f6c1d2e-8a4b-4c7d-9e0f-1a2b3c4d5e6f/0b9e7c4a-2d1f-4e8b-a6c3-5f7d9e1b3a2c.jpg",
      "status": "saved",
      "dashboardUrl": "https://ghostfeed.ai/w/client-a/avatar?selected=3f6c1d2e-8a4b-4c7d-9e0f-1a2b3c4d5e6f&ref=agent"
    },
    "created": true,
    "added": 3,
    "skipped": 0,
    "failed": [],
    "nextSteps": "The photos are saved to the avatar. Browse them with list_avatar_images; generation takes the avatarId."
  }
}

list_avatars

READ

REST: GET /api/v2/avatars

List saved workspace Avatars with IDs, names, and thumbnails for rename_avatar or generation, paginated. Unapproved drafts are in list_draft_avatars. To SHOW these results in an MCP Apps host, ALWAYS call render_library; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Input schema
{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Per page (max 100). Each tool documents its own default.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "avatars": [
      {
        "avatarId": "avt_1a2b3c4d5e6f7081",
        "name": "Priya",
        "imageUrl": "https://cdn.ghostfeed.ai/avatars/saved/avt_1a2b3c4d5e6f7081/thumb.png",
        "imageCount": 6,
        "gender": "Female",
        "creationMethod": "ai_generated",
        "createdBy": "64f1c2a1b2c3d4e5f6071829"
      }
    ],
    "total": 12,
    "page": 1,
    "pages": 1,
    "nextSteps": "These are SAVED library avatars in the active workspace. rename_avatar works on any of them by avatarId. Pending (unapproved) drafts are separate: list_draft_avatars."
  }
}

list_draft_avatars

READ

REST: GET /api/v2/avatars/drafts

List draft avatars awaiting approval in the active workspace, newest first (paginated). To SHOW these results in an MCP Apps host, ALWAYS call render_image_results; never hand-build the presentation in chat (no markdown galleries, embedded thumbnails, numbered image lists, or artifacts), even after a widget error. Outside an Apps host, describe items in text and share the dashboard link.

Input schema
{
  "type": "object",
  "properties": {
    "page": {
      "description": "Page number (default 1).",
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "limit": {
      "description": "Per page (max 100). Each tool documents its own default.",
      "type": "integer",
      "minimum": 1,
      "maximum": 100
    },
    "workspace": {
      "description": "Target workspace: a slug, id, or exact name from list_workspaces. Omit to use this connection's default workspace. Must be inside the credential's grant and your current access; overrides the connection-level X-Workspace-Id header.",
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
Example response
{
  "success": true,
  "data": {
    "workspace": {
      "id": "6a18c36ee586c7e44e4ece67",
      "name": "Client A",
      "slug": "client-a"
    },
    "drafts": [
      {
        "avatarId": "avt_9f8e7d6c5b4a3210",
        "name": "Maya",
        "imageUrl": "https://cdn.ghostfeed.ai/avatars/drafts/avt_9f8e7d6c5b4a3210.png",
        "createdBy": "64f1c2a1b2c3d4e5f6071829",
        "createdAt": "2026-07-18T11:00:00.000Z"
      }
    ],
    "total": 1,
    "page": 1,
    "pages": 1,
    "nextSteps": "Approve the ones to keep (approve_avatar). You cannot delete drafts; the user manages or discards the rest from the dashboard."
  }
}

list_image_models

READ

REST: GET /api/v2/image-models

List the image models: each id with tasks (the image task tools it offers: text_to_image, reference_to_image, image_edit, clone_image) and each task’s facts and preset id or null (one model per task is marked recommended: true), plus quality and resolution options, prices and slideshow metadata. Each model has one id, used everywhere. Every image task tool needs one of these ids as model; there is no default, so send the recommended one unless the user asks for another. create_avatar takes them too.

No input. Call with no arguments.

Example response
{
  "success": true,
  "data": {
    "models": [
      {
        "key": "image:nano_banana_2",
        "outputKind": "image",
        "modelId": "nano_banana_2",
        "modelLabel": "Nano Banana 2",
        "route": "image-generation",
        "anchorImage": {
          "required": false,
          "maxCount": 1
        },
        "references": {
          "image": {
            "minCount": 0,
            "maxCount": 10,
            "userAddable": true,
            "acceptsUpload": true,
            "savedReferenceKinds": [
              "avatar",
              "product-image",
              "board-image"
            ],
            "acceptedMimeTypes": [
              "image/jpeg",
              "image/png",
              "image/webp"
            ],
            "maxBytes": 10485760
          },
          "video": {
            "minCount": 0,
            "maxCount": 0,
            "userAddable": false,
            "acceptsUpload": false,
            "savedReferenceKinds": [],
            "acceptedMimeTypes": [
              "video/mp4",
              "video/quicktime",
              "video/x-m4v",
              "video/webm",
              "video/x-matroska",
              "video/x-msvideo",
              "video/mpeg",
              "video/ogg"
            ],
            "maxBytes": 209715200
          },
          "audio": {
            "minCount": 0,
            "maxCount": 0,
            "userAddable": false,
            "acceptsUpload": false,
            "savedReferenceKinds": [],
            "acceptedMimeTypes": [
              "audio/mpeg",
              "audio/mp3",
              "audio/aac",
              "audio/wav",
              "audio/x-wav",
              "audio/ogg",
              "audio/webm",
              "audio/mp4",
              "audio/x-m4a",
              "audio/flac",
              "audio/x-flac",
              "audio/aiff",
              "audio/x-aiff"
            ],
            "maxBytes": 209715200
          }
        },
        "automaticSourceInputs": [],
        "maxTotalReferences": 10,
        "modelFamily": "google",
        "description": "Fast",
        "allowedFlows": [
          "template",
          "reference",
          "prompt",
          "edit"
        ],
        "pickerOrder": 1,
        "workspaceSelectable": true,
        "estimatedGenerationSeconds": 12,
        "pricing": {
          "standard": 1,
          "highResolution": 1.5
        },
        "output": {
          "resolutions": [
            "standard",
            "1080p"
          ],
          "defaultResolution": "standard",
          "aspectRatios": [
            "9:16",
            "16:9",
            "1:1"
          ],
          "qualities": [],
          "defaultQuality": "medium"
        },
        "slideshow": {
          "modelId": "nano_banana_2",
          "supportsReference": true
        },
        "id": "nano_banana_2",
        "label": "Nano Banana 2",
        "creditCost": 1,
        "provider": "gemini",
        "isDefault": true,
        "tasks": [
          {
            "task": "text_to_image",
            "aspectRatios": [
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 0,
                "max": 0
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 0,
                "max": 0
              }
            },
            "preset": null,
            "recommended": true
          },
          {
            "task": "reference_to_image",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 1,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 1,
                "max": 10
              }
            },
            "preset": null
          },
          {
            "task": "image_edit",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 1,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 1,
                "max": 10
              }
            },
            "preset": "image_edit",
            "recommended": true
          },
          {
            "task": "clone_image",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": false,
            "references": {
              "image": {
                "min": 2,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 2,
                "max": 10
              }
            },
            "preset": "clone_image",
            "presetWithProduct": "clone_image_with_product",
            "recommended": true
          }
        ]
      },
      {
        "key": "image:gpt_image_2",
        "outputKind": "image",
        "modelId": "gpt_image_2",
        "modelLabel": "GPT Image 2",
        "route": "image-generation",
        "anchorImage": {
          "required": false,
          "maxCount": 1
        },
        "references": {
          "image": {
            "minCount": 0,
            "maxCount": 10,
            "userAddable": true,
            "acceptsUpload": true,
            "savedReferenceKinds": [
              "avatar",
              "product-image",
              "board-image"
            ],
            "acceptedMimeTypes": [
              "image/jpeg",
              "image/png",
              "image/webp"
            ],
            "maxBytes": 10485760
          },
          "video": {
            "minCount": 0,
            "maxCount": 0,
            "userAddable": false,
            "acceptsUpload": false,
            "savedReferenceKinds": [],
            "acceptedMimeTypes": [
              "video/mp4",
              "video/quicktime",
              "video/x-m4v",
              "video/webm",
              "video/x-matroska",
              "video/x-msvideo",
              "video/mpeg",
              "video/ogg"
            ],
            "maxBytes": 209715200
          },
          "audio": {
            "minCount": 0,
            "maxCount": 0,
            "userAddable": false,
            "acceptsUpload": false,
            "savedReferenceKinds": [],
            "acceptedMimeTypes": [
              "audio/mpeg",
              "audio/mp3",
              "audio/aac",
              "audio/wav",
              "audio/x-wav",
              "audio/ogg",
              "audio/webm",
              "audio/mp4",
              "audio/x-m4a",
              "audio/flac",
              "audio/x-flac",
              "audio/aiff",
              "audio/x-aiff"
            ],
            "maxBytes": 209715200
          }
        },
        "automaticSourceInputs": [],
        "maxTotalReferences": 10,
        "modelFamily": "openai",
        "description": "Sharper",
        "allowedFlows": [
          "template",
          "reference",
          "prompt",
          "edit"
        ],
        "pickerOrder": 4,
        "workspaceSelectable": true,
        "estimatedGenerationSeconds": 25,
        "pricing": {
          "standard": 1,
          "highResolution": 1.5,
          "byQuality": {
            "low": {
              "standard": 0.5,
              "highResolution": 1
            },
            "medium": {
              "standard": 1,
              "highResolution": 1.5
            },
            "high": {
              "standard": 2,
              "highResolution": 2.5
            }
          }
        },
        "output": {
          "resolutions": [
            "standard",
            "1080p"
          ],
          "defaultResolution": "standard",
          "aspectRatios": [
            "9:16",
            "16:9",
            "1:1"
          ],
          "qualities": [
            "low",
            "medium",
            "high"
          ],
          "defaultQuality": "medium"
        },
        "slideshow": {
          "modelId": "gpt_image_2",
          "supportsReference": false
        },
        "id": "gpt_image_2",
        "label": "GPT Image 2",
        "creditCost": 1,
        "provider": "fal",
        "isDefault": false,
        "tasks": [
          {
            "task": "text_to_image",
            "aspectRatios": [
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 0,
                "max": 0
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 0,
                "max": 0
              }
            },
            "preset": null
          },
          {
            "task": "reference_to_image",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 1,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 1,
                "max": 10
              }
            },
            "preset": null
          },
          {
            "task": "image_edit",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": true,
            "references": {
              "image": {
                "min": 1,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 1,
                "max": 10
              }
            },
            "preset": "image_edit"
          },
          {
            "task": "clone_image",
            "aspectRatios": [
              "original",
              "9:16",
              "16:9",
              "1:1"
            ],
            "promptRequired": false,
            "references": {
              "image": {
                "min": 2,
                "max": 10
              },
              "video": {
                "min": 0,
                "max": 0
              },
              "audio": {
                "min": 0,
                "max": 0
              },
              "total": {
                "min": 2,
                "max": 10
              }
            },
            "preset": "clone_image",
            "presetWithProduct": "clone_image_with_product"
          }
        ]
      }
    ],
    "defaultModelId": "nano_banana_2",
    "nextSteps": "tasks lists the task tools each model offers (call the tool named after the task, with this id as model; there is no default model), each with this model’s facts for that task: aspectRatios, promptRequired, references (counts per media and clip seconds), sourceSeconds where the length comes from a source, durations with defaultDuration, modes with defaultMode where the model has a mode setting (settings.mode), endFrame: true where image_to_video also takes a second image as the video’s last frame, frames: true where reference_to_video takes frame: \"first\" or \"last\" on an image reference, its preset id (null when it has none), and promptLimits: how long the prompt may be (max in bytes or characters; countsPreset says the preset or a systemPrompt counts too), refused with prompt_too_long when longer. One model per task is marked recommended: true; use it unless the user asks for another. Read a preset’s text with get_preset; leave systemPrompt out to use it, send text to replace it, or null to remove it. systemPrompt is refused where preset is null. create_avatar also takes an id as `model`; only there does isDefault apply when it is left out. Each model has one id, used everywhere. creditCost is the default per-image price; pricing and output describe quality/resolution choices. Slideshow tools use slideshow.modelId and its reference capability."
  }
}