API Documentation

Every request needs your API key in the x-api-key header. One key works on all endpoints. Daily limits depend on your plan (Free 100 · Pro 5,000 · Unlimited 100,000).

List models

curl https://rahad-api-marketplace-production.up.railway.app/v1/models \
  -H "x-api-key: rk-YOUR_KEY"

Chat

POST /v1/chat?backend=pollinations|worm|kimi — body: {"message": "..."}

curl -X POST "https://rahad-api-marketplace-production.up.railway.app/v1/chat?backend=kimi" \
  -H "x-api-key: rk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message": "Hello! Who are you?"}'

Image generation

POST /v1/image?backend=pollinations|grok — body: {"prompt": "..."}

curl -X POST "https://rahad-api-marketplace-production.up.railway.app/v1/image?backend=grok" \
  -H "x-api-key: rk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "a cat astronaut, cinematic"}'

Photo enhance

curl -X POST https://rahad-api-marketplace-production.up.railway.app/v1/enhance \
  -H "x-api-key: rk-YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://example.com/photo.jpg"}'

Video downloader

curl "https://rahad-api-marketplace-production.up.railway.app/v1/download?url=https://www.tiktok.com/@user/video/123" \
  -H "x-api-key: rk-YOUR_KEY"

Errors

CodeMeaning
401Missing, invalid, or deactivated API key
429Daily plan limit reached — upgrade to continue
502 / 503An upstream backend is down or not configured

Getting a key

Create a free account and your key is generated instantly — 100 requests/day across every API. Paid plans (Pro ৳499/mo · Unlimited ৳1,499/mo) are bought from the dashboard with bKash and activate after admin approval. Keep your key secret — anyone with it can spend your daily limit.

Create free account