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
  • Photo Editor
  • Video Editor
  • Design Editor
  • Print Editor
  • AI Editor
  • Photo Editor
  • Video Editor
  • Design Editor
  • Print Editor
  • AI Editor
  • Photo Editor
  • Video Editor
  • Design Editor
  • Print Editor
  • AI Editor
AI Gateway
Flux 2 → AI Editor
  • Flux 2 Edit
  • Seedream 4.5 Edit
  • Flux 2 Max Edit
  • Seedream 4.5
  • Nano Banana 2
  • Veo 3.1 Fast
  • Veo 3.1 Fast I2V
  • Claude Sonnet 4.6
  • GPT 5.4 Mini
  • Gemini 3 Flash Preview
  • Nano Banana Pro Edit
  • GPT Image 2 Edit
  • Flux 2
  • Nano Banana Pro
  • GPT Image 2
  • Eleven v3 TTS
  • Claude Opus 4.6
  • GPT 5.4
  • Gemini 3.1 Pro Preview
  • Nano Banana Pro Edit
  • GPT Image 2 Edit
  • Flux 2
  • Nano Banana Pro
  • GPT Image 2
  • Eleven v3 TTS
  • Claude Opus 4.6
  • GPT 5.4
  • Gemini 3.1 Pro Preview

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.

Try the live AI editor

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.

  • Flux 2 EditImage → Image $0.779 /req
  • GPT Image 2 EditImage → Image $0.264 /req
  • Seedream 4.5Text → Image $0.048 /req
  • GPT Image 2Text → Image $0.264 /req
  • Veo 3.1 Fast I2VImage → Video $1.50 /req
  • GPT 5.4Text → Text $0.00119 /req
  • Gemini 3 Flash PreviewText → Text $0.00024 /req
  • Flux 2 EditImage → Image $0.779 /req
  • GPT Image 2 EditImage → Image $0.264 /req
  • Seedream 4.5Text → Image $0.048 /req
  • GPT Image 2Text → Image $0.264 /req
  • Veo 3.1 Fast I2VImage → Video $1.50 /req
  • GPT 5.4Text → Text $0.00119 /req
  • Gemini 3 Flash PreviewText → Text $0.00024 /req
  • Nano Banana Pro EditImage → Image $0.360 /req
  • Flux 2 Max EditImage → Image $0.336 /req
  • Nano Banana ProText → Image $0.360 /req
  • Veo 3.1 FastText → Video $1.47 /req
  • Claude Opus 4.6Text → Text $0.00210 /req
  • GPT 5.4 MiniText → Text $0.00036 /req
  • Nano Banana Pro EditImage → Image $0.360 /req
  • Flux 2 Max EditImage → Image $0.336 /req
  • Nano Banana ProText → Image $0.360 /req
  • Veo 3.1 FastText → Video $1.47 /req
  • Claude Opus 4.6Text → Text $0.00210 /req
  • GPT 5.4 MiniText → Text $0.00036 /req
  • Seedream 4.5 EditImage → Image $0.048 /req
  • Flux 2Text → Image $0.013 /req
  • Nano Banana 2Text → Image $0.144 /req
  • Eleven v3 TTSText → Speech $0.024 /req
  • Claude Sonnet 4.6Text → Text $0.00126 /req
  • Gemini 3.1 Pro PreviewText → Text $0.00095 /req
  • Seedream 4.5 EditImage → Image $0.048 /req
  • Flux 2Text → Image $0.013 /req
  • Nano Banana 2Text → Image $0.144 /req
  • Eleven v3 TTSText → Speech $0.024 /req
  • Claude Sonnet 4.6Text → Text $0.00126 /req
  • Gemini 3.1 Pro PreviewText → Text $0.00095 /req

Average cost per request over the last 30 days. See full per-model pricing →

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.