# All-Images.ai — Pipedream Connect

> Take advantage of unique, original, exclusive, personalized and royalty-free visuals for all your projects.

- API slug: `all_images_ai` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Artificial Intelligence (AI)
- Website: https://all-images.ai/
- This page (HTML): https://pipedream.com/apps/all-images-ai
- Tools: 5 actions · 1 trigger

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: all_images_ai`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "all_images_ai",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Buy Image:
const result = await mcp.callTool({
  name: "all_images_ai-buy-image",
  arguments: {
    imageId: "Image Id",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a All-Images.ai endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.all-images.ai/v1/credit

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYWxsLWltYWdlcy5haS92MS9jcmVkaXQ?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
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: "all_images_ai-buy-image",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    all_images_ai: { authProvisionId: "apn_xxxxxxx" },
    imageId: "Image Id",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (5)

### `all_images_ai-buy-image` — Buy Image (Write)

Allows user to purchase an image and receive a direct public link. User must have sufficient credit balance. See the documentation

Full schema: https://pipedream.com/apps/all-images-ai/actions/buy-image.md

### `all_images_ai-generate-images-advanced` — Generate Advanced Customized Images (Write)

Generates advanced customized images using a prompt from the user. See the documentation

Full schema: https://pipedream.com/apps/all-images-ai/actions/generate-images-advanced.md

### `all_images_ai-get-image-generation` — Get Image Generation (Read-only)

Retrieves a previously generated image using its unique ID. See the documentation

Full schema: https://pipedream.com/apps/all-images-ai/actions/get-image-generation.md

### `all_images_ai-list-image-generation-id-options` — List Image Generation Id Options (Read-only)

Retrieves available options for the Image Generation Id field.

Full schema: https://pipedream.com/apps/all-images-ai/actions/list-image-generation-id-options.md

### `all_images_ai-list-image-id-options` — List Image Id Options (Read-only)

Retrieves available options for the Image Id field.

Full schema: https://pipedream.com/apps/all-images-ai/actions/list-image-id-options.md

## Triggers (1)

### `all_images_ai-new-generation-image-update-instant` — New Generation Image Update (Instant) (Instant)

Emit new event when the generation status of an image gets updated.

Full schema: https://pipedream.com/apps/all-images-ai/triggers/new-generation-image-update-instant.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
