View as Markdown
APITemplate.io icon

APITemplate.io ACTION

Create an Image

Create a JPEG file(along with PNG) with JSON data and your template. See the docs for more information
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's APITemplate.io account once, then configure and run Create an Image 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: "apitemplate_io-create-image",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    apitemplate_io: { authProvisionId: "apn_xxxxxxx" },
    apiEndpoints: "API Endpoints",
    templateId: "Template Id",
  },
})

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.

Create an Image inputs
Property Type Description
apiEndpoints API Endpoints string
A regional API endpoint is intended for customers in the same region. The data for the request and generated PDFs/images are processed and stored within the region. see docs
Optional
templateId Template Id string
The ID of the template that you want to use.
Required Dynamic
overrides Overrides any

Array of objects with the property name and the replaced values on the template, as shown below:

[{"name": "text_name","text": "My Name"}, {"name": "text_quote","text": "Lorem ipsum dolor sit..."}]

Required
expiration Expiration integer
Expiration of the generated image in minutes(default to 0, store permanently).
Optional
meta Meta string
Specify an external reference ID for your own reference. It appears in the list-objects API.
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
apitemplate_io-create-image
Version
0.0.2
App
APITemplate.io
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes