Core Endpoints (Alpha)

GET /gpu/list

List all available GPUs from Trainava or the marketplace.

POST /gpu/rent

Rent a GPU.

Body:

jsonSalinEdit{
  "gpu_id": "abc123",
  "duration_minutes": 60
}

POST /model/train

Start a training job.

Body:

jsonSalinEdit{
  "gpu_id": "abc123",
  "pipeline": "image_generation",
  "prompt": "A futuristic city in the sky"
}

POST /telegram/deploy

Deploy a model as a Telegram bot.

Body:

jsonSalinEdit{
  "bot_name": "SkyBot",
  "model_id": "xyz456",
  "telegram_token": "123456:ABC-DEF..."
}

GET /wallet/balance?wallet=0xABC...

Returns $TRNV token balance for the connected wallet.


Monetization: How to Earn with Trainava

Trainava offers multiple ways to generate revenue:

  1. Sell GPU Time: Add your GPU to the rental marketplace and set your own rates.

  2. Rent to Train: Train models with rented GPUs at lower cost, then monetize bots.

  3. Deploy Telegram Bots: Build AI bots, then rent access or sell custom instances.

  4. Earn $TRNV : Receive TRNV tokens for completing actions (e.g., renting, deploying).

  5. Template Marketplace (Coming Soon): Sell reusable AI training templates.


Database Tables Reference (Supabase)

  • user_profiles – email, avatar, TRNV balance

  • user_gpus – GPU metadata and owner

  • gpu_rentals – rental sessions and timestamps

  • ai_training_jobs – job logs and model types

  • user_deployed_bots – Telegram bot records


SDK Development Roadmap

Feature
Status

TypeScript SDK

✅ Alpha done

Python SDK

🛠️ In progress

Golang SDK

❌ Not started

CLI Tool (trainava-cli)

❌ Not started

Web3 Signature Support

🛠️ In progress

OAuth / JWT Flow Docs

✅ Draft ready

AI Template Marketplace

🛠️ Backend WIP


Developer Access (Beta)

To request access to the Trainava SDK Beta, contact:


Sample Projects (Coming Soon)

  • bot-deploy-demo/ – How to launch a Telegram bot in 2 mins

  • gpu-rental-dashboard/ – Monitor your rented GPUs

  • custom-pipeline-runner/ – Launch any pipeline with dynamic prompts

Last updated