Skip to content

API Reference ​

📝 TODO — this English page is a skeleton. The structure mirrors the Chinese page, which is fully written.

ModelFold's HTTP API is split in two:

GroupPrefixAuthPurpose
Model gateway/v1API keyImage, video and chat models
Console API/apiSession token (JWT)Auth, account, keys, wallet, mail
text
https://ai.modelfold.online          # current deployment
https://ai.modelfold.online     # production domain (once live)

Model gateway /v1 ​

MethodPathDescription
GET/v1/modelsList available models
POST/v1/images/generationsImage generation and editing
POST/v1/videos/generationsVideo generation
POST/v1/chat/completionsChat completions (OpenAI-compatible)

See the Gateway reference.

Console API /api ​

GroupEndpointsReference
Authentication/api/auth/*Auth
Account/api/account/*Account
API keys/api/keysAPI keys
Wallet/api/wallet/*Wallet
Mail and email/api/mail/*, /api/email/*Mail
HealthGET /api/health—

Response envelope ​

Success:

json
{ "ok": true, "...": "endpoint specific" }

Failure:

json
{ "ok": false, "error": { "type": "insufficient_credits", "message": "..." } }

Rate limits ​

ScopeLimit
/v1 gateway60 requests per key per minute
Key creation30 per account per minute
Register / login30 per IP per 10 minutes
Password change30 per account per 10 minutes
Top-up10 per account per minute
Email flows10 per IP per 10 minutes
Test mail5 per account per 10 minutes

Health check ​

bash
curl https://ai.modelfold.online/api/health
json
{ "ok": true, "db": "up" }

ModelFold — one API for all the best AI models.