AI

Cosmic offers a suite of features in the dashboard powered by AI to help you build your Cosmic projects faster.

For Agents (Team Agents, automations, channels, capabilities, and API) and Workflows (multi-step orchestration and execution retention), see those guides. This page focuses on AI Studio, content and media generation, translation, and usage limits.

AI Studio

Content Model Generation

The AI Studio generates complete content structures from natural language descriptions. Instead of manually configuring fields, relationships, and validation rules, you can describe what you need and receive a fully functional content model with multiple content types, relationships, and demo content to get started fast.

Content model capabilities:

  • Generate content models for any type of website or application
  • Add new content types that integrate with existing structures
  • Configure relationships between content types automatically
  • Create complex multi-language structures with custom validation

Working examples:

  • "Create a content model for an e-commerce store with products, collections, and customer reviews"
  • "Add an Events content model that relates to my existing blog posts and authors"
  • "Set up a portfolio website with projects, skills, and testimonials"

Content Management

Beyond structure creation, the AI handles content generation and management at scale.

Content operations:

  • Generate realistic sample content for testing and development
  • Bulk update existing content with new fields and metadata
  • Maintain consistency across large content datasets
  • Apply SEO optimization and structured data automatically

Practical applications:

  • "Create 10 sample blog posts with realistic content for my existing blog model"
  • "Update all product entries to include pricing and availability status"

Application Development and Deployment

AI-Powered Code Generation

The Cosmic AI Platform generates production-ready applications using your existing content structure. Applications are built with modern frameworks and include proper TypeScript definitions, responsive design, and performance optimizations.

Supported frameworks:

  • Next.js applications with server-side rendering
  • React dashboards and single-page applications
  • Astro static sites with modern tooling
  • Vue.js progressive web applications

AI assisted development

Click the "AI chat" button in the top right corner of the Cosmic dashboard to open the AI chat drawer. Use AI chat to learn how to integrate your content into your apps. Available for the admin and developer role.

Get insights from media

Click the "AI chat" button on any media asset to get summaries and insights from PDFs, spreadsheets, documents, and more. Available for all roles.

Generate alt text

To generate alt text for an image, go to any image, find the alt text area, and click the "Generate" button. You can also generate alt text for a group of images at once. Available for all roles.

Generate images

To generate images, open the Media modal, click the "Create" button, and describe the image you want to generate. Available for all roles.

Generate videos

Create compelling video content using natural language, powered by Google's Veo 3.1 models. Available for all roles.

Prompt: "Cinematic close-up of raindrops falling on a window at night, city lights blurred in background"

Key features:

  • Native audio generation - Videos include automatically generated audio that matches your scene
  • Two quality tiers - Fast (30-90s) or Standard (60-180s, premium cinematic quality)
  • Flexible options - Generate 4, 6, or 8-second videos at 720p or 1080p
  • Image-to-video mode - Use a reference image as the starting frame for precise control
  • Video extension - Extend any Veo-generated video to create longer sequences

How to use:

  1. Navigate to Media in your project
  2. Click "Create" and select "Video Generation"
  3. Choose "Veo 3.1 Fast" or "Veo 3.1 Standard"
  4. Enter your video prompt
  5. (Optional) Add a reference image for image-to-video mode
  6. Choose duration and resolution, then click "Generate"

Videos are automatically saved to your Media Library with global CDN delivery. See the AI API documentation for programmatic access.

Generate audio

Convert any text to natural-sounding speech using OpenAI's text-to-speech models. Perfect for creating audio versions of articles, podcast intros, product descriptions, and more. Available for all roles.

Key features:

  • 9 natural-sounding voices - Feminine (nova, shimmer, coral, sage, alloy) and masculine (echo, onyx, fable, ash)
  • Two quality tiers - Standard (fast, low-latency) or HD (higher quality, 2x cost)
  • Long text support - Texts over 4,096 characters are automatically chunked and concatenated
  • Instant media library - Generated audio is saved as MP3 and available via CDN

How to use:

  1. Navigate to Media in your project
  2. Click "Create" and select "Audio"
  3. Select a voice from the dropdown (default: Nova)
  4. Paste or type the text you want to convert to speech
  5. Click "Generate" to create the audio file

Audio files are automatically saved to your Media Library in MP3 format. See the AI API documentation for programmatic access.

Auto translate content with AI

You can use Cosmic AI to auto translate content from one language to another. Available for all roles.

Content generation

You can use Cosmic AI to generate content for your projects. Create summaries, SEO optimized content, translations, and more. Available for all roles.

Agents

Documentation for Team Agents, automations, channels, capabilities, conversation memory, Slack/Telegram/WhatsApp setup, slash commands, sharing conversations, and the messaging API now lives on Agents.


Workflows

Documentation for chaining agents, schedules, event-triggered workflows, and related best practices now lives on Workflows.


Execution Retention

Execution retention for agent and workflow runs is documented under Workflows: Execution retention.

Usage and limits

Cosmic AI is available on all Cosmic plans with varying limits. You can add more tokens to your account by upgrading your plan or adding the AI tokens add-on. Go to the pricing page to learn more.

Tokens

Tokens are the unit of usage for Cosmic AI. In general, 1 token equals 1 word or 4 characters. You can view your AI usage from the Usage section of your projects.

Input tokens are the number of tokens used in your request. These are typically lower cost and represent the content you send to the AI (prompts, context, etc.). For text generation, this includes your messages and conversation history.

Output tokens are the number of tokens generated by the AI. These are higher cost (typically 5x more than input tokens) and represent what the AI creates:

  • Text generation: Varies by response length
  • Image generation: Fixed cost per image (4,800 - 57,600 tokens depending on model and size)
  • Video generation: Fixed cost per video (144,000 - 768,000 tokens depending on model and duration)

Media generation (images and videos) costs are counted as output tokens to reflect the computational requirements of generating visual content.

Getting started

Log in to your Cosmic account and start using Cosmic AI today.