# Generating AI images inside of Sanity CMS

ID: youtube:2v2Yge5-eLY
Canonical HTML: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms
Original source: https://www.youtube.com/watch?v=2v2Yge5-eLY
Author: Jono Alford
Published: 2025-03-04T00:00:00.000Z
Edited: 2026-08-11
Source checked: 2026-09-17T13:02:04.791Z
Language: en
Directory publisher: Roboto Studio
Text: original source material.

## Scope and gaps
- Video authors are credited by the original Roboto page; individual transcript speakers remain unassigned.

## Original source text

Looking to use replicate directly inside of Sanity CMS? Well we've got just the plugin for you. You can download it here: https://www.npmjs.com/package/sanity-plugin-image-gen

## Full transcript

Origin: Edited transcript from the original Roboto page

Hey folks, how's it going? We're back again. So, um, I just want to show you something very cool that we've built in-house and I'm fairly certain that a lot of people are going to get a lot of use out of this.

So if you notice, we have this new little thing inside of Sanity called Generate Image. Now, the reason why we built this is we kept going to Replicate, we kept taking the data from there, and we kept throwing it back into our blogs. And depending on how good you are at doing that, um, it can take anywhere between like 15 seconds to a minute, which is very, very, you know, frustrating over time, especially when you're trying to create something on the fly and you just don't want to lose that editorial flow.

So, um, this is a plugin that you can now add into Sanity and it runs using the Next.js API routes. Um, I'm going to show you that in a second. It's going to show you how to set it up. Um, and if you are interested in seeing a whole video about how to set this thing up, we're more than happy to do that as well. But first of all, let's get some cute kittens in here, right? Let's generate that. So I'm just typing in "cute kittens." I'm going to hit generate and there you go. Boom! That is from Replicate. They look a little bit unsettling. That's exactly what we want.

But um, we have this whole Advanced Options section and we can do a lot of clever stuff in here. Everything from changing, like, the aspect ratio to the image size, um, and to the number of kittens that you're going to get generated. So, um, and of course we can do things like negative prompts. So we could put "ugly kittens" in here as a negative prompt. But you'll see, nice, very, very cute, very nice.

Um, and you can essentially just click any of these. So if I like this one best, I can hit it. It's going to upload that data. It's going to tell me we've got low battery, which is always great. And there we go. We've got it. That's it working.

Um, so if you're interested in using this, it's actually available here, which is Sanity plugin image gen. Um, it's been published 13 days ago, but we've been kind of just tweaking around with it for the last second. Um, so feel free to run this. Tell me if you get against uh any snags or anything that's kind of difficult to work with.

Um, and again, this is all the configuration that's inside of here. How to actually get it running. It has things like type safety built in, so it should in theory just work and should make it a lot easier for you to get it working. Um, and again, this still needs the Replicate uh ID inside of here. So it needs an API key. Um, but ultimately, all of this should in theory just work and you can tweak it to exactly the way you want. If you want to use a specific image model, you can tweak that. If you want to use specific prompts that start at the beginning (I've seen people use things like with iPhone camera setting so it looks more realistic), all of that is possible with this tool.

So yeah, hope you like it. Tell me how you get on. Take care. Bye-bye.

## Timestamped captions

### segment-1
[2.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=2)
hey folks how's it going we're back

### segment-2
[2.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=2)
hey folks how's it going we're back
again so um I just want to show you

### segment-3
[3.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=3)
again so um I just want to show you

### segment-4
[4.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=3)
again so um I just want to show you
something very cool that we've built in

### segment-5
[5.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=5)
something very cool that we've built in

### segment-6
[5.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=5)
something very cool that we've built in
house and I'm fairly certain that a lot

### segment-7
[6.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=6)
house and I'm fairly certain that a lot

### segment-8
[6.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=6)
house and I'm fairly certain that a lot
of people are going to get a lot of use

### segment-9
[8.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=8)
of people are going to get a lot of use

### segment-10
[8.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=8)
of people are going to get a lot of use
out of this so if you notice we have

### segment-11
[10.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=10)
out of this so if you notice we have

### segment-12
[11.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=10)
out of this so if you notice we have
this new little thing inside of Sanity

### segment-13
[12.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=12)
this new little thing inside of Sanity

### segment-14
[12.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=12)
this new little thing inside of Sanity
called generate image now the reason why

