The First URL-Based Image Generator Built for AI Coding Assistants

Transform your AI coding workflow by integrating high-quality stock photography directly into your prompts and code generation. This tutorial shows you how to use Inliner.ai with popular AI coding assistants like Claude, ChatGPT, Cursor, and others to generate images on-demand using simple URL patterns.

✨ No MCP Server Required! Unlike complex integrations, Inliner.ai works with simple URL patterns that any AI assistant can generate. No additional setup, servers, or API keys needed beyond your Inliner.ai account.
AI coding assistant workflow

Why Use Inliner.ai with AI Coding Assistants?

How It Works: The URL Pattern

Inliner.ai uses a simple URL structure that your AI assistant can generate dynamically:

// Basic URL Pattern https://img.inliner.ai/your-project-name/description-of-image // With dimensions (optional) https://img.inliner.ai/your-project-name/description-of-image_800x600 // Real examples using demo namespace https://img.inliner.ai/inliner-demo/professional-team-meeting-in-modern-office_1200x800 https://img.inliner.ai/inliner-demo/happy-customer-shopping-online-laptop_600x400

Team Meeting Example (1200x800)

Professional team meeting

Happy Customer Example (600x400)

Happy customer shopping
Pro Tip: Your project name acts as a namespace, ensuring consistent styling and theming across all generated images for your specific use case.

Supported AI Coding Assistants

Claude (Anthropic)

Excellent at understanding context and generating descriptive image URLs that match your project needs.

Visit Claude.ai

ChatGPT (OpenAI)

Great for generating multiple image variations and understanding complex prompt requirements.

Visit ChatGPT

Cursor AI

Perfect for inline code generation with images directly in your development environment.

Download Cursor

GitHub Copilot

Integrates well with code comments and can suggest appropriate image URLs as you code.

Get Copilot

Step-by-Step Setup Guide

1

Create Your Project

Sign up at Inliner.ai and create a new project. Give it a unique name (e.g., my-app-images) and optionally set default styling in the project settings.

Create New Project modal

🚀 Quick Start: Your project name becomes part of every image URL, so choose something memorable and brand-appropriate!

2

Configure Your AI Assistant

Add Inliner integration instructions to your AI assistant's system prompt or custom instructions. This teaches it to automatically generate image URLs using the correct format.

Choose your AI assistant below for specific setup instructions:

🎯 Pro Tip: Once configured, your AI assistant will automatically generate working image URLs without any extra prompting from you!

3

Test the Integration

Ask your AI assistant to help build something that needs images. It should automatically generate Inliner URLs in the code it provides.

Example Request:

"Create a React component for a hero section with a professional team photo"

Magic Moment: Watch as your AI assistant seamlessly integrates real, professional images without you having to hunt for stock photos!

AI Assistant Response:

Your AI assistant should generate something like this:

const HeroSection = () => { return ( <section className="hero bg-gradient-to-r from-blue-600 to-purple-600 text-white py-20"> <div className="container mx-auto px-4"> <div className="grid md:grid-cols-2 gap-12 items-center"> <div> <h1 className="text-5xl font-bold mb-6"> Transform Your Business with AI </h1> <p className="text-xl mb-8"> Join thousands of companies already using our platform to drive growth and innovation. </p> <button className="bg-white text-blue-600 px-8 py-3 rounded-lg font-semibold hover:bg-gray-100 transition"> Get Started Free </button> </div> <div> <img src="https://img.inliner.ai/inliner-demo/professional-diverse-team-modern-office-collaboration-meeting_800x600" alt="Professional team collaborating in modern office" className="rounded-lg shadow-2xl" /> </div> </div> </div> </section> ); }; export default HeroSection;

Generated Image Result:

Professional team collaboration

Advanced Usage Patterns

Dynamic Image Generation

Your AI assistant can generate contextually appropriate images based on your specific requirements:

// Context-aware image generation const blogPost = { title: "Remote Work Best Practices", image: "https://img.inliner.ai/inliner-demo/remote-worker-home-office-setup-professional_600x400" }; const productFeature = { name: "Analytics Dashboard", screenshot: "https://img.inliner.ai/inliner-demo/modern-analytics-dashboard-charts-graphs_1200x800" };

Remote Work Setup

Remote worker setup

Analytics Dashboard

