# For agents and developers

> Markdown version of https://anibg.com/developers/ · Everything on the site: https://anibg.com/llms.txt

Every background can be found and linked by a program. No account, no key. The pictures are free for commercial use and may be hotlinked.

## A picture in one URL

Words in the address, a picture back. The answer is the image itself, not a redirect.

[/bg/classroom/night.jpg](https://anibg.com/bg/classroom/night.jpg)

[/bg/sunset-beach.jpg](https://anibg.com/bg/sunset-beach.jpg)

[/bg/shrine.jpg?w=1280](https://anibg.com/bg/shrine.jpg?w=1280)

- **Words**: `/bg/night-classroom.jpg` Searched, with / and - between words. Unknown words still give a picture: the closest match.
- **A place**: `/bg/shrine.jpg` The cover of that place, in daylight.
- **Times**: `/bg/classroom/sunset.jpg` day, sunset or night, anywhere among the words.
- **A scene**: `/bg/bg-014/sunset.jpg` That scene at that time.
- **Random**: `/bg/random.jpg` A different picture every time.
- **Width**: `?w=640` 640, 1280 or 1920 pixels wide. 640 and 1280 are WebP, 1920 is JPG and the default.
- **Seed**: `?seed=2` Another match for the same words. Any value; the same value gives the same picture.

HTML

```
<img src="https://anibg.com/bg/classroom/night.jpg" width="1920" height="1080" alt="Anime classroom at night">
```

For a link that must never change, use the permanent file named in the `content-location` header.

## Search

JSON over GET, open to any origin. Answers can be cached for five minutes.

- **GET**: `/api/v1/search?q=` Scenes matching words, place, time, tag, use or style.
- **GET**: `/api/v1/scenes/<id>` One scene with every time it comes in.
- **GET**: `/api/v1/places` The places with their cover and number of scenes; the times, tags, uses and styles.
- **GET**: `/api/v1/random` One scene picked at random. Takes the filters of search.
- **GET**: `/api/v1/license` The license as data.
- **GET**: `/api/v1/openapi.json` OpenAPI 3.1 description of all of the above.

Search takes `q`, `place`, `time`, `tag`, `use`, `style`, `limit` (1 to 50, default 10), `offset` and `lang`. A time or a place named in `q` filters the results, in English, Japanese or Chinese. With `lang=ja` or `lang=zh`, titles, summaries and place names come in that language and `page` links the translated page.

Request

```
https://anibg.com/api/v1/search?q=night+classroom
```

Response, shortened

```
{
  "query": {
    "q": "night classroom",
    "place": "classroom",
    "time": "night"
  },
  "total": 9,
  "offset": 0,
  "limit": 10,
  "results": [
    {
      "id": "bg-001",
      "title": "Window-side classroom",
      "place": "classroom",
      "times": ["day", "sunset", "night"],
      "page": "https://anibg.com/backgrounds/classroom/window-side-classroom/",
      "markdown": "https://anibg.com/backgrounds/classroom/window-side-classroom.md",
      "scene": "https://anibg.com/api/v1/scenes/bg-001",
      "image": {
        "time": "night",
        "url": "https://anibg.com/i/s/bg-001/night-1920.jpg",
        "width": 1920,
        "height": 1080,
        "format": "jpg",
        "alt": "Dark anime classroom at night, moonlit desks under tall windows with stars and lit apartment windows outside"
      },
      "images": [
        {
          "time": "day",
          "url": "https://anibg.com/i/s/bg-001/day-1920.jpg"
        },
        {
          "time": "sunset",
          "url": "https://anibg.com/i/s/bg-001/sunset-1920.jpg"
        },
        {
          "time": "night",
          "url": "https://anibg.com/i/s/bg-001/night-1920.jpg"
        }
      ]
    }
  ],
  "license": {
    "name": "AniBG License",
    "url": "https://anibg.com/license/",
    "commercial_use": true,
    "attribution_required": false
  }
}
```

A result carries the picture that answers in full under `image` and every time of the scene as a link under `images`. `scene` is the full record: all pictures with their descriptions and colours. Every field is described in [openapi.json](https://anibg.com/api/v1/openapi.json).

## MCP server

`https://anibg.com/mcp` — Streamable HTTP, no authentication, no session. Protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.

- **Tool**: `search_backgrounds` Search the library: q, place, time, tag, use, style, limit (1 to 20, default 5), offset, lang. Each result has the picture that answers, with its links.
- **Tool**: `get_scene` One scene by its code (id), with every time and its links. lang for Japanese or Chinese titles and pages.
- **Tool**: `list_places` The places, times, tags, uses and styles there are. Optional lang.
- **Tool**: `download_image` The picture itself as image content (id, time, size 640, 1280 or 1920), 1280 WebP unless asked otherwise, with its links.
- **Tool**: `studio_link` A Studio link to give a person who wants a picture the library doesn’t have: prompt, or scene with want (rain, snow, phone, 4k); time, aspect.

Claude Code

```
claude mcp add --transport http anibg https://anibg.com/mcp
```

Claude Code and VS Code, .mcp.json

```
{
  "mcpServers": {
    "anibg": {
      "type": "http",
      "url": "https://anibg.com/mcp"
    }
  }
}
```

Cursor, mcp.json

```
{
  "mcpServers": {
    "anibg": {
      "url": "https://anibg.com/mcp"
    }
  }
}
```

In chat apps that accept remote MCP servers, add a custom connector with the URL `https://anibg.com/mcp`.

Listed as `com.anibg/backgrounds` in the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers?search=com.anibg/backgrounds) and as a [connector on Glama](https://glama.ai/mcp/connectors/com.anibg/ani-bg).

## Markdown and llms.txt

Every page has a Markdown version at the same address ending in `.md`: [`/backgrounds/classroom.md`](https://anibg.com/backgrounds/classroom.md) for `/backgrounds/classroom/`, and [`/index.md`](https://anibg.com/index.md) for the home page. Japanese and Chinese pages have theirs in their language: [`/ja/backgrounds/classroom.md`](https://anibg.com/ja/backgrounds/classroom.md), [`/zh/index.md`](https://anibg.com/zh/index.md). A request with `Accept: text/markdown` gets it at the page’s own address.

Shell

```
curl -H "Accept: text/markdown" https://anibg.com/backgrounds/classroom/
```

[`/llms.txt`](https://anibg.com/llms.txt) says how to use the site and links every place. [`/llms-full.txt`](https://anibg.com/llms-full.txt) is the whole catalogue in one file, with direct links.

## License, for programs

The [license](https://anibg.com/license.md) as the API gives it, at [`/api/v1/license`](https://anibg.com/api/v1/license) and in every answer:

License

```
{
  "license": {
    "name": "AniBG License",
    "url": "https://anibg.com/license/",
    "commercial_use": true,
    "attribution_required": false,
    "modification": true,
    "redistribution_as_is": false,
    "ai_training_dataset": false,
    "ai_generated": true,
    "summary": "Free for personal and commercial projects, including games you sell and monetised streams. No attribution needed. Don't sell or give away the images on their own or as a pack, don't build a competing image library from them, and don't use them as a dataset to train image models. Every image is AI-generated."
  }
}
```

Every image response carries it in a header too:

Header

```
link: <https://anibg.com/license/>; rel="license"
```

## Limits

300 requests a minute per address on the API and the MCP server, 600 on `/bg/`. Past that the answer is `429`, with a `retry-after` header giving the seconds to wait. Hotlinking is allowed.

## New pictures

Agents can’t make new pictures. Each one costs money to generate, and the free previews are for people. Studio is where a person makes one, and a program can hand them a link with the request filled in.

### From words

Link

```
https://anibg.com/studio/?prompt=a+quiet+train+platform+in+the+countryside&time=sunset&aspect=16:9
```

Opens Studio with the words, the time and the shape set. Nothing is made until the person asks for it.

### From a library scene

Link

```
https://anibg.com/studio/?scene=bg-001&time=night&want=rain
```

`want` is `rain`, `snow`, `phone` or `4k`.

## Questions

**Do I need an API key?**

No. The API, the MCP server and the image links work without an account or a key.

**Can I hotlink the images?**

Yes. Put the links in your pages and apps as they are. A file under /i/ never changes what it shows.

**Can an AI agent use these in what it builds for a user?**

Yes. The license covers personal and commercial projects without credit, whoever puts the picture in. What it doesn’t allow is selling or giving away the images on their own.

**Is there an API for generating new backgrounds?**

No. Each new picture costs money to make, so generating is only in Studio, for people. An agent can give its user a Studio link with the request filled in.
