---
title: "Deploy Magika"
description: "An AI powered file type detection tool"
category: "AI/ML"
url: https://railway.com/deploy/nnnGdy
---

# Deploy Magika

An AI powered file type detection tool

**[Deploy Magika on Railway](https://railway.com/template/nnnGdy)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/nnnGdy/manifest.json

- **Creator:** nxfi's Projects
- **Category:** AI/ML
- **Total deploys:** 3

## Template content

### magika

- **Image:** ghcr.io/nxfi777/magika-railway:latest
- **Health check:** /health
- **Public domain:** Yes

## Documentation

## Instructions

1. Deploy and copy the endpoint URL.
2. Add a `Bearer Token` header with the generated `AUTH_TOKEN` service variable
3. `POST` either:
- A file as raw bytes to the `/identify_bytes` slug
- A URL to the `/identify_from_url` slug with format:

```json
{"url":"file url here"}
```

### Additional Information

- It is recommended to only rely on the `ct_label` value for the file type. More information [here](https://github.com/google/magika/blob/main/docs/faq.md)

- Add a custom domain routed through Cloudflare

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/nnnGdy
