Documentation

    Documentation

    Documentation

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    Ring Platform Logo

    Завантаження документації...

    Підготовка контенту платформи Ring

    1. /
    2. /ring-image-create

    Updated Jun 15, 20263 min listen

    1. /
    2. /ring-image-create

    Updated Jun 15, 20263 min listen

    1. /
    2. /ring-image-create

    Updated Jun 15, 20263 min listen

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps
    Architecture
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture
    Proxy and internationalization
    Real Time
    Discovery Mutation Sync
    Security
    Features
    Doc System
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Web3 Wallet
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payment Integration
    PaymentConductor
    VideoConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    CLI
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Database Backend Selection
    Token Economics Setup
    Payment Gateway Integration
    AI Agent Customization
    Reference Ring deployments
    Branding
    Features
    Localization
    Themes
    Components
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Roadmap
    Examples
    Quick Start
    Authentication
    Email AI-CRM developer guide
    API Integration Examples
    Web3 Integration
    White Label
    Real World
    API Examples (cURL)
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps
    Architecture
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture
    Proxy and internationalization
    Real Time
    Discovery Mutation Sync
    Security
    Features
    Doc System
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Web3 Wallet
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payment Integration
    PaymentConductor
    VideoConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    CLI
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Database Backend Selection
    Token Economics Setup
    Payment Gateway Integration
    AI Agent Customization
    Reference Ring deployments
    Branding
    Features
    Localization
    Themes
    Components
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Roadmap
    Examples
    Quick Start
    Authentication
    Email AI-CRM developer guide
    API Integration Examples
    Web3 Integration
    White Label
    Real World
    API Examples (cURL)
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)

    Concepts, value, and typical clone scenarios — less code.

    Welcome to Ring
    Quick Reference
    Getting Started
    Prerequisites
    Installation
    Database migrations
    First Success Validation
    Troubleshooting
    Next Steps
    Architecture
    Backend modes and databases
    Data Model
    Authentication Architecture
    Email AI-CRM architecture
    PaymentConductor architecture
    Refcodes architecture
    News Kingdom architecture
    Proxy and internationalization
    Real Time
    Discovery Mutation Sync
    Security
    Features
    Doc System
    Authentication
    Email AI-CRM
    Entities
    Opportunities
    Notifications
    Push Notifications with FCM (Ring-Powered)
    Tunnel Protocol
    Web3 Wallet
    Multi-Vendor Store
    Inventory & Stock
    Vendor Management
    Commissions & Settlements
    Referral Codes (Refcodes)
    Affiliate & Referral Enablement
    Payment Integration
    PaymentConductor
    VideoConductor
    WayForPay Payment Integration
    News Module - Digital Newspaper Experience
    Member Blogs
    Scientific Editor
    Locale System
    Security & Compliance
    NFT Marketplace
    Token Staking System
    Performance Optimization Patterns
    Mobile Experience
    Wallet
    Wallet Security Tips
    API
    Authentication
    Email AI-CRM API
    Entities
    Opportunities
    Messaging API
    Notifications API
    Wallet API
    Store API
    Admin API
    CLI
    Customization
    Quick Start — Your First Ring Clone
    Customization Guide
    Database Backend Selection
    Token Economics Setup
    Payment Gateway Integration
    AI Agent Customization
    Reference Ring deployments
    Branding
    Features
    Localization
    Themes
    Components
    Web3
    Token launch jurisdictions
    Deployment
    Self-hosted deployment
    Vercel
    Docker
    Environment Configuration
    Monitoring & Analytics
    Performance Optimization
    Backup & Recovery
    Development
    Local Setup
    Code Structure
    Documentation components
    Community tooling
    Ring MCP Server
    Generative Images (ImageConductor)
    Autonomous Newsroom (Grok)
    OSS vs enterprise
    Whitelabel Navigation
    Best Practices
    Workflow
    Code Style
    Performance
    Testing
    Deployment
    Debugging
    Contributing
    MCP
    ring-image-create
    ring-video-create
    Roadmap
    Examples
    Quick Start
    Authentication
    Email AI-CRM developer guide
    API Integration Examples
    Web3 Integration
    White Label
    Real World
    API Examples (cURL)
    Integrations
    Ethereum wallets (Wagmi v3)

    Quick entry (CTOs · auditors · agents)

    Welcome — mission & audiences
    Quick Reference
    Getting started
    Architecture & Auth.js
    Backend modes & databases (DB_BACKEND_MODE)
    Self-hosted
    Ring MCP Tools
    Ring MCP Server
    Token economics
    Token launch jurisdictions
    Deploy (Docker · k8s)
    Security & compliance reads
    ringdom.org — LegioX homebase
    Source — MIT license (GitHub)
    Docs
    MCP
    Docs
    MCP
    Docs
    MCP

    ring-image-create

    Generate an image from a natural-language prompt, upload it to ring-filebase, persist an audit row in generated_images, and return a permanent CDN URL.

    Executive summary

    Operators and agents call ring-image-create through ring-mcp. The gateway hits POST /api/mcp/v1/images/generate, which runs ImageConductor (lib/images/conductor/image-conductor.ts) with the MCP service actor as actorId. Default provider is xAI (IMAGE_GEN_PROVIDER=xai).

    MCP tools hub

    Ring MCP overview, kingdom vs clone scope, prerequisites.

    Generative images (ImageConductor)

    Architecture, admin UI, programmatic API, troubleshooting.

    Ring MCP Server

    Token setup, ring-health, full tool catalog.

    Environment

    Image and storage env vars on the clone.

    ring-image-create flow

    Tool identity

    FieldValue
    MCP tool namering-image-create
    HTTP routePOST /api/mcp/v1/images/generate
    MCP serverAI-RING/ring-mcp/lib/tools.js
    Gateway handlerapp/api/mcp/v1/images/generate/route.ts
    Conductorlib/images/conductor/image-conductor.ts
    Confirm requiredNo (read-only generation + storage)

    Parameters

    ParameterRequiredTypeNotes
    promptYesstringNatural-language image description
    providerNoxai | googleDefault from IMAGE_GEN_PROVIDER (usually xai)
    modelNostringOverride provider model (see env defaults below)
    aspectRatioNostringxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k | 2kxAI resolution tier
    nNonumberImage count (xAI 1–10, Google 1–4)

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Ask your MCP-connected agent in natural language:

    Or invoke the tool explicitly:

    1. 1

      Enable the MCP gateway on the Ring clone — set RING_MCP_SERVICE_TOKENS in .env.local and restart npm run dev.

    2. 2

      Configure image generation — XAI_API_KEY (or GOOGLE_GENAI_API_KEY), plus ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN).

    3. 3

      Register ring-mcp in Cursor with matching RING_SERVICE_TOKEN and RING_API_BASE_URL (e.g. http://localhost:3000 for ring-platform.org).

    4. 4

      Verify — run ring-health, then ring-image-create with a short test prompt. Expect a url in the response.

    Response shape

    MCP gateway wraps the conductor result in { success, data }:

    Environment

    Database

    Migration data/migrations/006_generated_images_schema.sql adds the generated_images audit table (mirrored in data/schema.sql).

    Troubleshooting

    SymptomCheck
    Invalid service token / 401RING_SERVICE_TOKEN in MCP client matches RING_MCP_SERVICE_TOKENS on clone
    prompt is requiredPass non-empty prompt
    XAI_API_KEY is not configuredKey in .env.local, restart dev server
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty / policy rejectionProvider quota, prompt policy, or model name drift
    Security

    The MCP service token grants SUPERADMIN-equivalent access on the clone — including image generation billed to your provider keys. Rotate tokens per environment; never commit secrets.

    Related

    ring-news-generate

    Autonomous newsroom — uses ImageConductor for featured images.

    News feature

    Member blog UI with GenerateImageDialog.

    ring-image-create

    Generate an image from a natural-language prompt, upload it to ring-filebase, persist an audit row in generated_images, and return a permanent CDN URL.

    Executive summary

    Operators and agents call ring-image-create through ring-mcp. The gateway hits POST /api/mcp/v1/images/generate, which runs ImageConductor (lib/images/conductor/image-conductor.ts) with the MCP service actor as actorId. Default provider is xAI (IMAGE_GEN_PROVIDER=xai).

    MCP tools hub

    Ring MCP overview, kingdom vs clone scope, prerequisites.

    Generative images (ImageConductor)

    Architecture, admin UI, programmatic API, troubleshooting.

    Ring MCP Server

    Token setup, ring-health, full tool catalog.

    Environment

    Image and storage env vars on the clone.

    ring-image-create flow

    Tool identity

    FieldValue
    MCP tool namering-image-create
    HTTP routePOST /api/mcp/v1/images/generate
    MCP serverAI-RING/ring-mcp/lib/tools.js
    Gateway handlerapp/api/mcp/v1/images/generate/route.ts
    Conductorlib/images/conductor/image-conductor.ts
    Confirm requiredNo (read-only generation + storage)

    Parameters

    ParameterRequiredTypeNotes
    promptYesstringNatural-language image description
    providerNoxai | googleDefault from IMAGE_GEN_PROVIDER (usually xai)
    modelNostringOverride provider model (see env defaults below)
    aspectRatioNostringxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k | 2kxAI resolution tier
    nNonumberImage count (xAI 1–10, Google 1–4)

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Ask your MCP-connected agent in natural language:

    Or invoke the tool explicitly:

    1. 1

      Enable the MCP gateway on the Ring clone — set RING_MCP_SERVICE_TOKENS in .env.local and restart npm run dev.

    2. 2

      Configure image generation — XAI_API_KEY (or GOOGLE_GENAI_API_KEY), plus ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN).

    3. 3

      Register ring-mcp in Cursor with matching RING_SERVICE_TOKEN and RING_API_BASE_URL (e.g. http://localhost:3000 for ring-platform.org).

    4. 4

      Verify — run ring-health, then ring-image-create with a short test prompt. Expect a url in the response.

    Response shape

    MCP gateway wraps the conductor result in { success, data }:

    Environment

    Database

    Migration data/migrations/006_generated_images_schema.sql adds the generated_images audit table (mirrored in data/schema.sql).

    Troubleshooting

    SymptomCheck
    Invalid service token / 401RING_SERVICE_TOKEN in MCP client matches RING_MCP_SERVICE_TOKENS on clone
    prompt is requiredPass non-empty prompt
    XAI_API_KEY is not configuredKey in .env.local, restart dev server
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty / policy rejectionProvider quota, prompt policy, or model name drift
    Security

    The MCP service token grants SUPERADMIN-equivalent access on the clone — including image generation billed to your provider keys. Rotate tokens per environment; never commit secrets.

    Related

    ring-news-generate

    Autonomous newsroom — uses ImageConductor for featured images.

    News feature

    Member blog UI with GenerateImageDialog.

    ring-image-create

    Generate an image from a natural-language prompt, upload it to ring-filebase, persist an audit row in generated_images, and return a permanent CDN URL.

    Executive summary

    Operators and agents call ring-image-create through ring-mcp. The gateway hits POST /api/mcp/v1/images/generate, which runs ImageConductor (lib/images/conductor/image-conductor.ts) with the MCP service actor as actorId. Default provider is xAI (IMAGE_GEN_PROVIDER=xai).

    MCP tools hub

    Ring MCP overview, kingdom vs clone scope, prerequisites.

    Generative images (ImageConductor)

    Architecture, admin UI, programmatic API, troubleshooting.

    Ring MCP Server

    Token setup, ring-health, full tool catalog.

    Environment

    Image and storage env vars on the clone.

    ring-image-create flow

    Tool identity

    FieldValue
    MCP tool namering-image-create
    HTTP routePOST /api/mcp/v1/images/generate
    MCP serverAI-RING/ring-mcp/lib/tools.js
    Gateway handlerapp/api/mcp/v1/images/generate/route.ts
    Conductorlib/images/conductor/image-conductor.ts
    Confirm requiredNo (read-only generation + storage)

    Parameters

    ParameterRequiredTypeNotes
    promptYesstringNatural-language image description
    providerNoxai | googleDefault from IMAGE_GEN_PROVIDER (usually xai)
    modelNostringOverride provider model (see env defaults below)
    aspectRatioNostringxAI: flexible; Google: 1:1, 3:4, 4:3, 9:16, 16:9
    resolutionNo1k | 2kxAI resolution tier
    nNonumberImage count (xAI 1–10, Google 1–4)

    OG preset: aspectRatio: "2:1" on xAI (~1200×630). For Google Imagen use 16:9 as nearest OG ratio.

    Ask your MCP-connected agent in natural language:

    Or invoke the tool explicitly:

    1. 1

      Enable the MCP gateway on the Ring clone — set RING_MCP_SERVICE_TOKENS in .env.local and restart npm run dev.

    2. 2

      Configure image generation — XAI_API_KEY (or GOOGLE_GENAI_API_KEY), plus ring-filebase (FILE_BACKEND=ringbase, RINGBASE_API_URL, RINGBASE_API_TOKEN).

    3. 3

      Register ring-mcp in Cursor with matching RING_SERVICE_TOKEN and RING_API_BASE_URL (e.g. http://localhost:3000 for ring-platform.org).

    4. 4

      Verify — run ring-health, then ring-image-create with a short test prompt. Expect a url in the response.

    Response shape

    MCP gateway wraps the conductor result in { success, data }:

    Environment

    Database

    Migration data/migrations/006_generated_images_schema.sql adds the generated_images audit table (mirrored in data/schema.sql).

    Troubleshooting

    SymptomCheck
    Invalid service token / 401RING_SERVICE_TOKEN in MCP client matches RING_MCP_SERVICE_TOKENS on clone
    prompt is requiredPass non-empty prompt
    XAI_API_KEY is not configuredKey in .env.local, restart dev server
    Upload failedRINGBASE_API_TOKEN, FILE_BACKEND=ringbase
    TimeoutRaise IMAGE_GEN_POLL_TIMEOUT_MS (default 120000)
    Empty / policy rejectionProvider quota, prompt policy, or model name drift
    Security

    The MCP service token grants SUPERADMIN-equivalent access on the clone — including image generation billed to your provider keys. Rotate tokens per environment; never commit secrets.

    Related

    ring-news-generate

    Autonomous newsroom — uses ImageConductor for featured images.

    News feature

    Member blog UI with GenerateImageDialog.

    purposeNostringStorage path segment, e.g. og, news-featured
    refCodeNostringOptional tracking id
    seedNonumberReproducibility hint (provider-dependent)
    text
    
    Generate a professional Ring Platform banner with vibrant gradient,
    aspect ratio 2:1, purpose og
    text
    
    ring-image-create prompt "community meetup photo, warm lighting" aspectRatio 16:9 purpose news-featured
    purposeNostringStorage path segment, e.g. og, news-featured
    refCodeNostringOptional tracking id
    seedNonumberReproducibility hint (provider-dependent)
    text
    
    Generate a professional Ring Platform banner with vibrant gradient,
    aspect ratio 2:1, purpose og
    text
    
    ring-image-create prompt "community meetup photo, warm lighting" aspectRatio 16:9 purpose news-featured
    purposeNostringStorage path segment, e.g. og, news-featured
    refCodeNostringOptional tracking id
    seedNonumberReproducibility hint (provider-dependent)
    text
    
    Generate a professional Ring Platform banner with vibrant gradient,
    aspect ratio 2:1, purpose og
    text
    
    ring-image-create prompt "community meetup photo, warm lighting" aspectRatio 16:9 purpose news-featured