← Back to AI Slopy

AI Slopy API

Access AI-generated images and videos programmatically. Giphy-compatible response format for easy integration.

Getting Started

1. Create an account on AI Slopy

2. Go to your profile menu → API Keys

3. Generate a new API key

4. Include api_key as a query parameter in all requests

Base URL

https://aislopy.fun/v1

Rate Limits

1,000 requests per day per API key. Rate limit resets daily at UTC midnight.

Endpoints

GET /v1/search

Search AI-generated content by keyword.

ParamTypeRequiredDescription
api_keystringYesYour API key
qstringYesSearch query
limitintNoResults per page (default 25, max 50)
offsetintNoPagination offset (default 0)
formatstringNoFilter by format: image or video
GET /v1/trending

Get trending AI-generated content.

ParamTypeRequiredDescription
api_keystringYesYour API key
limitintNoResults per page (default 25, max 50)
offsetintNoPagination offset
formatstringNoFilter by format
GET /v1/random

Get random AI-generated content.

ParamTypeRequiredDescription
api_keystringYesYour API key
formatstringNoFilter by format
tagstringNoFilter by tag
GET /v1/content/{id}

Get a single content item by ID.

ParamTypeRequiredDescription
api_keystringYesYour API key

Response Format

All responses follow a Giphy-compatible format:

{
  "data": [
    {
      "id": "123",
      "title": "AI-generated landscape",
      "url": "https://aislopy.fun/content/123",
      "images": {
        "original": {
          "url": "https://aislopy.fun/uploads/abc.png",
          "width": 1024,
          "height": 1024
        },
        "preview": {
          "url": "https://aislopy.fun/uploads/abc_thumb.png"
        }
      },
      "format": "image"
    }
  ],
  "pagination": {
    "total_count": 100,
    "count": 25,
    "offset": 0
  },
  "meta": {
    "status": 200,
    "msg": "OK"
  }
}

Error Responses

// 401 - Invalid API key
{ "meta": { "status": 401, "msg": "Invalid API key" } }

// 429 - Rate limit exceeded
{ "meta": { "status": 429, "msg": "Rate limit exceeded" } }

// 400 - Bad request
{ "meta": { "status": 400, "msg": "Missing required parameter: q" } }