Happy developer working efficiently at modern desk setup

This is what you'll accomplish - seamless development with automatic image generation

ChatGPT + Inliner.ai Integration

Set up ChatGPT to automatically generate Inliner.ai image URLs in your code. Transform your development workflow with AI-powered image generation using custom instructions.

This tutorial will show you how to configure ChatGPT to automatically generate Inliner.ai image URLs when you request code that includes images. By adding specific instructions to your ChatGPT custom instructions, you'll enable seamless image generation without leaving your chat interface.

Prerequisites

Important: Replace inliner-demo with your actual project namespace from Inliner.ai. Each project has a unique namespace that appears in your image URLs.

How to Set Up ChatGPT with Inliner.ai

To get started, you'll need a ChatGPT account. Open ChatGPT →

Step 1: Get Your Inliner.ai Project Instructions

First, you need to get the specific instructions for your Inliner.ai project. Here's how:

  1. Log into your Inliner.ai account
  2. Go to the Projects section
  3. Find your project and click the LLM Instructions button
  4. In the modal that opens, click the Copy button next to "ChatGPT"
Pro Tip: If you haven't created a project yet, create one first in Inliner.ai. The project name will be used in all your image URLs.

Step 2: Configure ChatGPT Custom Instructions

Now you'll add the instructions to your ChatGPT custom instructions:

  1. Open ChatGPT in your browser
  2. Click on your profile picture in the bottom left
  3. Select Customize ChatGPT
  4. In the Custom Instructions section, paste the instructions you copied from Inliner.ai
  5. Click Save

Where to Find Custom Instructions

The Custom Instructions setting is located in ChatGPT's settings menu. You can access it by:

  • Clicking your profile picture → Customize ChatGPT
  • Or going to SettingsPersonalizationCustom Instructions

This setting applies to all your conversations with ChatGPT, so you only need to set it up once.

Step 3: Test the Integration

Now you can test the integration by asking ChatGPT to generate code with images:

Example Prompts to Test

  • "Create a React component for a hero section with a background image"
  • "Generate HTML for a product showcase with multiple product images"
  • "Build a landing page with hero, features, and testimonial sections"
  • "Create a portfolio website with project thumbnails"
  • "Add images to this existing component"

How It Works

When you ask ChatGPT to generate code that includes images, it will now automatically:

Example Output

Here's what ChatGPT will generate when you ask for a hero section:

ChatGPT Response

<!-- Hero Section -->
<section class="hero">
  <div class="hero-content">
    <h1>Welcome to Our Platform</h1>
    <p>Transform your workflow with AI-powered tools</p>
    <button class="cta-button">Get Started</button>
  </div>
  <div class="hero-image">
    <img 
      src="https://img.inliner.ai/inliner-demo/team-working-modern-office-collaboration_800x600.png"
      alt="Team working together in a modern office environment"
      class="hero-bg"
    >
  </div>
</section>

Generated Image Output:

Team working together in a modern office environment

The image above was generated using the URL from the code example. Notice how the descriptive filename creates a professional, realistic image that perfectly fits the hero section context.

Common Use Cases & Dimensions

ChatGPT will automatically use appropriate dimensions based on the context:

Use Case Dimensions Example
Hero images 1200x600, 1920x1080 hero-banner-startup-pitch_1200x600
Feature cards 600x400, 800x600 dashboard-analytics-overview_800x400
Profile photos 400x400, 300x300 user-profile-avatar-portrait_400x400
Product images 600x800, 800x800 product-showcase-lifestyle_600x800

Advanced Features

Custom Prompts

If you've set up custom prompts in your Inliner.ai project, ChatGPT will automatically apply them to all generated images, ensuring consistent branding and style.

Reference Images

If your project has reference images uploaded, ChatGPT can reference them in the generated URLs to maintain visual consistency with your brand assets.

Project-Specific Instructions

You can customize the instructions for different projects by asking ChatGPT to use specific project names:

Project-Specific Request Example

User: "Generate a landing page for my e-commerce project. Use the project name 'my-store' for all images."

ChatGPT: "I'll create a landing page using your 'my-store' project for all images. Here's the code:

<section class="hero">
  <img src="https://img.inliner.ai/inliner-demo/ecommerce-hero-banner_1200x600.png"
       alt="E-commerce hero banner with products"
       class="hero-image">
</section>

<section class="products">
  <img src="https://img.inliner.ai/inliner-demo/product-showcase-grid_800x600.png"
       alt="Product showcase grid"
       class="product-grid">
</section>"

Generated Images Output:

E-commerce hero banner with products

Hero Banner (1200x600)

Product showcase grid

Product Grid (800x600)

Both images were generated using the URLs from the code example, showing how ChatGPT automatically creates appropriate images for different sections of your landing page.

Pro Tip: You can ask ChatGPT to generate multiple variations of the same image by requesting different styles or compositions. Each will create a unique URL that you can use for A/B testing.

Troubleshooting

Common Issues

Best Practices

Workflow Tip: Once set up, you can ask ChatGPT to generate entire image sets for landing pages, portfolios, or marketing materials in a single conversation. The AI will create all the necessary URLs with appropriate dimensions and descriptions.

Next Steps

Now that you have ChatGPT integrated with Inliner.ai, you can:

Ready to transform your development workflow? Start generating images with ChatGPT and Inliner.ai today!

Ready to Integrate ChatGPT with Inliner.ai?

Create your first project and start generating images automatically