### segment-15
[15.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=15)
called generate image now the reason why

### segment-16
[15.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=15)
called generate image now the reason why
we built this is we built it because we

### segment-17
[17.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=17)
we built this is we built it because we

### segment-18
[17.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=17)
we built this is we built it because we
kept going to replicate we kept taking

### segment-19
[19.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=19)
kept going to replicate we kept taking

### segment-20
[19.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=19)
kept going to replicate we kept taking
the data from there and we kept throwing

### segment-21
[20.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=20)
the data from there and we kept throwing

### segment-22
[20.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=20)
the data from there and we kept throwing
it back into our blogs and depending on

### segment-23
[22.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=22)
it back into our blogs and depending on

### segment-24
[22.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=22)
it back into our blogs and depending on
how good you are at doing that um it can

### segment-25
[24.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=24)
how good you are at doing that um it can

### segment-26
[24.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=24)
how good you are at doing that um it can
take anywhere between like 15 seconds to

### segment-27
[26.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=26)
take anywhere between like 15 seconds to

### segment-28
[26.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=26)
take anywhere between like 15 seconds to
a minute which is very very you know

### segment-29
[28.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=28)
a minute which is very very you know

### segment-30
[28.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=28)
a minute which is very very you know
frustrating over time especially when

### segment-31
[30.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=30)
frustrating over time especially when

### segment-32
[30.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=30)
frustrating over time especially when
you're trying to create something on the

### segment-33
[31.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=31)
you're trying to create something on the

### segment-34
[31.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=31)
you're trying to create something on the
Fly and you just don't want to lose that

### segment-35
[33.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=33)
Fly and you just don't want to lose that

### segment-36
[33.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=33)
Fly and you just don't want to lose that
editorial flow so um this is a plugin

### segment-37
[36.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=36)
editorial flow so um this is a plugin

### segment-38
[36.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=36)
editorial flow so um this is a plugin
that you can now add into sanity and it

### segment-39
[39.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=39)
that you can now add into sanity and it

### segment-40
[39.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=39)
that you can now add into sanity and it
runs using the nextjs API routes um I'm

### segment-41
[42.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=42)
runs using the nextjs API routes um I'm

### segment-42
[42.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=42)
runs using the nextjs API routes um I'm
going to show you that in a second it's

### segment-43
[43.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=43)
going to show you that in a second it's

### segment-44
[43.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=43)
going to show you that in a second it's
going to show you how to set it up um

### segment-45
[44.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=44)
going to show you how to set it up um

### segment-46
[44.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=44)
going to show you how to set it up um
and if you are interested in seeing a

### segment-47
[46.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=46)
and if you are interested in seeing a

### segment-48
[46.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=46)
and if you are interested in seeing a
whole video about how to set this thing

### segment-49
[48.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=48)
whole video about how to set this thing

### segment-50
[48.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=48)
whole video about how to set this thing
up we're more than happy to do that as

### segment-51
[49.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=49)
up we're more than happy to do that as

### segment-52
[49.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=49)
up we're more than happy to do that as
well but first of all let's get some

### segment-53
[51.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=51)
well but first of all let's get some

### segment-54
[51.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=51)
well but first of all let's get some
cute kittens in

### segment-55
[53.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=53)
cute kittens in

### segment-56
[53.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=53)
cute kittens in
here right let's generate that so I'm

### segment-57
[55.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=55)
here right let's generate that so I'm

### segment-58
[55.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=55)
here right let's generate that so I'm
just typing in cute kittens I'm going to

### segment-59
[56.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=56)
just typing in cute kittens I'm going to

### segment-60
[56.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=56)
just typing in cute kittens I'm going to
hit generate and there you go boom that

### segment-61
[58.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=58)
hit generate and there you go boom that

### segment-62
[58.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=58)
hit generate and there you go boom that
is from replicate they look a little bit

### segment-63
[60.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=60)
is from replicate they look a little bit

### segment-64
[60.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=60)
is from replicate they look a little bit
unsettling that's exactly what we want

### segment-65
[62.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=62)
unsettling that's exactly what we want

### segment-66
[62.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=62)
unsettling that's exactly what we want
but um we have this whole Advanced

### segment-67
[65.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=64)
but um we have this whole Advanced

### segment-68
[65.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=64)
but um we have this whole Advanced
options section and we can do a lot of

