V2 Cloud AI

Platform-hosted AI inference inside your generated apps — chat, images, and embeddings.

V2 Cloud AI lets your published app call AI models through OpenV2's infrastructure — billed to the project owner, no separate OpenRouter API key required in the app.

Capabilities

APIPurpose
ChatConversational AI inside your app
ImageGenerate images from prompts
EmbeddingsVector embeddings for search / RAG

Default models

TaskDefault model
ChatGemini 2.5 Flash Lite
ImageFLUX.2 Klein 4B

Models are configured platform-side and may change for cost or quality.

Billing & balance

  • Monthly free USD allowance per account
  • Additional usage draws from a funded balance
  • Top up via Stripe (ai_topup checkout) from Settings → Billing or the V2 Cloud AI dashboard

The AI section in V2 Cloud shows:

  • Chat / image / embedding call counts
  • Estimated USD cost
  • Current balance and rate limits
  • Recent events

Integration patterns

Call V2 Cloud AI from server hooks so API routing and billing stay server-side:

Client helper (development)

Generated apps include ~/lib/v2ai.ts:

Direct client calls work in preview but hooks are preferred for production.

RAG with embeddings

Use embeddings + cosine similarity in app code for semantic search — no separate vector database required for basic RAG patterns.