Search millions of high-quality, royalty-free stock photos, videos, images, and vectors from one convenient interface. Includes popular online media services: Unsplash, Pexels, Giphy, and Pixabay as well as OpenAI image generation from prompt. Try it here.
You can use Cosmic Media to search and download media manually, or you can install it in your Cosmic project as an extension to save media directly in your project.
- Log in to Cosmic.
- Go to Project > Extensions.
- Find this extension and click "Install".
The deployed app uses default API keys for Unsplash, Giphy, Pexels, Pixaby, and OpenAI. If you run into API rate-limit issues, you can update these to your own keys:
unsplash_key
Register for a key here.pexels_key
Register for a key here.pixabay_key
Register for a key hereopenai_key
Register for a key heregiphy_key
Register for a key here
Keys can be provided to the app in one of the following ways:
- As query params in the URL. For example:
?unsplash_key=YOUR_UNSPLASH_KEY&pexels_key=YOUR_PEXELS_KEY
- Using the
.env
file. See the.env.example
file for env var format. - If installed in Cosmic as an extension, go to Cosmic Media extension settings page by going to Extensions > Cosmic Media > Settings, find the Query Parameters section and update the following query params to your own keys:
git clone https://github.com/cosmicjs/cosmic-media-extension
cd cosmic-media-extension
yarn
yarn dev
- shadcn/ui
- Next.js 13 App Directory
- Radix UI Primitives
- Tailwind CSS
- Icons from Lucide
- Dark mode with
next-themes
- Tailwind CSS class sorting, merging and linting.
Licensed under the MIT license.