### segment-69
[66.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=66)
options section and we can do a lot of

### segment-70
[66.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=66)
options section and we can do a lot of
clever stuff in here everything from

### segment-71
[68.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=68)
clever stuff in here everything from

### segment-72
[68.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=68)
clever stuff in here everything from
changing like the aspect ratio to the

### segment-73
[70.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=70)
changing like the aspect ratio to the

### segment-74
[70.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=70)
changing like the aspect ratio to the
image size um and to the number of

### segment-75
[72.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=72)
image size um and to the number of

### segment-76
[72.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=72)
image size um and to the number of
kittens that you're going to get

### segment-77
[73.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=73)
kittens that you're going to get

### segment-78
[73.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=73)
kittens that you're going to get
generated

### segment-79
[74.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=74)
generated

### segment-80
[74.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=74)
generated
so um and of course we can do things

### segment-81
[77.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=77)
so um and of course we can do things

### segment-82
[77.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=77)
so um and of course we can do things
like negative prompts so we could put

### segment-83
[78.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=78)
like negative prompts so we could put

### segment-84
[78.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=78)
like negative prompts so we could put
ugly kittens in here as a negative

### segment-85
[80.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=79)
ugly kittens in here as a negative

### segment-86
[80.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=80)
ugly kittens in here as a negative
prompt but you'll see nice very very

### segment-87
[83.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=82)
prompt but you'll see nice very very

### segment-88
[83.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=82)
prompt but you'll see nice very very
cute very nice um and you can

### segment-89
[85.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=85)
cute very nice um and you can

### segment-90
[85.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=85)
cute very nice um and you can
essentially just click any of these so

### segment-91
[86.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=86)
essentially just click any of these so

### segment-92
[86.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=86)
essentially just click any of these so
if I like this one best I can hit it

### segment-93
[88.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=88)
if I like this one best I can hit it

### segment-94
[88.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=88)
if I like this one best I can hit it
it's going to upload that data

### segment-95
[90.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=90)
it's going to upload that data

### segment-96
[90.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=90)
it's going to upload that data
it's going to tell me we've got low

### segment-97
[91.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=91)
it's going to tell me we've got low

### segment-98
[91.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=91)
it's going to tell me we've got low
battery which is always great and there

### segment-99
[93.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=93)
battery which is always great and there

### segment-100
[93.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=93)
battery which is always great and there
we go we've got it that's it working um

### segment-101
[95.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=95)
we go we've got it that's it working um

### segment-102
[95.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=95)
we go we've got it that's it working um
so if you're interested in using this

### segment-103
[97.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=97)
so if you're interested in using this

### segment-104
[97.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=97)
so if you're interested in using this
it's actually available here which is

### segment-105
[99.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=99)
it's actually available here which is

### segment-106
[99.3s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=99)
it's actually available here which is
sanity plug-in image gen um it's been

### segment-107
[101.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=101)
sanity plug-in image gen um it's been

### segment-108
[101.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=101)
sanity plug-in image gen um it's been
published 13 days ago but we've been

### segment-109
[103.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=103)
published 13 days ago but we've been

### segment-110
[103.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=103)
published 13 days ago but we've been
kind of just tweaking around with it for

### segment-111
[104.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=104)
kind of just tweaking around with it for

### segment-112
[104.5s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=104)
kind of just tweaking around with it for
the last second um so feel free to run

### segment-113
[106.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=106)
the last second um so feel free to run

### segment-114
[106.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=106)
the last second um so feel free to run
this tell me if you get against uh any

### segment-115
[108.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=108)
this tell me if you get against uh any

### segment-116
[108.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=108)
this tell me if you get against uh any
snags or anything that's kind of

### segment-117
[110.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=110)
snags or anything that's kind of

### segment-118
[110.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=110)
snags or anything that's kind of
difficult to work with um and again this

### segment-119
[113.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=112)
difficult to work with um and again this

### segment-120
[113.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=113)
difficult to work with um and again this
is all the configuration that's inside

### segment-121
[114.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=114)
is all the configuration that's inside

### segment-122
[114.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=114)
is all the configuration that's inside
of here how to actually get it running

### segment-123
[116.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=116)
of here how to actually get it running

### segment-124
[116.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=116)
of here how to actually get it running
it has things like type safety built in