Analytics dashboard

Responsive Image Variations

Inliner.ai makes responsive design effortless by allowing you to resize any existing image by simply appending new dimensions to the URL. This creates different aspect ratios and sizes of the exact same image content.

🔄 How Image Resizing Works:

Once you generate an image, you can create multiple sizes by adding /new_dimensions to the URL:

// Original image https://img.inliner.ai/inliner-demo/professional-team-meeting-modern-office_1200x800 // Resize to different dimensions - same content, different sizes https://img.inliner.ai/inliner-demo/professional-team-meeting-modern-office_1200x800/600x400 https://img.inliner.ai/inliner-demo/professional-team-meeting-modern-office_1200x800/400x600 https://img.inliner.ai/inliner-demo/professional-team-meeting-modern-office_1200x800/300x200

Practical Example: Responsive Real Estate Hero

Start with one image, then create responsive variations by resizing:

// Step 1: Generate the original image const originalImage = "https://img.inliner.ai/inliner-demo/professional-female-real-estate-agent-luxury-home-exterior_1200x600"; // Step 2: Create responsive variations by appending new dimensions <picture> <source media="(max-width: 768px)" srcSet="https://img.inliner.ai/inliner-demo/professional-female-real-estate-agent-luxury-home-exterior_1200x600/600x800" /> <source media="(max-width: 1024px)" srcSet="https://img.inliner.ai/inliner-demo/professional-female-real-estate-agent-luxury-home-exterior_1200x600/800x600" /> <img src="https://img.inliner.ai/inliner-demo/professional-female-real-estate-agent-luxury-home-exterior_1200x600" alt="Professional real estate agent" /> </picture>

Original
1200x600 (Desktop)

Original desktop version

Resized
800x600 (Tablet)

Tablet version

Resized
600x800 (Mobile)

Mobile version
💡 Pro Tip: The resized images maintain the same composition and content as the original - Inliner.ai intelligently crops and adjusts the framing to work with the new aspect ratio. This ensures visual consistency across all your responsive breakpoints.

Real-World Examples

These examples show the power of combining AI coding assistance with dynamic image generation.

💡 Real Impact: Developers report 10x faster prototyping when they don't have to hunt for stock photos!

SaaS Landing Page

What we're doing: Building a hero section for a project management tool by simply asking the AI assistant to create the component. What we accomplish: Get a complete React component with professional team imagery that perfectly matches the SaaS context, without spending time searching for stock photos or worrying about licensing.

// Prompt: "Create a hero section for a project management SaaS" <div className="hero-section"> <img src="https://img.inliner.ai/inliner-demo/team-using-project-management-software-modern-office_1200x600" alt="Project management in action" /> </div>

Generated Result:

SaaS example

E-commerce Product Page

What we're doing: Creating a product showcase component for fitness equipment by describing what we need to the AI assistant. What we accomplish: Instantly get a product display with contextually appropriate home gym imagery that looks professional and matches the product category, eliminating the need to source and license stock photos.

// Prompt: "Generate product showcase for fitness equipment" <div className="product-showcase"> <img src="https://img.inliner.ai/inliner-demo/modern-home-gym-equipment-setup-bright-room_800x800" alt="Home gym equipment" /> </div>

Generated Result:

Fitness example

Best Practices

Descriptive Names: Use clear, descriptive image names like "professional-team-meeting-conference-room" rather than generic terms like "image1" or "photo".
Consistent Naming: Establish naming conventions within your project namespace for better organization and predictability.
Size Planning: Include dimensions in your URLs when you need specific aspect ratios or sizes for your design.
Rate Limits: Be mindful of your plan's image generation limits. Most AI assistants can generate many URLs quickly, so monitor your usage.

Integration Examples by AI Assistant

Claude (Anthropic) - Project Instructions

Where to add: Go to your Claude project → Project Settings → Instructions

What to add: Append this to your existing project instructions:

## Image Generation Instructions When generating HTML/React/Vue/any code that requires images, always use Inliner.ai URLs: Pattern: https://img.inliner.ai/YOUR_PROJECT_NAME/descriptive-image-name_WIDTHxHEIGHT Rules: - Replace YOUR_PROJECT_NAME with the user's actual Inliner project name - Use descriptive, hyphen-separated names for images. - Include dimensions when specific sizing is needed. - Always generate appropriate alt text Examples: - https://img.inliner.ai/my-saas/team-collaboration-modern-office_800x600 - https://img.inliner.ai/portfolio/professional-headshot-business-person_400x400 - https://img.inliner.ai/ecommerce/product-showcase-lifestyle-photo_600x800

