# Giphy

```json
{
  "name": "Giphy",
  "slug": "giphy",
  "url": "https://composio.dev/toolkits/giphy",
  "markdown_url": "https://composio.dev/toolkits/giphy.md",
  "logo_url": "https://giphy.com/static/img/giphy_logo_square_social.png",
  "categories": [
    "entertainment & media"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-05-12T10:12:59.307Z"
}
```

![Giphy logo](https://giphy.com/static/img/giphy_logo_square_social.png)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Giphy MCP or direct API to search trending GIFs, fetch stickers, share animated content, and power conversational media—using simple natural language.

## Summary

Giphy is the largest online library for searching and sharing GIFs and stickers. Instantly add vibrant animated content to your apps, chats, and workflows.

## Categories

- entertainment & media

## Toolkit Details

- Tools: 23

## Images

- Logo: https://giphy.com/static/img/giphy_logo_square_social.png

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for Giphy.
  - Setup:
    - Configure Api Key credentials for Giphy.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Find trending cat GIFs for today
- Get sticker variations for smile emoji
- List GIFs in the 'reactions' category
- Fetch metadata for GIF by ID

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `GIPHY_ACTION_REGISTER` | Giphy Analytics Register | Tool to register user interactions (view, click, send) with a GIF for analytics. Use when you have the analytics payload, timestamp, and user ID to record the event. |
| `GIPHY_CATEGORIES` | GIPHY Categories | Tool to fetch a list of GIF categories on GIPHY. Use when you need to browse available categories before selecting one. |
| `GIPHY_CATEGORY_BY_ID` | GIPHY: Get Category by ID | Tool to fetch metadata for a GIF category by its unique ID. Use when you need details for a specific category identifier. |
| `GIPHY_CATEGORY_GIFS` | GIPHY: Category GIFs | Tool to fetch GIFs associated with a specific GIF category. Use after retrieving category_id from the categories endpoint to get curated GIFs. |
| `GIPHY_EMOJI` | GIPHY Emoji | Tool to fetch GIPHY emoji GIF objects. Use when you need a paginated list of GIPHY emojis. |
| `GIPHY_EMOJI_VARIATIONS` | Emoji Variations | Tool to fetch variations for a specific emoji. Use when you have an emoji's GIF ID and want its variations. |
| `GIPHY_GET_CONTENT_BY_ID` | Get Content by ID | Tool to fetch content metadata by its unique ID. Generalizes the Get GIF by ID endpoint for all content types (GIFs, Stickers, and Clips). |
| `GIPHY_GET_CONTENT_BY_IDS` | Get Content by IDs | Tool to fetch metadata for multiple pieces of content (GIFs, Stickers, or Clips) by their IDs. Use when you need information on up to 100 known content IDs across any GIPHY content type. |
| `GIPHY_GET_RANDOM_ID` | Giphy Get Random ID | Tool to generate a unique random ID from Giphy. Use when you need to create a unique identifier for a new user that can be used with other Giphy endpoints to personalize API responses. |
| `GIPHY_RANDOM_GIF` | Giphy Random GIF | Tool to fetch a random GIF from Giphy. Use when you need a single random GIF, optionally filtered by tag or rating. Example: 'Get a random cat GIF rated G.' |
| `GIPHY_RANDOM_STICKER` | Giphy Random Sticker | Tool to fetch a single random sticker. Use when you need a random sticker, optionally filtered by tag or rating. |
| `GIPHY_SEARCH_CHANNELS` | GIPHY: Search Channels | Tool to search for GIPHY channels by query term. Use when you need to find channels matching a specific topic or keyword. |
| `GIPHY_SEARCH_GIFS` | GIPHY: Search GIFs | Tool to search GIPHY's GIF library. Use when you need to find GIFs by keyword or phrase. |
| `GIPHY_SEARCH_STICKERS` | GIPHY: Search Stickers | Tool to search GIPHY's sticker library. Use when you need to find stickers by keyword or phrase. |
| `GIPHY_TAG_RANDOM` | GIPHY: Random Tag | Tool to fetch a single random tag from Giphy. Use when you need a random search term tag, optionally filtered by a query term. |
| `GIPHY_TAG_RELATED` | Get Related Tags | Tool to fetch tags related to a specified tag. Use when you want to find semantically related tags for improved search suggestion. |
| `GIPHY_TAG_SEARCH` | GIPHY: Tag Search | Tool to search GIPHY's tag library for autocomplete suggestions. Use when you need to generate tag suggestions for a user query. |
| `GIPHY_TAG_TRENDING` | GIPHY Trending Tags | Tool to fetch the most popular search terms (tags) on GIPHY. Use when you need trending tags for content discovery. |
| `GIPHY_TRANSLATE_GIF` | GIPHY Translate GIF | Tool to translate a term or phrase into a single GIF using GIPHY's special algorithm. Use when you need to convert words into the perfect GIF representation. |
| `GIPHY_TRANSLATE_STICKER` | GIPHY Translate Sticker | Tool to translate a term or phrase into a single sticker using GIPHY’s translation algorithm. Use after confirming the exact phrase to visualize as a sticker. |
| `GIPHY_TRENDING_GIFS` | GIPHY Trending GIFs | Tool to fetch trending GIFs from GIPHY. Use when you need the most relevant and engaging GIFs currently trending. |
| `GIPHY_TRENDING_STICKERS` | Get Trending Stickers | Tool to fetch trending stickers. Use when you need the most relevant and engaging sticker GIFs currently trending. |
| `GIPHY_UPLOAD_GIF` | Giphy Upload GIF | Tool to upload a GIF or video file to GIPHY. Use when you need to create a new GIPHY entry from a local file or public URL. Requires developer API key and supports optional metadata. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK
```python
pip install composio_openai
```

```typescript
npm install @composio/openai
```

#### Path 1, Step 2: Initialize Composio and Create Tool Router Session

Import and initialize Composio client, then create a Tool Router session
```python
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')
```

```typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
```

#### Path 1, Step 3: Execute Giphy Tools via Tool Router with Your Agent

Get tools from Tool Router session and execute Giphy actions with your Agent
```python
tools = session.tools
response = openai.responses.create(
  model='gpt-4.1',
  tools=tools,
  input=[{
    'role': 'user',
    'content': 'Find trending GIFs about happy birthday'
  }]
)
result = composio.provider.handle_tool_calls(
  response=response,
  user_id='your-user-id'
)
print(result)
```

```typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: 'Find trending GIFs about happy birthday'
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and Claude Agent SDK
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
```

#### Path 2, Step 2: Create Tool Router Session

Initialize the Composio client and create a Tool Router session
```python
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions

composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.url
```

```typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });

console.log("Creating Tool Router session...");
const { mcp } = await composio.create('your-user-id');
console.log(`Tool Router session created: ${mcp.url}`);
```

#### Path 2, Step 3: Connect to AI Agent

Use the MCP server with your AI agent
```python
import asyncio

options = ClaudeAgentOptions(
    permission_mode='bypassPermissions',
    mcp_servers={
        'tool_router': {
            'type': 'http',
            'url': url,
            'headers': {
                'x-api-key': 'your-composio-api-key'
            }
        }
    },
    system_prompt='You are a helpful assistant with access to Giphy tools.',
    max_turns=10
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query('Find trending cat GIFs for me')
        async for message in client.receive_response():
            if hasattr(message, 'content'):
                for block in message.content:
                    if hasattr(block, 'text'):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText, stepCountIs } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: mcp.url,
    headers: { 'x-api-key': 'your-composio-api-key' }
  }
});

const tools = await client.tools();

const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{ role: 'user', content: 'Find trending cat GIFs for me' }],
  stopWhen: stepCountIs( 5 )
});

console.log(`Agent: ${text}`);
```

## Why Use Composio?

### 1. AI Native Giphy Integration

- Supports both Giphy MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for searching GIFs, trending content, and stickers

### 2. Managed Auth

- Built-in API key management and secure credential storage
- Central place to manage and revoke Giphy API keys
- Per user and per environment keys—no more hard-coded secrets

### 3. Agent Optimized Design

- Tools tuned for GIF search, trending, and sticker endpoints
- Comprehensive logs so you know which GIFs your agents fetch

### 4. Enterprise Grade Security

- Fine-grained RBAC to control which agents and users can access Giphy
- Scoped, least privilege access to search and content features
- Full audit trail of all agent GIF and sticker activity

## Use Giphy with any AI Agent Framework

Choose a framework you want to connect Giphy with:

- [OpenAI Agents SDK](https://composio.dev/toolkits/giphy/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/giphy/framework/claude-agents-sdk)
- [Claude Code](https://composio.dev/toolkits/giphy/framework/claude-code)
- [Claude Cowork](https://composio.dev/toolkits/giphy/framework/claude-cowork)
- [Codex](https://composio.dev/toolkits/giphy/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/giphy/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/giphy/framework/hermes-agent)
- [Google ADK](https://composio.dev/toolkits/giphy/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/giphy/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/giphy/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/giphy/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/giphy/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/giphy/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/giphy/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/giphy/framework/autogen)

## Related Toolkits

- [Youtube](https://composio.dev/toolkits/youtube) - YouTube is a leading video-sharing platform for uploading, streaming, and discovering content. It empowers creators and businesses to reach global audiences and monetize their work.
- [Amara](https://composio.dev/toolkits/amara) - Amara is a collaborative platform for creating and managing subtitles and captions for videos. It helps make content accessible and multilingual for global audiences.
- [Cats](https://composio.dev/toolkits/cats) - Cats is an API with a huge library of cat images, breed data, and cat facts. It makes finding adorable cat photos and trivia effortless for your apps and users.
- [Chatfai](https://composio.dev/toolkits/chatfai) - Chatfai is an AI platform that lets users talk to AI versions of fictional characters from books, movies, and games. It offers an engaging, interactive experience for fans to chat, roleplay, and explore creative dialogues.
- [Cincopa](https://composio.dev/toolkits/cincopa) - Cincopa is a multimedia platform for uploading, managing, and customizing videos, images, and audio. It helps you deliver engaging media experiences with robust APIs and flexible integrations.
- [Dungeon fighter online](https://composio.dev/toolkits/dungeon_fighter_online) - Dungeon Fighter Online (DFO) is an arcade-style, side-scrolling action RPG packed with dynamic combat and progression. Play solo or with friends to battle monsters, complete quests, and upgrade your characters.
- [Elevenlabs](https://composio.dev/toolkits/elevenlabs) - Elevenlabs is an advanced AI voice generation platform for lifelike, multilingual speech synthesis. Perfect for creating natural voices for videos, apps, and business content in seconds.
- [Elevenreader](https://composio.dev/toolkits/elevenreader) - Elevenreader is an AI-powered text-to-speech service by ElevenLabs that converts written content into lifelike audio. It enables fast, natural audio generation from any text.
- [Epic games](https://composio.dev/toolkits/epic_games) - Epic Games is a leading video game publisher and digital storefront, known for Fortnite and Unreal Engine. It lets gamers access, manage, and purchase games all in one place.
- [Fal.ai](https://composio.dev/toolkits/fal_ai) - Fal.ai is a generative media platform offering 600+ AI models for images, video, voice, and audio. Developers use Fal.ai for fast, scalable access to cutting-edge generative AI tools.
- [Headout](https://composio.dev/toolkits/headout) - Headout is a global platform for booking travel experiences, tours, and entertainment. It helps users discover and secure activities at top destinations, all in one place.
- [Imagekit io](https://composio.dev/toolkits/imagekit_io) - ImageKit.io is a cloud-based media management platform for image and video delivery. Instantly optimize, transform, and deliver visuals globally via a lightning-fast CDN.
- [Listennotes](https://composio.dev/toolkits/listennotes) - Listennotes is a powerful podcast search engine with a massive global database. Discover, search, and curate podcasts from around the world in seconds.
- [News api](https://composio.dev/toolkits/news_api) - News api is a REST API for searching and retrieving live news articles from across the web. Instantly access headlines, coverage, and breaking stories from thousands of sources.
- [RAWG Video Games Database](https://composio.dev/toolkits/rawg_video_games_database) - RAWG Video Games Database is the largest video game discovery and info service. Instantly access comprehensive details, ratings, and release dates for thousands of games.
- [Seat geek](https://composio.dev/toolkits/seat_geek) - SeatGeek is a live event platform offering APIs for concerts, sports, and theater data. Instantly access events, venues, and performers info for smarter ticketing and discovery.
- [Shotstack](https://composio.dev/toolkits/shotstack) - Shotstack is a cloud platform for programmatically generating videos, images, and audio. Automate creative content production at scale with flexible RESTful APIs.
- [Spotify](https://composio.dev/toolkits/spotify) - Spotify is a streaming service for music and podcasts with millions of tracks from artists worldwide. Enjoy personalized playlists, recommendations, and seamless listening across all your devices.
- [Ticketmaster](https://composio.dev/toolkits/ticketmaster) - Ticketmaster is a global platform for event discovery, ticket sales, and live entertainment management. Get real-time access to events and streamline ticketing for fans and organizers.
- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.

## Frequently Asked Questions

### Do I need my own developer credentials to use Giphy with Composio?

Yes, Giphy requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
