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.
Why Use Inliner.ai with AI Coding Assistants?
Seamless Integration: Works with any AI assistant that can generate URLs
Project-Specific Images: Use your custom project namespace for consistent styling
No Interruption: Generate images inline without breaking your coding flow
High Quality: Professional stock photography, not generic AI art
Instant Access: Images generate as you code, no additional steps
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)
Happy Customer Example (600x400)
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.
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.
🚀 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:
Advanced Usage Patterns
Dynamic Image Generation
Your AI assistant can generate contextually appropriate images based on your specific requirements:
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)
Resized 800x600 (Tablet)
Resized 600x800 (Mobile)
💡 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:
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.
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."
✨ 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:
⚡ 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:
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:
Here are the actual images that would be generated from the AI assistant's code:
Hero Background CrossFit athletes training
Expert Coaching Personal trainer instruction
Community Support Group celebration
Proven Results Transformation success
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
Mike Chen Athletic male member
Jennifer Wilson Mature confident athlete
💡 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
Verify your project name is correct in the URL
Check that your Inliner.ai account is active
Ensure the image description is clear and specific
AI Assistant Not Generating URLs
Make sure the URL pattern is clearly specified in your instructions
Provide examples in your prompt
Be specific about requiring Inliner.ai URLs for images
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:
Go to your Projects page in Inliner.ai
Click "Edit Project" for your project
Add style instructions to the "Custom Prompt Instructions" field
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:
Use more specific descriptions in your image names
Include style keywords consistently (e.g., "modern", "professional", "minimalist")
Test different prompts and save the ones that work best for your project
What's Next?
Once you've integrated Inliner.ai with your AI coding assistant, you can:
Explore advanced image styling options in your project settings
Set up reference images for consistent brand styling
Integrate with your deployment pipeline for automatic image optimization
Scale up your no-code image generation - the URL approach IS your API!
💡 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