📸 Claude Test Example

Your Request:

"Create a professional business card component for a marketing consultant. Include their photo, name, title, and contact info. Use modern styling."

Claude's Generated Component:

const BusinessCard = ({ consultant }) => { return ( <div className="max-w-md mx-auto bg-white rounded-xl shadow-lg overflow-hidden"> <div className="bg-gradient-to-r from-blue-500 to-purple-600 p-6"> <div className="flex items-center space-x-4"> <img src="https://img.inliner.ai/inliner-demo/professional-marketing-consultant-confident-business-portrait_400x400" alt="Sarah Johnson - Marketing Consultant" className="w-20 h-20 rounded-full border-4 border-white object-cover" /> <div className="text-white"> <h2 className="text-2xl font-bold">Sarah Johnson</h2> <p className="text-blue-100">Senior Marketing Consultant</p> </div> </div> </div> <div className="p-6"> <div className="space-y-3"> <div className="flex items-center text-gray-600"> <i className="fas fa-envelope mr-3"></i> <span>[email protected]</span> </div> <div className="flex items-center text-gray-600"> <i className="fas fa-phone mr-3"></i> <span>(555) 123-4567</span> </div> <div className="flex items-center text-gray-600"> <i className="fas fa-linkedin mr-3"></i> <span>linkedin.com/in/sarahjohnson</span> </div> </div> </div> </div> ); };

Generated Professional Portrait:

Professional marketing consultant portrait

✨ What happened: Claude automatically generated a complete business card component with professional styling, proper structure, and contextually appropriate imagery - all from a simple request. The Inliner.ai URL was seamlessly integrated without any manual image sourcing.

Cursor AI - .cursorrules File

Where to add: Create or edit .cursorrules file in your project root

What to add: Add this section to your .cursorrules file:

# Inliner.ai Image Integration For any code that requires images, use Inliner.ai URLs: https://img.inliner.ai/PROJECT_NAME/descriptive-image-name_WIDTHxHEIGHT Requirements: - Use the project's actual Inliner.ai namespace - Descriptive, professional image descriptions - Include dimensions for layout requirements - Generate semantic alt text - Prefer realistic, professional imagery over illustrations Example patterns: - Hero sections: _1920x1080 or _1200x600 - Product images: _800x800 or _600x400 - Profile photos: _400x400 or _300x300 - Thumbnails: _200x200 or _150x150

💻 Cursor AI Test Example

Your Coding Session:

You're building a developer portfolio website and start typing a comment in your React component:

