# APIpie AI

APIpie.ai is an AI super aggregator providing a unified API to access a vast array of AI models from leading providers, enabling cost-effective and latency-optimized solutions.

- **Category:** ai models
- **Auth:** API_KEY
- **Tools:** 14
- **Triggers:** 0
- **Slug:** `APIPIE_AI`
- **Version:** 20260217_00

## Tools

### Anonymize Sensitive Text

**Slug:** `APIPIE_AI_ANONYMIZE_TEXT`

Anonymize sensitive entities (PII) in text for data privacy and compliance. Use this tool to detect and replace personally identifiable information like names, phone numbers, locations, and other sensitive data with truncated SHA-256 hashes. Returns both the anonymized text and mappings showing what was replaced.

### Create Vector Collection

**Slug:** `APIPIE_AI_CREATE_VECTOR_COLLECTION`

Create a new vector collection (Pinecone-style index and namespace combined) in APIpie. Use this when you need to set up a new vector database for storing embeddings with a specific dimension. The dimension must match the embedding model you'll use (e.g., 1536 for OpenAI text-embedding-ada-002).

### Delete state

**Slug:** `APIPIE_AI_DELETE_STATE`

Tool to delete state settings from APIpie. Without query parameter deletes app-level state; with query parameter deletes specific user state. Use after configuring state to remove unwanted state records or reset configuration.

### Delete Vectors

**Slug:** `APIPIE_AI_DELETE_VECTORS`

Delete vectors from a vector collection in APIpie. Use this tool to: - Delete ALL vectors in a collection: set delete_all=True (requires credits) - Delete specific vectors: set delete_all=False and provide a list of vector IDs Note: Deleting by metadata filter is not currently supported - you must specify vector IDs.

### Fetch model restrictions

**Slug:** `APIPIE_AI_FETCH_MODEL_RESTRICTIONS`

Retrieve country restrictions for AI model providers on APIPie. Use this tool to check which countries have restrictions for specific model providers (e.g., OpenAI, Anthropic) before selecting a model for deployment. This is useful for compliance and ensuring model availability in target regions.

### Get Detailed Models

**Slug:** `APIPIE_AI_GET_DETAILED_MODELS`

Fetch detailed information about available AI models including pricing, capabilities, and specifications. Use when you need comprehensive model data with pricing rates, token limits, modality support, and benchmark scores.

### Get query history

**Slug:** `APIPIE_AI_GET_QUERY_HISTORY`

Tool to retrieve historic API usage logs including latency, token counts, costs, and source IP. Use after authenticating to analyze past queries for cost management, performance monitoring, or auditing.

### Get state

**Slug:** `APIPIE_AI_GET_STATE`

Tool to retrieve current state settings including user preferences, memory configuration, and routing settings. Use when you need to check or audit the current configuration for an app or specific user.

### List AI Models

**Slug:** `APIPIE_AI_LIST_MODELS`

Fetch a list of available AI models from APIPie. Use this tool when you need: - Up-to-date model listings with filtering by type, subtype, or provider - Voice model listings (set voices=true) - Country restriction information (set restrictions=true) Returns models with pricing, latency, availability, and capability information.

### List Vector Collections

**Slug:** `APIPIE_AI_LIST_VECTOR_COLLECTIONS`

Tool to retrieve a list of all vector collections under your account. Use when you need to view available collections before performing vector operations like querying, upserting, or deleting vectors.

### Parse Document

**Slug:** `APIPIE_AI_PARSE_DOCUMENT`

Tool to parse document content and metadata using Apache Tika. Extract text and metadata from various document formats (PDF, DOCX, TXT, etc.). Use when you need to extract readable text or metadata from uploaded documents.

### Transcribe audio to text

**Slug:** `APIPIE_AI_TRANSCRIBE_AUDIO`

Tool to transcribe audio files to text using AI speech-to-text models like Whisper. Use when you need to convert spoken audio into written text. Supports multiple models and output formats.

### Update State Settings

**Slug:** `APIPIE_AI_UPDATE_STATE`

Tool to create or update state settings in APIpie, including configurations, deletions, and feature toggling at app or user levels. Use when you need to manage persistent state for AI completions, memory, routing, or other APIpie features.

### Upload File

**Slug:** `APIPIE_AI_UPLOAD_FILE`

Upload a file to APIPie and retrieve a temporary URL. Use when you need to upload an image file and get a shareable URL. Supports image formats (.png, .jpg, .jpeg, .svg, .gif, .bmp, .tif, .tiff, .webp) with a maximum size limit of 5MB.
