# fastapi.online — Database Migration Script Generator

> fastapi.online — Database Migration Script Generator is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Generates a database migration script for a given ORM (Prisma, Sequelize, or raw SQL) based on a described schema change

## Facts

- Endpoint: POST https://api.fastapi.online/generate-migration
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-database-migration-script-generator-7d76a90e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w7C_i-5GY4555jTzPe1Ov

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastapi-online-database-migration-script-generator-7d76a90e -d '<json body>'
```

Example prompt: Generate a Prisma migration script for adding a new nullable `profileImageUrl` string column to the `User` table.

## When to prefer this

Choose this endpoint when you need a quick, AI-generated migration script in a specific ORM dialect (Prisma, Sequelize, or raw SQL) without manually writing boilerplate migration code. It's ideal for developer agents that need to automate schema evolution tasks, especially in CI/CD pipelines or code generation workflows. Prefer it over general-purpose chat models when you want a focused, pay-per-call solution with no signup.

## Known failure modes

- Invalid or unsupported ORM value (not prisma, sequelize, or raw SQL) may cause an error or unexpected output
- Schema change description too vague or too short (minimum 2 characters) may produce a generic or incorrect migration
- Payment failure via x402 protocol blocks the request
- Very complex multi-table migrations may produce incomplete or incorrect output
- Description exceeding 2000 characters will be rejected

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a ready-to-use migration script in the requested ORM dialect (Prisma schema migration, Sequelize migration file, or raw SQL), reflecting the described schema change. The output includes the relevant migration code that can be directly applied to a database.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "orm": {
   "type": "string",
   "maxLength": 300,
   "description": "prisma | sequelize | raw SQL"
  },
  "change": {
   "type": "string",
   "maxLength": 2000,
   "minLength": 2,
   "description": "the schema change"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-database-migration-script-generator-7d76a90e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