const AboutSection = () => { return ( <section className="py-16 bg-gray-50"> <div className="container mx-auto px-4"> <h2 className="text-4xl font-bold text-center mb-8">About Me</h2> <div className="grid md:grid-cols-2 gap-12 items-center"> <div> <p className="text-lg text-gray-600 mb-6"> I'm a full-stack developer passionate about creating innovative web applications and solving complex problems. </p> <p className="text-lg text-gray-600"> With 5+ years of experience in React, Node.js, and cloud technologies, I help businesses build scalable solutions. </p> </div> <div> // Need professional developer workspace image <img src="https://img.inliner.ai/inliner-demo/modern-developer-workspace-dual-monitors-clean-setup_800x600" alt="Modern developer workspace" className="rounded-lg shadow-lg" /> </div> </div> </div> </section> ); };

🎯 What happened: As you typed the comment "Need professional developer workspace image", Cursor's AI recognized the pattern from your .cursorrules file and automatically suggested the complete Inliner.ai URL with appropriate dimensions and descriptive naming.

Generated Workspace Image:

Modern developer workspace

⚡ Cursor's Advantage: Unlike other AI assistants, Cursor provides real-time autocomplete suggestions as you type. Once it learns your Inliner.ai patterns, it will suggest image URLs before you even finish typing the comment, dramatically speeding up your development workflow.

ChatGPT - Custom Instructions

Where to add: ChatGPT Settings → Personalization → Custom Instructions

What to add: Add this to "How would you like ChatGPT to respond?" section:

## Image URLs in Code When generating code that needs images, always use Inliner.ai URLs: Format: https://img.inliner.ai/PROJECT_NAME/description_WIDTHxHEIGHT Instructions: - Ask user for their Inliner.ai project name if not provided - Use descriptive, hyphen-separated image names - Include dimensions when layouts require specific sizing - Generate meaningful alt text for accessibility - Prefer professional, realistic imagery Common dimensions: - Hero images: 1200x600, 1920x1080 - Feature cards: 600x400, 800x600 - Profile photos: 400x400, 300x300 - Icons/thumbnails: 200x200, 150x150 Example: https://img.inliner.ai/my-startup/team-working-modern-office-collaboration_800x600

🤖 Test Result: When you ask ChatGPT for a landing page, it asks for your project name and generates:

Startup team collaboration

GitHub Copilot - Inline Comments

How to use: Add descriptive comments in your code, Copilot will suggest Inliner.ai URLs

Best practice: Include the pattern in your project's README.md:

# Image URLs Use Inliner.ai for all images: https://img.inliner.ai/PROJECT_NAME/description_WIDTHxHEIGHT ## Example usage in code: // Need hero image of modern office team - https://img.inliner.ai/my-project/ const heroImage = "https://img.inliner.ai/my-project/modern-office-team-collaboration_1200x600";

🔮 How it works: As you type image-related comments, Copilot learns the pattern and suggests appropriate URLs

🚀 Ready to Get Started? Create your Inliner.ai project and start generating professional images directly in your AI coding workflow. No complex setup required!

Complete Workflow Example: CrossFit Studio Marketing

Let's walk through a real conversation with an AI assistant to see how seamlessly Inliner.ai integrates into the development workflow.

Setting Up Your AI Assistant

First, you've already configured your AI assistant (Claude, ChatGPT, or Cursor) with the Inliner.ai instructions. Now you're ready to start building content.

Your Prompt to the AI Assistant

You give your AI assistant this prompt:

"I'm building a marketing website for Iron Valley CrossFit. Please create: 1. A hero section component with headline, subtext, and image 2. A features section showcasing 3 key benefits with icons/images 3. A testimonials section with customer photos 4. A class schedule section with workout images Use professional, motivating imagery that appeals to fitness enthusiasts. Make it React components with Tailwind CSS styling. Remember to use Inliner.ai URLs for all images."

AI Assistant Response

Your AI assistant generates this complete solution:

// Hero Section Component const HeroSection = () => { return ( <section className="relative h-screen flex items-center justify-center bg-gray-900"> <img src="https://img.inliner.ai/inliner-demo/crossfit-athletes-intense-workout-industrial-gym-dramatic-lighting_1920x1080" alt="CrossFit athletes training" className="absolute inset-0 w-full h-full object-cover opacity-70" /> <div className="relative z-10 text-center text-white px-4"> <h1 className="text-5xl font-bold mb-4">Transform Your Fitness Journey</h1> <p className="text-xl mb-8">Join Iron Valley CrossFit and unlock your potential</p> <button className="bg-red-600 px-8 py-3 rounded-lg font-bold">Start Your Trial</button> </div> </section> ); }; // Features Section Component const FeaturesSection = () => { const features = [ { title: "Expert Coaching", description: "Certified trainers guide every workout", image: "https://img.inliner.ai/inliner-demo/crossfit-coach-instructing-athlete-proper-form-gym_600x400" }, { title: "Community Support", description: "Train alongside motivated athletes", image: "https://img.inliner.ai/inliner-demo/crossfit-group-celebrating-after-workout-team-spirit_600x400" }, { title: "Proven Results", description: "Track your progress and achievements", image: "https://img.inliner.ai/inliner-demo/before-after-fitness-transformation-success-story_600x400" } ]; return ( <section className="py-16 bg-white"> <div className="container mx-auto px-4"> <h2 className="text-4xl font-bold text-center mb-12">Why Choose Iron Valley?</h2> <div className="grid md:grid-cols-3 gap-8"> {features.map((feature, index) => ( <div key={index} className="text-center"> <img src={feature.image} alt={feature.title} className="w-full h-48 object-cover rounded-lg mb-4" /> <h3 className="text-2xl font-bold mb-2">{feature.title}</h3> <p className="text-gray-600">{feature.description}</p> </div> ))} </div> </div> </section> ); };

See the Generated Images

Here are the actual images that would be generated from the AI assistant's code:

Hero Background
CrossFit athletes training

CrossFit hero

Expert Coaching
Personal trainer instruction

CrossFit coaching

Community Support
Group celebration

CrossFit community

Proven Results
Transformation success

Fitness transformation

Follow-up Request

You can then ask for additional content:

"Great! Now I need a testimonials section with 3 customer testimonials. Include realistic profile photos of diverse CrossFit members - make them look authentic and motivating."

AI Assistant responds:

// Testimonials Section Component const TestimonialsSection = () => { const testimonials = [ { name: "Sarah Martinez", role: "Member since 2022", quote: "Iron Valley transformed my relationship with fitness. The community here is incredible!", image: "https://img.inliner.ai/inliner-demo/confident-female-crossfit-athlete-portrait-gym-setting_400x400" }, { name: "Mike Chen", role: "Member since 2021", quote: "Lost 30 pounds and gained so much strength. Best decision I ever made!", image: "https://img.inliner.ai/inliner-demo/athletic-asian-male-crossfit-member-smiling-portrait_400x400" }, { name: "Jennifer Wilson", role: "Member since 2023", quote: "The coaches here really care about your progress and form. Highly recommend!", image: "https://img.inliner.ai/inliner-demo/mature-woman-crossfit-athlete-confident-smile-gym_400x400" } ]; return ( <section className="py-16 bg-gray-50"> <div className="container mx-auto px-4"> <h2 className="text-4xl font-bold text-center mb-12">What Our Members Say</h2> <div className="grid md:grid-cols-3 gap-8"> {testimonials.map((testimonial, index) => ( <div key={index} className="bg-white p-6 rounded-lg shadow-lg"> <img src={testimonial.image} alt={testimonial.name} className="w-16 h-16 rounded-full mx-auto mb-4 object-cover" /> <p className="text-gray-600 mb-4 italic">"{testimonial.quote}"</p> <h4 className="font-bold">{testimonial.name}</h4> <p className="text-sm text-gray-500">{testimonial.role}</p> </div> ))} </div> </div> </section> ); };

Sarah Martinez
Confident female athlete

Sarah testimonial

Mike Chen
Athletic male member

Mike testimonial

Jennifer Wilson
Mature confident athlete

Jennifer testimonial
💡 Key Workflow Benefits:
  • Contextual Consistency: All images match the CrossFit theme automatically
  • No Interruption: You stay in your coding flow while getting professional imagery
  • Instant Results: See your designs come to life immediately
  • Easy Iteration: Request changes or additional content seamlessly

Troubleshooting Common Issues

Images Not Loading

AI Assistant Not Generating URLs

Inconsistent Image Styles

Solution: Use Project Style Guides

The best way to ensure consistent imagery across your project is to set up a style guide in your Inliner.ai project settings:

📝 Setting Up Your Style Guide:

  1. Go to your Projects page in Inliner.ai
  2. Click "Edit Project" for your project
  3. Add style instructions to the "Custom Prompt Instructions" field
  4. Examples: "flat illustration style, blue color palette" or "photorealistic, modern office setting"

Advanced Solution: Reference Images (Paid Plans)

Paid accounts can upload reference images to automatically incorporate logos, specific products, or people into generated imagery:

🎨 Using Reference Images:

  • Upload Assets: Add your logo, product photos, or team headshots to your project
  • Reference in URLs: Use img-1, img-2 etc. in your image descriptions
  • Automatic Integration: Inliner.ai will incorporate your assets into generated images
  • Brand Consistency: All images will feature your actual branding elements

Quick Fixes:

What's Next?

Once you've integrated Inliner.ai with your AI coding assistant, you can:

💡 The URL Pattern IS Your API

Unlike traditional APIs that require authentication, endpoints, and complex integration, Inliner.ai's URL-based approach gives you instant programmatic image generation. Just construct the URL and use it anywhere - in your code, templates, or even spreadsheets. It's a no-code API that works everywhere URLs work!

Start Generating Images in Your Code Today

Join thousands of developers using Inliner.ai to streamline their workflow

Create Free Account View API Docs
Full size preview