AI Integration with OpenRouter
Add AI chat, text generation, and image creation to your ShipAhead app with OpenRouter. Learn how to configure API keys and use the shared AI service.
Tools
- OpenRouter – Access multiple AI models for chat, text, and images.
Setup
- Sign up at OpenRouter.
- Create an API Key in Account → API Keys.
- Add the environment variable:
OPENROUTER_API_KEY="your-openrouter-api-key" - Select your default model in the config:
shared/config.ts
ai: { model: 'openai/gpt-4o', // You can switch to any model from openrouter.ai/models },
Usage
ShipAhead includes ready-to-use AI pages so you don’t have to code:
- AI Chat –
/app/pages/ai/chat.vue
A ready made chat interface powered by your configured AI model. - AI Text Generator –
/app/pages/ai/text.vue
Enter text, generate output, and see results instantly. The API prompt and user input are combined in one request. - AI Image Generator –
/app/pages/ai/image.vue
Generate images from prompts using supported models.
Admin Panel
Configure the ShipAhead admin dashboard to manage users, revenue, and subscriptions. Learn how to set up admin access and monitor your SaaS business.
Customization
Customize your ShipAhead app with your own logo, favicon, colors, fonts, and Nuxt UI theme. Follow the guide to match your SaaS interface to your brand.