# Describe Image — astica.ai

> Analyze an image with Astica AI See the documentation

- Key: `astica_ai-describe-image`
- Type: Action (Read-only)
- Version: 0.0.2
- App: astica.ai (`astica_ai`) — https://pipedream.com/apps/astica-ai.md
- This page (HTML): https://pipedream.com/apps/astica-ai/actions/describe-image
- Hints: read-only · open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/astica_ai/actions/describe-image/describe-image.mjs

## Description

Analyze an image with Astica AI [See the documentation](https://astica.ai/vision/documentation/)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `image` | `string` | Yes | The URL of the image to analyze |
| `describe` | `boolean` | No | Returns a caption which describes the image. |
| `gpt` | `boolean` | No | Uses the result of asticaVision to create a GPT description. Using this parameter increases the processing time of your API request. Be Patient. |
| `gpt_detailed` | `boolean` | No | Uses the result of asticaVision to create a GPT-4 description. Using this parameter greatly increases the processing time of your API request. Please be patient. |
| `faces` | `boolean` | No | Returns the age and gender of all faces detected in the image. |
| `moderate` | `boolean` | No | Returns a calculated value for different types of sensitive materials found in the image. |
| `tags` | `boolean` | No | Returns a list of descriptive terms which describe the image. |
| `brands` | `boolean` | No | Returns a list of brands that have been identified. For example, a logo on a cup, or a t-shirt. |
| `celebrities` | `boolean` | No | Returns a list of celebrities and other known persons that have been detected in the photo. |
| `landmarks` | `boolean` | No | Returns a list of known locations and landmarks found in the photo. For example, the Eiffel Tower. |

## Run it

**MCP**

```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": "astica_ai",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "astica_ai-describe-image",
  arguments: {
    image: "Image",
    describe: true,
  },
})
```

**TypeScript**

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

console.log(result)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "astica_ai-describe-image",
    "configured_props": {
      "astica_ai": { "authProvisionId": "apn_xxxxxxx" },
      "image": "Image",
      "describe": true
    }
  }'
```

---

- App: https://pipedream.com/apps/astica-ai.md · All apps: https://pipedream.com/apps
