Download the PHP package xmon-org/ai-content-bundle without Composer
On this page you can find all versions of the php package xmon-org/ai-content-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download xmon-org/ai-content-bundle
More information about xmon-org/ai-content-bundle
Files in xmon-org/ai-content-bundle
Package ai-content-bundle
Short Description Symfony bundle for AI content generation (text and images) with provider fallback
License MIT
Informations about the package ai-content-bundle
xmon-org/ai-content-bundle
Symfony 7 bundle for AI-powered content generation. Access multiple LLMs and image models through a single, consistent API powered by Pollinations.ai.
Why Pollinations?
This bundle uses Pollinations.ai as its AI gateway, providing:
- Unified API - One integration for Claude, GPT, Gemini, Mistral, DeepSeek, and more
- No vendor lock-in - Switch models with a config change, no code modifications
- Generous free tier - Start generating content without API keys
- Transparent pricing - Pay only for what you use with premium models
- Open ecosystem - Built on open-source principles
Features
- Text generation with multiple models (Claude, Gemini, GPT, Mistral, DeepSeek)
- Image generation with multiple models (GPTImage, Flux, Seedream, Turbo)
- Image subject generator - Two-step anchor extraction for unique, differentiated images
- Task Types - Configure different models for different tasks (content, prompts, images)
- Cost tracking - See estimated costs per model (pricing reference)
- Style presets for consistent image generation
- Configurable prompt templates with intelligent variant selection
- Automatic fallback between models when one fails
- SonataMedia integration (optional)
- Sonata Admin integration with image regeneration UI (optional)
Requirements
- PHP >= 8.2
- Symfony >= 7.0
- symfony/http-client
Optional Dependencies
For full functionality, consider these additional bundles:
| Package | Version | Purpose |
|---|---|---|
| sonata-project/admin-bundle | ^4.0 | Admin panel with image regeneration UI |
| sonata-project/media-bundle | ^4.0 | Media storage for generated images |
Quick Start
1. Installation
2. Configuration
The bundle works out of the box with zero configuration using free-tier models:
Default models (no API key required):
- Text:
mistral→nova-micro→gemini-fast→openai-fast - Image:
flux→zimage→turbo
For custom configuration:
Tip: Get a free API key at enter.pollinations.ai to unlock premium models like
claude,gemini, andgptimage.
3. Generate Text
4. Generate Image
5. Override Options Per-Request
Documentation
Installation & Setup
- Installation Guide - Full setup instructions
Guides
- Task Types - Configure models per task
- Text Generation - Generate text with AI
- Image Generation - Generate images with AI
- Image Subject Generator - Two-step anchor extraction
- Prompt Templates - Configurable prompts with variants
- Admin Integration - Sonata Admin integration
Reference
- Configuration - Full YAML reference
- Providers - Available AI models and costs
- Fallback System - How automatic fallback works
- Architecture - Bundle structure
Development
- Development Guide - Local setup and commands
Available Models
Query current models and pricing directly from the API:
API Documentation: enter.pollinations.ai/api/docs
Text Models
Prices updated: 2025-12-27 | These are approximate estimates for reference only. For current pricing, query the endpoints above.
| Model | Tier | ~Resp/$ | Description |
|---|---|---|---|
openai-fast |
anonymous | ~2,270 | GPT-5 Nano - Ultra fast |
openai |
anonymous | ~1,660 | GPT-5 Mini - Balanced |
gemini-fast |
seed | ~2,500 | Gemini 2.5 Flash - Fast & cheap |
gemini |
seed | ~330 | Gemini 3 Flash - Pro-grade |
gemini-search |
seed | ~330 | Gemini 3 Flash with Search |
deepseek |
seed | ~595 | DeepSeek V3.2 - Reasoning |
mistral |
seed | ~2,850 | Mistral Small 3.2 - Efficient |
claude |
flower | ~65 | Claude Sonnet 4.5 - Premium |
Image Models
Prices updated: 2025-12-27 | These are approximate estimates for reference only. For current pricing, query the endpoints above.
| Model | Tier | ~Img/$ | Description |
|---|---|---|---|
flux |
anonymous | ~8,333 | Fast & high quality |
turbo |
anonymous | ~3,333 | Ultra-fast previews |
nanobanana |
seed | ~33,333 | Gemini-based, reference images |
gptimage |
flower | ~125,000 | OpenAI, best prompt understanding |
seedream |
flower | ~33 | ByteDance ARK, complex scenes |
Access Tiers
| Tier | Requirements | Access |
|---|---|---|
anonymous |
None | openai, openai-fast, flux, turbo |
seed |
Free API key from enter.pollinations.ai | + gemini*, deepseek, mistral, nanobanana |
flower |
Pollen credits | All models including claude, gptimage, seedream |
Debug Command
Displays current configuration including:
- Provider Status - Pollinations API connectivity for text and image generation
- Task Models - Default model, cost estimate, and allowed models per task type
- Styles, Compositions, Palettes - Available image options
- Presets - Pre-configured style combinations
- Prompt Templates - Configured templates for AI prompts
Acknowledgments
This bundle is built on top of Pollinations.ai, an open-source platform that provides unified access to state-of-the-art AI models. Their commitment to open AI and developer-friendly APIs makes projects like this possible.
- Website: pollinations.ai
- API Docs: enter.pollinations.ai/api/docs
- GitHub: github.com/pollinations
License
MIT
All versions of ai-content-bundle with dependencies
symfony/framework-bundle Version ^7.0
symfony/http-client Version ^7.0
psr/log Version ^3.0