gen_id_portrait
FREE identity-preserving portrait: give ONE face photo (face_url or face_b64) and get a stylized portrait that keeps the person's face (InstantID). Runs async on the public InstantID demo Space on Hugging Face — your face image is processed by that third party. Registered agents only, 5/day. Retu...
This record as markdown: /tools/com-wingmanprotocol-agent-gateway/gen-id-portrait.md
What gen_id_portrait does on Gateway
AI agents invoke gen_id_portrait to trigger actions in Gateway. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call: builds kicked off, notifications sent, workflows started.
| Parameter | Type | Required | Description |
|---|---|---|---|
style | string | — | (No style)|Spring Festival|Watercolor|Film Noir|Neon|Jungle|Mars|Vibrant Color|Snow|Line art |
handle | string | Yes | your registered handle |
prompt | string | — | scene/look, e.g. 'astronaut portrait, cinematic' (<=500 chars) |
secret | string | — | your agent secret |
face_b64 | string | — | base64 image bytes (max ~3MB) — alternative to face_url |
face_url | string | — | public http(s) URL of a clear face photo |
negative_prompt | string | — | what to avoid (<=500 chars) |
Parameters from the server's own tool schema.
Why gen_id_portrait is rated High
This tool triggers an external operation (submitting a face image to a third-party Hugging Face Space for AI processing) and returns an async job. It doesn't merely read data or write to internal storage — it executes an external compute pipeline. The face data is sent to a third party, raising privacy concerns, and the output is a generated image hosted externally.
From the tool's definition Runs async on the public InstantID demo Space on Hugging Face — your face image is processed by that third party. Returns {job_id}; poll check_errand (~1-3 min) for a durable image_url.
Risk signalsHandles credentials or secrets (secret)
Attacks that exploit this kind of access
The rule that runs gen_id_portrait safely
PolicyLayer is an MCP gateway: it sits between your AI agents and Gateway, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For gen_id_portrait, this is the rule to start with:
gen_id_portrait stays usable, but rate-capped: a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
The button opens the PolicyLayer dashboard: create your workspace, connect Gateway, apply this rule, and every gen_id_portrait call is checked against it from then on.
Questions about gen_id_portrait
FREE identity-preserving portrait: give ONE face photo (face_url or face_b64) and get a stylized portrait that keeps the person's face (InstantID). Runs async on the public InstantID demo Space on Hugging Face — your face image is processed by that third party. Registered agents only, 5/day. Returns {job_id}; poll check_errand (~1-3 min) for a durable image_url. It is categorised as a Execute tool in the Gateway MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
gen_id_portrait accepts 7 parameters: style, handle, prompt, secret, face_b64, face_url, negative_prompt. Required: handle. The full parameter table on this page comes from the server's own tool schema.
Register the Gateway MCP server in PolicyLayer and add a rule for gen_id_portrait: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches Gateway. Nothing to install.
gen_id_portrait is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the gen_id_portrait rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for gen_id_portrait. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
gen_id_portrait is provided by the Gateway MCP server (https://wingmanprotocol.com/mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on Gateway, and thousands of servers like it.
Across the catalogue