Dagpi API

Beginner's Pick Photography / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Dagpi is a free image manipulation API that applies filters, effects, and fun transformations to images with a single HTTP request. You can add text, apply artistic filters, create memes, and more without any image-editing library on your server. It is popular with Discord bot developers for on-the-fly image creation.

Beginner Tip

Pass image URLs rather than uploading files—just point the API at any publicly accessible image. Check the docs for the full list of available effects since each endpoint applies a different transformation.

Available Data

image URLs in multiple sizes
photographer credit
image dimensions
download link
color data

Example Response

JSON Response
{
  "id": "Dwu85P9SOIk",
  "urls": {
    "full": "https://images.unsplash.com/photo-...",
    "regular": "https://images.unsplash.com/photo-...?w=1080",
    "thumb": "https://images.unsplash.com/photo-...?w=200"
  },
  "width": 4000,
  "height": 3000,
  "user": {
    "name": "John Doe",
    "username": "johndoe"
  }
}

Field Reference

Content-Type The response body is a raw image (image/png or image/gif) rather than JSON.
X-Ratelimit-Remaining Number of requests remaining in your current rate-limit window.
X-Process-Time Time taken to process and return the image, in seconds.

Implementation Example

Request
const url = "https://dagpi.xyz/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden The Authorization header is missing or the API key is incorrect.
Register at dagpi.xyz to get a key, then set the Authorization header to your key (no Bearer prefix needed).
415 Unsupported Media Type The image URL points to a non-image file or a page rather than a direct image.
Make sure the URL ends in .jpg, .png, or .gif and opens directly as an image in your browser.
429 Rate Limited The free tier allows a limited number of requests per minute.
Add a short delay between requests; the free limit resets quickly and most casual use stays well within it.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Photography
Difficulty Intermediate
Verified: 2026-04-04

Related Tags

Similar APIs

View All →