### segment-125
[118.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=118)
it has things like type safety built in

### segment-126
[118.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=118)
it has things like type safety built in
so it should in theory just work and you

### segment-127
[121.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=120)
so it should in theory just work and you

### segment-128
[121.0s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=120)
so it should in theory just work and you
should make it should make it a lot

### segment-129
[122.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=122)
should make it should make it a lot

### segment-130
[122.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=122)
should make it should make it a lot
easier for you to make it work um and

### segment-131
[124.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=124)
easier for you to make it work um and

### segment-132
[124.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=124)
easier for you to make it work um and
again this still needs the replicate uh

### segment-133
[127.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=127)
again this still needs the replicate uh

### segment-134
[127.8s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=127)
again this still needs the replicate uh
ID inside of here so it needs an API key

### segment-135
[130.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=130)
ID inside of here so it needs an API key

### segment-136
[130.7s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=130)
ID inside of here so it needs an API key
um but ultimately all of this should in

### segment-137
[133.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=133)
um but ultimately all of this should in

### segment-138
[133.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=133)
um but ultimately all of this should in
theory just work and you can tweak it to

### segment-139
[135.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=135)
theory just work and you can tweak it to

### segment-140
[135.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=135)
theory just work and you can tweak it to
exactly the way you want if you want to

### segment-141
[136.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=136)
exactly the way you want if you want to

### segment-142
[136.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=136)
exactly the way you want if you want to
use a specific image model you can tweak

### segment-143
[138.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=138)
use a specific image model you can tweak

### segment-144
[138.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=138)
use a specific image model you can tweak
that if you want to use specific prompts

### segment-145
[140.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=140)
that if you want to use specific prompts

### segment-146
[140.6s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=140)
that if you want to use specific prompts
that start at the beginning so I've seen

### segment-147
[142.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=142)
that start at the beginning so I've seen

### segment-148
[142.2s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=142)
that start at the beginning so I've seen
people use things with like iPhone

### segment-149
[144.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=144)
people use things with like iPhone

### segment-150
[144.1s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=144)
people use things with like iPhone
camera setting so it looks more

### segment-151
[145.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=145)
camera setting so it looks more

### segment-152
[145.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=145)
camera setting so it looks more
realistic all of that is possible with

### segment-153
[147.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=147)
realistic all of that is possible with

### segment-154
[147.9s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=147)
realistic all of that is possible with
this tool so yeah hope you like it tell

### segment-155
[150.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=150)
this tool so yeah hope you like it tell

### segment-156
[150.4s](https://www.youtube.com/watch?v=2v2Yge5-eLY&t=150)
this tool so yeah hope you like it tell
me how you get on take care bye-bye

## Questions answered on the original page

### What is Replicate AI?
Replicate is a platform that lets you run open-source AI models, including image generation models, through a single API. In this plugin we point at Replicate to generate images on demand from a text prompt, instead of opening another tab and pasting the result back into the CMS.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms

### How do you generate AI images inside Sanity CMS?
Install the sanity-plugin-image-gen plugin, add your Replicate API key, and an editor can type a prompt directly inside Sanity and get an image back without leaving the studio. The plugin runs through Next.js API routes and uploads the chosen image straight into the document.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms

### What does sanity-plugin-image-gen do?
It adds a "Generate image" action inside Sanity Studio so editors can turn a prompt into an image without leaving the CMS. It supports advanced options like aspect ratio, image size, the number of variants generated, and negative prompts.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms

### Does Sanity have AI image generation built in?
Not natively. Sanity itself does not ship an image generator. The sanity-plugin-image-gen plugin from Roboto Studio bridges Sanity Studio to Replicate so you can generate images from prompts inside the editor. You bring your own Replicate API key.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms

### Can I use Replicate with Sanity CMS?
Yes. The plugin calls the Replicate API from a Next.js API route in your app, which means any image model Replicate hosts is available from inside Sanity Studio. You can swap the underlying model and tweak the default prompt prefix to suit your house style.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms

### Is Sanity CMS good for AI image workflows?
Sanity is well suited because its plugin model and custom input components make it easy to embed generators directly in the editing experience. With this plugin, the AI step is part of the editor's normal flow rather than a separate tool, which is what makes it useful for blogs and landing pages.
Source: https://robotostudio.com/videos/generating-ai-images-inside-of-sanity-cms
