IMG.LY AI Gateway

Add AI models
to your editor.
Without another SDK, vendor or invoice.

Image
,
video
,
text
, and
voice
— today's flagship models, kept current for you. Fully managed, ready to drop into any editor or automation built on IMG.LY SDK.
  • Image, video, text & voice models
  • Fully managed, failover handled
  • Built for IMG.LY SDK

Trusted by teams at 600+
creative product companies

IMG.LY powers creative products at HP, Shopify, Reuters, Hootsuite, Shutterfly and hundreds more.

Digitas
Omneky
The Print Bar
Brandwatch
Planoly
HP
Shopify
Reuters
Hootsuite
Semrush
Shutterfly
one.com
Sprout Social
Constant Contact
Spread Group

One plugin. One invoice. Zero rewrites when models change.

Three shortcuts only AI Gateway can deliver, because it ships inside IMG.LY SDK, not next to it.

Same SDK you already use.
import CreativeEditorSDK from '@cesdk/cesdk-js';
import ImageGeneration from '@imgly/plugin-ai-image-generation-web';
import { GatewayProvider as ImageGatewayProvider } from '@imgly/plugin-ai-image-generation-web/gateway';

const cesdk = await CreativeEditorSDK.create('#editor', { license: 'YOUR_LICENSE' });

cesdk.actions.register('ly.img.ai.getToken', async () => {
  const res = await fetch('/api/ai/token', { method: 'POST' });
  const { token } = await res.json();
  return token;
});

await cesdk.addPlugin(
  ImageGeneration({
    providers: {
      text2image: ImageGatewayProvider('bfl/flux-2', { debug: true }),
    },
  }),
);
IMG.LY editor with a generated variant landing in a layer
I

Built for IMG.LY SDK.

AI Gateway plugs into the same SDK your team already uses, speaks the same scene model, and drops into the same UI flows. A sprint of integration becomes an afternoon.

II

SDK, AI, and billing in one dashboard.

No second vendor portal, no second invoice. API keys, usage, and per-project cost tracking sit next to your SDK license — one source of truth for finance and engineering.

III

We manage the model churn.

New flagship models, deprecations, and upstream outages never reach your code. You stay on one stable API; we keep what's behind it current, compatible, and routed around trouble.

Built for the teams already building creative products on IMG.LY.

Every use case IMG.LY SDK already powers, now backed by AI models.

Marketing & ad generation.

Generate on-brand creatives at scale inside a template-driven editor.

E-commerce product imagery.

Swap backgrounds, generate lifestyle shots, and keep products consistent.

Web-to-print personalization.

Let end users generate custom visuals, then output print-ready PDFs via CE.SDK.

Social media & short video.

Drop gen-AI effects, captions, and variants into a Reels-style editor.

In-editor AI assist.

Add "generate", "extend", and "retouch" buttons to any editor built on IMG.LY SDK.

Creative automation.

Batch-generate thousands of asset variants, headlessly, with models swapped per job.

AI models for images, video, text, and voice.

A curated, always-current set of today's flagship models. Pick by quality, speed, or cost. Switch whenever you want.

Images

Text to Image
Image to Image
Inpainting
Style Transfer

Video

Text to Video
Image to Video

Text

Prompt Expansion
Copy Variants
Smart Editing
Translation

Voice

Text to Speech
Speech to Text

See it running.

This is the IMG.LY editor with AI Gateway wired in. Type a prompt, pick a model, watch it land in your scene.

Minutes, not sprints.

One endpoint. Consistent request/response across every model. Works from your server, your client, or directly inside IMG.LY SDK.

Step 1: Install the generation plugin
npm install @imgly/plugin-ai-image-generation-web
Step 2: Register the Gateway provider
import ImageGeneration from '@imgly/plugin-ai-image-generation-web';
import { GatewayProvider as ImageGatewayProvider } from '@imgly/plugin-ai-image-generation-web/gateway';

cesdk.actions.register('ly.img.ai.getToken', async () => {
  const res = await fetch('/api/ai/token', { method: 'POST' });
  const { token } = await res.json();
  return token;
});

await cesdk.addPlugin(
  ImageGeneration({
    providers: {
      text2image: ImageGatewayProvider('bfl/flux-2', { debug: true }),
    },
  }),
);
Step 1: Set your API key
export IMGLY_API_KEY="your-key-here"
Step 2: Mint a short-lived token
curl -X POST https://gateway.img.ly/v1/tokens \
  -H "Authorization: Bearer $IMGLY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sub":"user-123"}'
Step 1: Install Express
npm install express
Step 2: Mint tokens for the editor
app.post('/api/ai/token', async (req, res) => {
  const response = await fetch('https://gateway.img.ly/v1/tokens', {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.IMGLY_API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ sub: req.user?.id }),
  });
  const { token } = await response.json();
  res.json({ token });
});

Pricing that gets cheaper as we get bigger.

Pay only for what you use. Every model is priced per request, per image, or per second of output, the same units you'd see upstream. The more volume AI Gateway handles across our customer base, the better our upstream terms get, and the better your pricing gets. Live per-model pricing is public.

Pricing data is not available right now

Pricing service is unreachable

The pricing service is having issues

Something went wrong loading pricing

No usage has been recorded in the last 30 days. Please check back soon.

The request timed out or was blocked. Check your connection, or try again in a moment.

The service is temporarily unavailable. Please try again in a few minutes.

We couldn’t load pricing data. Please refresh the page or try again later.

These are rolling averages, not fixed prices. Figures shown are the mean cost of requests actually generated over the last 30 days and come from our public pricing page. Your cost per request depends on the parameters you send — resolution, duration, step count, output size, and other provider-specific options — so real usage may come in higher or lower.

Get in touch

Add generative AI to your editor today.

Sign up for the IMG.LY dashboard and get $20 in free AI Gateway credit to try any model. No credit card required.

Frequently Asked Questions

AI Gateway is built for IMG.LY SDK customers and is tightly integrated with the editor. You can call it as a standalone API, but the fit is strongest when paired with the SDK. Talk to us if you're evaluating both.

A curated set of image, video, text, and voice models. Today's flagships, refreshed as new ones ship. See the full live list in the dashboard.

We partner with best-in-class inference providers and manage the plumbing — routing, upgrades, deprecations, and failover. You call one stable API.

Usage-based. Priced per request, per image, or per second of output depending on the model, with no hidden fees beyond published rates. Live pricing in the dashboard.

Content is forwarded to the selected upstream provider to serve your request. We do not retain content beyond what's needed for delivery and billing. Data handling details are in our documentation.

SLAs are available on request for enterprise customers. AI Gateway has automatic failover where upstream redundancy exists.

Sign up, grab an API key, and try a model with the $20 free credit — or open the demo editor to see AI Gateway wired into IMG.LY SDK.