View as Markdown
Generated Photos icon

Generated Photos ACTION

Generate Faces

Generates faces using the Generated Photos API. See the documentation
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Generated Photos account once, then configure and run Generate Faces from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "generated_photos-generate-faces",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    generated_photos: { authProvisionId: "apn_xxxxxxx" },
    version: "Version",
    confidence: "Confidence",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Generate Faces inputs
Property Type Description
version Version string
Model version
Optional
confidence Confidence string
Valid values: 0.0 - 1.0. Since all of our faces are generated by AI, we’ve used several neural networks to classify images. This parameter controls the threshold of how confident were predictions.
Optional
emotion Emotion string
Emotion value
Optional
gender Gender string
Gender value
Optional
age Age string
Age value
Optional
ethnicity Ethnicity string
Ethnicity value
Optional
eyeColor Eye Color string
Eye color value
Optional
hairColor Hair Color string
Hair color value
Optional
hairLength Hair Length string
Hair length value
Optional
orderBy Order By string
Value to order the results by
Optional
limit Limit integer
The maximum number of results to return
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
generated_photos-generate-faces
Version
0.0.2
App
Generated Photos
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes